wifi: mac80211: fixes in FILS discovery updates
authorAloka Dixit <quic_alokad@quicinc.com>
Thu, 27 Jul 2023 17:40:57 +0000 (10:40 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 13 Sep 2023 10:34:01 +0000 (12:34 +0200)
commit3b1c256eb4aedfc71dd97d5951ccff824b41d628
tree54514320eed1e7afced16af22c22f32a788a40dc
parent0cfaec25995ad3be316631b945be7ced81daa4e7
wifi: mac80211: fixes in FILS discovery updates

FILS discovery configuration gets updated only if the maximum interval
is set to a non-zero value, hence there is no way to reset this value
to 0 once set. Replace the check for interval with a new flag which is
set only if the configuration should be updated.

Add similar changes for the unsolicited broadcast probe response handling.

Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com>
Reviewed-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Link: https://lore.kernel.org/r/20230727174100.11721-3-quic_alokad@quicinc.com
[move NULL'ing to else branch to not have intermediate NULL visible]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c