wifi: mac80211: fix unsolicited broadcast probe config
authorJohannes Berg <johannes.berg@intel.com>
Mon, 29 Jan 2024 18:57:30 +0000 (19:57 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 2 Feb 2024 12:10:39 +0000 (13:10 +0100)
commit178e9d6adc4356c2f1659f575ecea626e7fbd05a
tree223f326219d7561b0e98ad528313c5c2a978d005
parent86b2dac224f963be92634a878888222e1e938f48
wifi: mac80211: fix unsolicited broadcast probe config

There's a bug in ieee80211_set_unsol_bcast_probe_resp(), it tries
to return BSS_CHANGED_UNSOL_BCAST_PROBE_RESP (which has the value
1<<31) in an int, which makes it negative and considered an error.
Fix this by passing the changed flags to set separately.

Fixes: 3b1c256eb4ae ("wifi: mac80211: fixes in FILS discovery updates")
Reviewed-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Link: https://msgid.link/20240129195729.965b0740bf80.I6bc6f5236863f686c17d689be541b1dd2633c417@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c