Re: Extended Capabilities bit values overwritten by the kernel
Johannes Berg <[email protected]> Fri, 24 Oct 2025 09:24:23 +0200
| Newsgroups | gmane.linux.kernel.wireless.general,gmane.linux.drivers.hostap |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 2025-10-23 at 18:23 +0200, Pablo MARTIN-GOMEZ wrote: >=20 > > You're probably the only/first person to ever want to _remove_ > > capabilities that the driver has :) > It is more a question of testing a capability and its performance's=20 > impact than to remove it completely :) Well, OK, fair :) > > Somehow it appears that we never considered the case of a capability > > that's _completely_ implemented in mac80211/driver/device but someone > > explicitly does _not_ want to advertise it. > It's bit more complicated than that, at least in the case of TWT=20 > Responder in ath12k.=C2=A0 When we don't set NL80211_ATTR_TWT_RESPONDER f= lag=20 > in hostapd, the ath12k driver sends a command to the device to disable= =20 > TWT, so we end up in a situation where the device does not support the= =20 > feature anymore but we are still advertising its support in the=20 > capabilities IE. Huh, right. Then really this should've been handled like FTM responder where we have a separate nl80211 feature flag, and userspace is responsible for setting up both NL80211_ATTR_TWT_RESPONDER and the extended capability flag together... Not sure it's too late for that now? Jeff? Could/should we do https://p.sipsolutions.net/d8d7eb632e66bfeb.txt with a corresponding hostapd patch? Seems like the cleaner/better way to do it given that now we end up in a situation where TWT responder is advertised but not supported on older hostapd/hostapd with it not configured? And apparently you already have this internally with QCA_WLAN_VENDOR_FEATURE_HT_VHT_TWT_RESPONDER ... > > I'm not sure I know what the right solution is ... Obviously not > > advertising some features could easily be done in hostapd/wpa_s by just > > clearing the bits you don't want, but that wouldn't actually disable th= e > > feature in the lower level. So it'd probably work for TWT responder, bu= t > > not for TWT requester maybe, if the request would be triggered by > > something in lower levels? > Ok, so for my case, I just need to clear the bit, the feature is already= =20 > disabled in the lower levels. If I go for that solution in=20 > hostapd/wpa_s, the issue is going to be can it break another driver? >=20 I don't think there's really any other driver using it. johannes