Bug 218040

Summary: rtw88 (rtw_8821ce / rtw_8822be) frame injection failed
Product: Drivers Reporter: Michael (ZeroBeat)
Component: network-wirelessAssignee: drivers_network-wireless (drivers_network-wireless)
Status: RESOLVED CODE_FIX    
Severity: normal CC: bagasdotme
Priority: P3    
Hardware: All   
OS: Linux   
Kernel Version: 6.5.8 Subsystem:
Regression: Yes Bisected commit-id:

Description Michael 2023-10-23 09:38:25 UTC
Running monitor mode, frame inejction failed on rtw88 (tested: rtw_8821ce and rtw_8822be).


Confirmed by hcxdumptool injection test:
$ sudo hcxdumptool -F --rcascan=active
Warning: no responses received (packet injection may not work)


and confirmed by aireplay-ng frame injection test 
$ sudo ./aireplay-ng --test  wlp4s0
10:51:43  Trying broadcast probe requests...
10:51:45  No Answer...
10:51:45  Found 0 APs

on uname -r
$ uname -r
6.5.8-arch1-1

dmesg shows nothing interesting.

More information is here:
https://github.com/ZerBea/hcxdumptool/issues/354
Comment 1 Michael 2023-10-23 10:25:57 UTC
Added "regression", because packet injection worked before:
https://bugzilla.kernel.org/show_bug.cgi?id=201875#c34
Comment 2 Bagas Sanjaya 2023-10-26 07:58:18 UTC
(In reply to Michael from comment #0)
> Running monitor mode, frame inejction failed on rtw88 (tested: rtw_8821ce
> and rtw_8822be).
> 
> 
> Confirmed by hcxdumptool injection test:
> $ sudo hcxdumptool -F --rcascan=active
> Warning: no responses received (packet injection may not work)
> 
> 
> and confirmed by aireplay-ng frame injection test 
> $ sudo ./aireplay-ng --test  wlp4s0
> 10:51:43  Trying broadcast probe requests...
> 10:51:45  No Answer...
> 10:51:45  Found 0 APs
> 
> on uname -r
> $ uname -r
> 6.5.8-arch1-1
> 
> dmesg shows nothing interesting.
> 
> More information is here:
> https://github.com/ZerBea/hcxdumptool/issues/354

Can you test latest mainline (currently v6.6-rc7)?
Comment 3 Michael 2023-10-26 10:20:02 UTC
Not during the next weeks, because I'm not at home.

Unfortunatly compiling the rtw88 module (6.6-rc7) on kernel 6.5.8 will result in:
could not insert module rtw88_8821ce.ko: Unknown symbol in module
Comment 4 Michael 2023-10-26 10:23:01 UTC
Maybe I missed something during compiling the module, but my small notebook here is definitely good to compile and test an entire kernel.
Comment 5 Bagas Sanjaya 2023-10-26 10:49:35 UTC
On 26/10/2023 17:20, bugzilla-daemon@kernel.org wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=218040
> 
> --- Comment #3 from Michael (ZeroBeat@gmx.de) ---
> Not during the next weeks, because I'm not at home.
> 
> Unfortunatly compiling the rtw88 module (6.6-rc7) on kernel 6.5.8 will result
> in:
> could not insert module rtw88_8821ce.ko: Unknown symbol in module
> 

Then you have to build the entire v6.6-rc7 kernel. For reference, see
Documentation/admin-guide/quickly-build-trimmed-linux.rst in the kernel
sources.
Comment 6 Michael 2023-10-26 11:02:53 UTC
Thanks for the information.

Unfortunately there was an ugly typo in my last post.
That sounds a way too good:
...but my small notebook here is definitely good to compile and test an entire kernel

This is the correct sentence:
...but my small notebook here is definitely not(!) good to compile and test an entire kernel
Comment 7 Michael 2023-10-26 11:55:44 UTC
Ok, took me less time as expected to build and test v6.6-rc7 on my notebook.

Everything is working as expected and packet injection is working smooth.

I think we can close this report on release of kernel 6.6
Comment 8 Michael 2023-10-26 12:01:01 UTC
I've tested "rtw_8821ce" only, because it is build in here.
Module "rtw_8822be" remains untested, but I suppose it is working, too.
Comment 9 Michael 2023-10-31 07:46:40 UTC
Thanks. Fixed by kernel 6.6 and we can close it here.

Cheers
Mike