diff options
author | Arik Nemtsov <arik@wizery.com> | 2015-05-19 14:36:48 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-05-20 16:14:54 +0300 |
commit | c5a71688e1e56e155fb79b8d699322f4f0793cc8 (patch) | |
tree | 3baf7a265ccf7c832fcef9ad604836cbafb57e2b /net/mac80211/tdls.c | |
parent | 464daaf04cb633ae1530652fd23cdea0f0d21dd5 (diff) | |
download | linux-c5a71688e1e56e155fb79b8d699322f4f0793cc8.tar.xz |
mac80211: disconnect TDLS stations on STA CSA
When a station does a channel switch, it's not well defined what its TDLS
peers would do. Avoid a situation when the local side marks a potentially
disconnected peer as a TDLS peer.
Keeping peers connected through CSA is doubly problematic with the upcoming
TDLS WIDER-BW feature which allows peers to widen the BSS channel. The
new channel transitioned-to might not be compatible and would require
a re-negotiation anyway.
Make sure to disallow new TDLS link during CSA.
Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/tdls.c')
-rw-r--r-- | net/mac80211/tdls.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/mac80211/tdls.c b/net/mac80211/tdls.c index 8a92a920ff17..75e8e3bba538 100644 --- a/net/mac80211/tdls.c +++ b/net/mac80211/tdls.c @@ -1183,6 +1183,12 @@ int ieee80211_tdls_oper(struct wiphy *wiphy, struct net_device *dev, switch (oper) { case NL80211_TDLS_ENABLE_LINK: + if (sdata->vif.csa_active) { + tdls_dbg(sdata, "TDLS: disallow link during CSA\n"); + ret = -EBUSY; + break; + } + rcu_read_lock(); sta = sta_info_get(sdata, peer); if (!sta) { |