]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: nl80211: fix UHR capability validation
authorJohannes Berg <johannes.berg@intel.com>
Tue, 3 Mar 2026 14:16:15 +0000 (15:16 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 6 Mar 2026 09:45:24 +0000 (10:45 +0100)
commita140826caa2c14aa5a9a6990e514c5edbdb7eafd
treea36f65741f8cc463b0b2e16cbee0e71607b8569d
parent9f39e2cc2b01225c1af7f18ff112047c13240d06
wifi: nl80211: fix UHR capability validation

The ieee80211_uhr_capa_size_ok() function returns a boolean,
but we need an error code here. Fix that.

Fixes: 072e6f7f416f ("wifi: cfg80211: add initial UHR support")
Cc: <stable+noautosel@kernel.org> # no drivers with UHR yet
Link: https://patch.msgid.link/20260303151614.e87ea9995be5.Ie164040a51855a3e548f05f0d0291d7d7993c7ee@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c