Skip to content

Commit c177db2

Browse files
committed
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: 81e54d0 ("cfg80211: support FTM responder configuration/statistics") Signed-off-by: Johannes Berg <[email protected]>
1 parent 5c21e81 commit c177db2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/wireless/nl80211.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7870,6 +7870,7 @@ static int nl80211_channel_switch(struct sk_buff *skb, struct genl_info *info)
78707870
}
78717871

78727872
memset(&params, 0, sizeof(params));
7873+
params.beacon_csa.ftm_responder = -1;
78737874

78747875
if (!info->attrs[NL80211_ATTR_WIPHY_FREQ] ||
78757876
!info->attrs[NL80211_ATTR_CH_SWITCH_COUNT])

0 commit comments

Comments
 (0)