Search Linux Wireless

Re: No packets in monitor mode with rtw89_8852ce

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 16, 2024 at 5:29 PM Ping-Ke Shih <pkshih@xxxxxxxxxxx> wrote:
>
> Kurt Grutzmacher <grutz@xxxxxxxxxxxxxx> wrote:
> > Using a Realtek 8852ce module in monitor mode on Ubuntu 22.04 LTS I am
> > able to capture frames on 2.4 GHz channels but not any other
> > frequencies. Low power mode is disabled.
> >
> > [98869.471001] rtw89_8852ce 0000:02:00.0: loaded firmware rtw89/rtw8852c_fw.bin
> > [98869.480121] rtw89_8852ce 0000:02:00.0: Firmware version 0.27.56.14,
> > cmd version 0, type 1
> > [98869.480142] rtw89_8852ce 0000:02:00.0: Firmware version 0.27.56.14,
> > cmd version 0, type 3
> > [98869.757041] rtw89_8852ce 0000:02:00.0: chip rfe_type is 1
> >
> > ubuntu@ubuntu:~$ sudo iw realtekwifi0 set freq 2412
> > ubuntu@ubuntu:~$ sudo tcpdump -i realtekwifi0
>
> My 8852ce is wlan1, and then below instructions can show up some packets:
>
> sudo iw dev wlan1 interface add mon0 type monitor
> sudo ifconfig mon0 up
> sudo tcpdump -i mon0

That just validates my statement that 2.4 GHz channels work. You did
not set a frequency so it started on channel 1.

Try this, or any 5 GHz channel that you know has valid dot11 traffic:

sudo iw dev wlan0 interface add mon0 type monitor
sudo ip link set mon0 up
iw dev mon0 info
    Interface mon0
    ifindex 8
    wdev 0x200000002
    addr 1c:ce:51:91:5e:92
    type monitor
    wiphy 2
    channel 1 (2412 MHz), width: 20 MHz (no HT), center1: 2412 MHz
sudo iw mon0 set freq 5220
sudo tcpdump -i mon0

For reference, here are my module options. Without these I cannot set
the frequency:

options rtw89_pci disable_aspm_l1=y disable_aspm_l1ss
options rtw89_core debug_mask=65535 disable_ps_mode=y





[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux