mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
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: 81e54d08d9
("cfg80211: support FTM responder configuration/statistics")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
5c21e8100d
commit
c177db2d0d
@ -7870,6 +7870,7 @@ static int nl80211_channel_switch(struct sk_buff *skb, struct genl_info *info)
|
||||
}
|
||||
|
||||
memset(¶ms, 0, sizeof(params));
|
||||
params.beacon_csa.ftm_responder = -1;
|
||||
|
||||
if (!info->attrs[NL80211_ATTR_WIPHY_FREQ] ||
|
||||
!info->attrs[NL80211_ATTR_CH_SWITCH_COUNT])
|
||||
|
Loading…
Reference in New Issue
Block a user