summaryrefslogtreecommitdiffstats
path: root/net/wireless/nl80211.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2018-10-30 09:17:44 +0100
committerJohannes Berg <johannes.berg@intel.com>2018-11-09 08:56:58 +0100
commitc177db2d0d5e751d52d3827b8cfdb6ef92a95a2d (patch)
tree8501101ca8914e24a29f2bd3816e62acdfc69809 /net/wireless/nl80211.c
parentmac80211: Clear beacon_int in ieee80211_do_stop (diff)
downloadlinux-c177db2d0d5e751d52d3827b8cfdb6ef92a95a2d.tar.xz
linux-c177db2d0d5e751d52d3827b8cfdb6ef92a95a2d.zip
cfg80211/mac80211: fix FTM settings across CSA
When FTM is enabled, doing a CSA will unexpectedly lose it since the value of ftm_responder may be initialized to 0 instead of -1, so fix that. Fixes: 81e54d08d9d8 ("cfg80211: support FTM responder configuration/statistics") Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r--net/wireless/nl80211.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 744b5851bbf9..8d763725498c 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -7870,6 +7870,7 @@ static int nl80211_channel_switch(struct sk_buff *skb, struct genl_info *info)
}
memset(&params, 0, sizeof(params));
+ params.beacon_csa.ftm_responder = -1;
if (!info->attrs[NL80211_ATTR_WIPHY_FREQ] ||
!info->attrs[NL80211_ATTR_CH_SWITCH_COUNT])