]> git.itanic.dy.fi Git - linux-stable/commit
wifi: mac80211: Fix puncturing bitmap handling in __ieee80211_csa_finalize()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 24 Apr 2023 17:42:04 +0000 (19:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 May 2023 16:30:17 +0000 (17:30 +0100)
commit5c9d1a46f79c8e75c416f8faa68e4a573f454e53
tree4484ce6af1cdf572c2662b347e03c2b6c3d1376a
parent6df3eafa31b3ee4f0cba601ca857019964355034
wifi: mac80211: Fix puncturing bitmap handling in __ieee80211_csa_finalize()

[ Upstream commit 13ad2b1eeacd48ec0f31f55964e6dc7dfc2c0299 ]

'changed' can be OR'ed with BSS_CHANGED_EHT_PUNCTURING which is larger than
an u32.
So, turn 'changed' into an u64 and update ieee80211_set_after_csa_beacon()
accordingly.

In the commit in Fixes, only ieee80211_start_ap() was updated.

Fixes: 2cc25e4b2a04 ("wifi: mac80211: configure puncturing bitmap")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/e84a3f80fe536787f7a2c7180507efc36cd14f95.1682358088.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/cfg.c