root@imx8mqevk:~# uname -srm Linux 6.6.23-lts-next-gb586a521770e aarch64 root@imx8mqevk:~# modprobe moal mod_para=nxp/wifi_mod_para.conf [ 1381.216431] mlan: loading out-of-tree module taints kernel. [ 1381.253902] wlan: Loading MWLAN driver [ 1381.258059] wlan: Register to Bus Driver... [ 1381.262666] wlan_pcie 0001:01:00.0: enabling device (0000 -> 0002) [ 1381.268965] PCI memory map Virt0: 000000008372ae4c PCI memory map Virt2: 00000000ea29c140 [ 1381.277176] Attach moal handle ops, card interface type: 0x204 [ 1381.283026] rps set to 0 from module param [ 1381.289582] PCIE8997: init module param from usr cfg [ 1381.294600] card_type: PCIE8997, config block: 0 [ 1381.299239] cfg80211_wext=0xf [ 1381.302206] max_vir_bss=1 [ 1381.304840] cal_data_cfg=none [ 1381.307818] ps_mode = 1 [ 1381.310265] auto_ds = 1 [ 1381.312726] host_mlme=enable [ 1381.315622] fw_name=nxp/pcieuart8997_combo_v4.bin [ 1381.320355] rx_work=1 cpu_num=4 [ 1381.323511] Enable moal_recv_amsdu_packet [ 1381.327544] Attach mlan adapter operations.card_type is 0x204. [ 1381.339349] Request firmware: nxp/pcieuart8997_combo_v4.bin [ 1381.939940] FW download over, size 621300 bytes [ 1382.663712] WLAN FW is active [ 1382.666689] on_time is 1382663555905 [ 1382.723692] VDLL image: len=9176 [ 1382.728621] FW country code WW does not match with US [ 1382.733852] fw_cap_info=0x587c6fa3, dev_cap_mask=0xffffffff [ 1382.739467] max_p2p_conn = 8, max_sta_conn = 8 [ 1382.773276] Register NXP 802.11 Adapter mlan0 [ 1382.777823] wlan: uap%d set max_mtu 2000 [ 1382.785269] Register NXP 802.11 Adapter uap0 [ 1382.799310] Register NXP 802.11 Adapter wfd0 [ 1382.804138] wlan: version = PCIE8997--16.92.21.p119.3-MM6X16437.p21-GPL-(FP92) [ 1382.814234] wlan: Register to Bus Driver Done [ 1382.822548] wlan: Driver loaded successfully root@imx8mqevk:~# ifconfig -a eth0 Link encap:Ethernet HWaddr 00:04:9F:05:68:F8 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 B) TX bytes:0 (0.0 B) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:90 errors:0 dropped:0 overruns:0 frame:0 TX packets:90 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:7668 (7.4 KiB) TX bytes:7668 (7.4 KiB) mlan0 Link encap:Ethernet HWaddr 20:4E:F6:BA:FC:15 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 B) TX bytes:0 (0.0 B) uap0 Link encap:Ethernet HWaddr 22:4E:F6:BA:FD:15 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 B) TX bytes:0 (0.0 B) wfd0 Link encap:Ethernet HWaddr 22:4E:F6:BA:FC:15 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 B) TX bytes:0 (0.0 B) root@imx8mqevk:~# ./mlanutl mlan0 netmon 1 7 11 6 0 Network monitor activity enabled is 1 Network monitor filter flag is 7 802.11 band is 11 Channel to monitor is 6 Secondary channel bandwidth is 0 root@imx8mqevk:~# ifconfig -a eth0 Link encap:Ethernet HWaddr 00:04:9F:05:68:F8 inet addr:192.168.50.130 Bcast:192.168.50.255 Mask:255.255.255.0 inet6 addr: fe80::204:9fff:fe05:68f8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:736 errors:0 dropped:0 overruns:0 frame:0 TX packets:282 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:490815 (479.3 KiB) TX bytes:38173 (37.2 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:90 errors:0 dropped:0 overruns:0 frame:0 TX packets:90 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:7668 (7.4 KiB) TX bytes:7668 (7.4 KiB) mlan0 Link encap:Ethernet HWaddr 20:4E:F6:BA:FC:15 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 B) TX bytes:0 (0.0 B) rtap Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-30-00-00-00-00-00-00-00-00 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 B) TX bytes:0 (0.0 B) uap0 Link encap:Ethernet HWaddr 22:4E:F6:BA:FD:15 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 B) TX bytes:0 (0.0 B) wfd0 Link encap:Ethernet HWaddr 22:4E:F6:BA:FC:15 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 B) TX bytes:0 (0.0 B) root@imx8mqevk:~# ifconfig rtap up root@imx8mqevk:~# tcpdump -i rtap -w Wi-Fi_Sniffer_test.pcap -sh: tcpdump: command not found root@imx8mqevk:~# cd usr/bin/ root@imx8mqevk:~/usr/bin# ls -l total 1296 -rwxr-xr-x 1 root root 1326840 Sep 2 16:16 tcpdump root@imx8mqevk:~/usr/bin# ./tcpdump -i rtap -w capture.pcap [18624.402703] rtap: entered promiscuous mode [18624.407811] audit: type=1700 audit(1727250581.244:29): dev=rtap prom=256 old_prom=0 auid=4294967295 uid=0 gid=0 ses=4294967295 [18624.419279] audit: type=1300 audit(1727250581.244:29): arch=c00000b7 syscall=208 success=yes exit=0 a0=4 a1=107 a2=1 a3=ffffffb55e80 items=0 ppid=531 pid=822 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=ttymxc0 ses=4294967295 comm="tcpdump" exe="/root/usr/bin/tcpdump" key=(null) [18624.447190] audit: type=1327 audit(1727250581.244:29): proctitle=2E2F74637064756D70002D690072746170002D7700636170747572652E70636170 tcpdump: listening on rtap, link-type IEEE802_11_RADIO (802.11 plus radiotap header), snapshot length 262144 bytes ^C 385 packets captured [18646.095254] rtap: left promiscuous mode [18646.101038] audit: type=1700 audit(1727250602.936:30): dev=rtap prom=0 old_prom=256 auid=4294967295 uid=0 gid=0 ses=4294967295 0 packets dropped by kernel [18646.146587] audit: type=1300 audit(1727250602.936:30): arch=c00000b7 syscall=57 success=yes exit=0 a0=4 a1=1 a2=4 a3=aaab15f32010 items=0 ppid=531 pid=822 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=ttymxc0 ses=4294967295 comm="tcpdump" exe="/root/usr/bin/tcpdump" key=(null) [18646.173742] audit: type=1327 audit(1727250602.936:30): proctitle=2E2F74637064756D70002D690072746170002D7700636170747572652E70636170 root@imx8mqevk:~/usr/bin# root@imx8mqevk:~/usr/bin# root@imx8mqevk:~/usr/bin# ./tcpdump -r capture.pcap reading from file capture.pcap, link-type IEEE802_11_RADIO (802.11 plus radiotap header), snapshot length 262144 07:49:41.338064 4299548421us tsft bad-fcs 1.0 Mb/s 2437 MHz 11g 8dBm signal -94dBm noise antenna 1 Beacon (Christine) [1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0 Mbit] ESS CH: 6, PRIVACY 07:49:41.440008 4299548446us tsft bad-fcs 1.0 Mb/s 2437 MHz 11g 8dBm signal -94dBm noise antenna 1 Beacon (Christine) [1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0 Mbit] ESS CH: 6, PRIVACY 07:49:41.457736 4299548451us tsft bad-fcs 1.0 Mb/s 2437 MHz 11g 8dBm signal -94dBm noise antenna 1 Beacon () [1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0 Mbit] ESS CH: 6, PRIVACY 07:49:41.541870 4299548472us tsft bad-fcs 1.0 Mb/s 2437 MHz 11g 8dBm signal -94dBm noise antenna 1 Beacon (Christine) [1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0 Mbit] ESS CH: 6, PRIVACY 07:49:41.557036 4299548476us tsft bad-fcs 1.0 Mb/s 2437 MHz 11g 7dBm signal -95dBm noise antenna 1 Beacon (Rita iPhone13) [1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0 Mbit] ESS CH: 6, PRIVACY .....