wifi: nl80211: fixes to FILS discovery updates
authorAloka Dixit <quic_alokad@quicinc.com>
Thu, 27 Jul 2023 17:40:56 +0000 (10:40 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 13 Sep 2023 10:34:00 +0000 (12:34 +0200)
commit0cfaec25995ad3be316631b945be7ced81daa4e7
treef713a18c7dfa183cce67b0ffda44b70292a954d7
parente04b1973e2ab1e58a79156317b0dc25f848efdc5
wifi: nl80211: fixes to FILS discovery updates

Add a new flag 'update' which is set to true during start_ap()
if (and only if) one of the following two conditions are met:
- Userspace passed an empty nested attribute which indicates that
  the feature should be disabled and templates deleted.
- Userspace passed all the parameters for the nested attribute.

Existing configuration will not be changed while the flag
remains false.

Add similar changes for unsolicited broadcast probe response
transmission.

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-2-quic_alokad@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
include/uapi/linux/nl80211.h
net/wireless/nl80211.c