]> git.hungrycats.org Git - linux/commit
wifi: nl80211: fix UHR capability validation
authorJohannes Berg <johannes.berg@intel.com>
Tue, 3 Mar 2026 14:16:15 +0000 (15:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Sep 2026 11:36:17 +0000 (13:36 +0200)
commitfe44ae31ca78a4185995a514bd01833c6a04014b
tree47bb51eaf8c171b26b73090bdd88b265bc2e5c97
parent3ca32b70e825f43d664511d09e72fe485563ed9c
wifi: nl80211: fix UHR capability validation

[ Upstream commit a140826caa2c14aa5a9a6990e514c5edbdb7eafd ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/wireless/nl80211.c