On 2/23/23 02:12, Johannes Berg wrote:
On Wed, 2023-02-22 at 14:49 -0600, Larry Finger wrote:
Commit dc09766c755c {"wifi: wireless: warn on most wireless extension
usage") introduces a warning when wireless extensions are used with
cfg80211 drivers. Although such a warning is desirable, the current
implementation overflows the dmesg buffer with thousands of warnings,
all of which are the same.
What are you seeing them from?
This is rate-limited, so not sure why you're getting so many?
A WARN_ONCE() call is sufficient.
I think a WARN is inappropriate (it's a userspace 'issue', not an in-
kernel consistency problem), but I guess we could pr_once().
But that's not great because it only shows a single application that was
still using it, not if there are multiple.
Hmm. Not sure what to do. Let's start with "why are you getting it so
much". Maybe we can somehow print it less, or try to do per application
once, or something.
Booting a kernel generated from a wireless-next pull yesterday, my log shows the
following:
[ 22.362531] warning: `kded5' uses wireless extensions that are deprecated for
modern drivers; use nl80211
[ 22.406929] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 22.408054] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 22.953271] Bluetooth: RFCOMM TTY layer initialized
[ 22.953284] Bluetooth: RFCOMM socket layer initialized
[ 22.953297] Bluetooth: RFCOMM ver 1.11
[ 25.015996] wlp4s0: authenticate with 84:1b:5e:f7:6b:02
[ 25.019642] wlp4s0: send auth to 84:1b:5e:f7:6b:02 (try 1/3)
[ 25.124583] wlp4s0: send auth to 84:1b:5e:f7:6b:02 (try 2/3)
[ 25.125135] wlp4s0: authenticated
[ 25.125347] wlp4s0: VHT capa missing/short, disabling VHT/HE/EHT
[ 25.132592] wlp4s0: associate with 84:1b:5e:f7:6b:02 (try 1/3)
[ 25.133570] wlp4s0: RX AssocResp from 84:1b:5e:f7:6b:02 (capab=0x11 status=0
aid=1)
[ 25.135268] wlp4s0: associated
[ 26.477742] warning: `akonadi_followu' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 26.563342] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 26.564152] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 29.251816] warning: `akonadi_notes_a' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 29.319352] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 29.319614] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 29.399084] warning: `akonadi_mailmer' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 29.423482] warning: `akonadi_maildis' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 29.461984] warning: `akonadi_sendlat' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 29.498341] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 29.498974] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 29.539437] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 29.540317] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 37.023881] wireless_warn_cfg80211_wext: 4 callbacks suppressed
[ 37.023887] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 37.024151] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 38.739633] wlp4s0: deauthenticating from 84:1b:5e:f7:6b:02 by local choice
(Reason: 3=DEAUTH_LEAVING)
[ 39.020061] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 39.020096] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 39.020279] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 39.020330] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 40.020849] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 40.021068] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 40.024152] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 40.024339] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 47.021033] wireless_warn_cfg80211_wext: 2 callbacks suppressed
[ 47.021042] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 47.021529] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 49.021028] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 49.021035] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 49.021183] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 49.021226] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 50.016001] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 50.016748] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 50.025271] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 50.025824] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 54.754126] rtw_8821ce 0000:02:00.0: Firmware version 24.11.0, H2C version 12
[ 54.793028] rtw_8821ce 0000:02:00.0 wls1: renamed from wlan0
[ 57.017048] wireless_warn_cfg80211_wext: 2 callbacks suppressed
[ 57.017051] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 57.017056] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 57.017249] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 57.017253] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 59.017069] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 59.017078] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 59.017394] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 59.017399] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 59.017560] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 59.017568] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 60.202444] wls1: authenticate with 84:1b:5e:f7:6b:02
[ 60.740887] wls1: send auth to 84:1b:5e:f7:6b:02 (try 1/3)
[ 60.844938] wls1: send auth to 84:1b:5e:f7:6b:02 (try 2/3)
[ 60.845879] wls1: authenticated
[ 60.846069] wls1: VHT capa missing/short, disabling VHT/HE/EHT
[ 60.852850] wls1: associate with 84:1b:5e:f7:6b:02 (try 1/3)
[ 60.853804] wls1: RX AssocResp from 84:1b:5e:f7:6b:02 (capab=0x11 status=0 aid=1)
[ 60.854594] wls1: associated
[ 67.020942] wireless_warn_cfg80211_wext: 14 callbacks suppressed
[ 67.020945] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 67.020950] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 67.021136] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 67.021141] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 69.020978] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 69.020985] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 69.020989] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 69.020991] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 69.021244] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 69.021248] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 77.015878] wireless_warn_cfg80211_wext: 14 callbacks suppressed
[ 77.015888] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 77.015902] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 77.016408] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 77.016418] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 79.016374] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 79.016388] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 79.016786] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 79.016794] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 79.021806] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 79.021814] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 82.022287] wireless_warn_cfg80211_wext: 10 callbacks suppressed
[ 82.022297] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 82.022310] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 82.022818] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 82.022829] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 87.026245] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 87.026262] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 87.026715] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 87.026725] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 89.022467] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 89.022483] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 89.022489] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 89.022527] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 89.022979] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
[ 89.022990] warning: `Qt bearer threa' uses wireless extensions that are
deprecated for modern drivers; use nl80211
For explanation, device wlp4s0 shows "Network controller [0280]: Intel
Corporation Wireless 7260 [8086:08b1] (rev 73)" in an 'lspci -nn' listing, and
wls1 shows "Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE
802.11ac PCIe Wireless Network Adapter [10ec:c821]" in the same listing.
There are various tasks/applications that generate this warning early after
startup, but the ones from `Qt bearer threa' are the ones that persist. Those
were the only ones that I had seen once the dmesg buffer wrapped around.
Obviously any kind on "once" restriction would lose information.
In my case, I support devices that need WEXT, thus disabling it in the
configuration would not work. Logging one per application would entail a bit of
work, but that would clear up the log spamming and work for me.
Larry