Monitor mode support

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Lavanya
Level 3
Level 3
25 sign-ins 5 questions asked 10 replies posted

Hi I went the another thread 

https://community.infineon.com/t5/Wi-Fi-Bluetooth-for-Linux/Monitor-Mode-Feature-on-CYW43455/td-p/13...

and followed the steps but I dont get any using 80211 packets in the dump following the below mention steps

wl down
wl mpc 0
wl up
wl monitor 1
ifconfig wlan0 up
wl channel 6
tcpdump -ni wlan0 -s0 -w test.pcap

Also I added debug code in brcmf_netif_mon_rx of

~/FMAC/src/v5.4.18-backports/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c

I dont see those prints neither in 

if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_MONITOR_FMT_RADIOTAP)) {
/* Do nothing */

or in else part.

Can some one help me how to I get the 80211 packets?

I am using backports driver v5.4.18-backports

Thanks,

Lavanya

0 Likes
1 Solution
Qi_Colin
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 5 questions asked

Hi @Lavanya :

After checking FMAC driver of monitor feature, I think currently FMAC driver can't support monitor mode and don't have any patch yet.

CYW43455 can enter promiscuous mode via wireshark or tcpdump setting after "wl monitor 1" (configurate firmware), but FMAC driver can't support this feature.

Therefore, we can get some un-decoding packages via tcpdump or wireshark.

Best Regards,

Colin

View solution in original post

0 Likes
7 Replies
Qi_Colin
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 5 questions asked

Hi @Lavanya :

Please send "iwconfig" to check whether a monitor mode interface has been created or not.

Best Regards,

Colin

 

0 Likes

Hi Qi_Colin

we have wl tool but not iwconfig I am pasting your the ifconfig output

 

wlan0 Link encap:Ethernet HWaddr 
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:6399 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1807441 (1.7 MiB) TX bytes:0 (0.0 B)

0 Likes
Lavanya
Level 3
Level 3
25 sign-ins 5 questions asked 10 replies posted

I get packets shown in the screen shot

Lavanya_0-1673420230780.png

 

 

0 Likes
Qi_Colin
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 5 questions asked

Hi @Lavanya :

According to the screen shot, you don't get the 80211 packets after setting monitor mode.

I need check the driver and feedback to you.

Best Regards,

Colin

0 Likes
Lavanya
Level 3
Level 3
25 sign-ins 5 questions asked 10 replies posted

Thank Colin, any patch is available for v5.4.18-backports, FMAC driver?

0 Likes
Qi_Colin
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 5 questions asked

Hi @Lavanya :

Sorry for reply later.

Currently no patch yet, and I'm checking for this question.

Any update I will share to you.

Best Regards,

Colin

0 Likes
Qi_Colin
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 5 questions asked

Hi @Lavanya :

After checking FMAC driver of monitor feature, I think currently FMAC driver can't support monitor mode and don't have any patch yet.

CYW43455 can enter promiscuous mode via wireshark or tcpdump setting after "wl monitor 1" (configurate firmware), but FMAC driver can't support this feature.

Therefore, we can get some un-decoding packages via tcpdump or wireshark.

Best Regards,

Colin

0 Likes