cfg80211/mac80211: fix FTM settings across CSA
authorJohannes Berg <johannes.berg@intel.com>
Tue, 30 Oct 2018 08:17:44 +0000 (09:17 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 9 Nov 2018 07:56:58 +0000 (08:56 +0100)
commitc177db2d0d5e751d52d3827b8cfdb6ef92a95a2d
tree8501101ca8914e24a29f2bd3816e62acdfc69809
parent5c21e8100dfd57c806e833ae905e26efbb87840f
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>
net/wireless/nl80211.c