diff options
author | Arik Nemtsov <arik@wizery.com> | 2014-11-19 12:54:26 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-11-19 18:45:12 +0100 |
commit | 1057d35ede5dbf7ed7842357564fb42c9b54ba50 (patch) | |
tree | ffcef6d5d942a74a1f3f71fc5aab6d910398240d /net/wireless/core.c | |
parent | c2733905692589cc73928ffd65d26107536e80fe (diff) | |
download | linux-stable-1057d35ede5dbf7ed7842357564fb42c9b54ba50.tar.gz linux-stable-1057d35ede5dbf7ed7842357564fb42c9b54ba50.tar.bz2 linux-stable-1057d35ede5dbf7ed7842357564fb42c9b54ba50.zip |
cfg80211: introduce TDLS channel switch commands
Introduce commands to initiate and cancel TDLS channel-switching. Once
TDLS channel-switching is started, the lower level driver is responsible
for continually initiating channel-switch operations and returning to
the base (AP) channel to listen for beacons from time to time.
Upon cancellation of the channel-switch all communication between the
relevant TDLS peers will continue on the base channel.
Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/core.c')
-rw-r--r-- | net/wireless/core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c index a4d27927aba2..4c2e501203d1 100644 --- a/net/wireless/core.c +++ b/net/wireless/core.c @@ -541,6 +541,10 @@ int wiphy_register(struct wiphy *wiphy) !wiphy->wowlan->tcp)) return -EINVAL; #endif + if (WARN_ON((wiphy->features & NL80211_FEATURE_TDLS_CHANNEL_SWITCH) && + (!rdev->ops->tdls_channel_switch || + !rdev->ops->tdls_cancel_channel_switch))) + return -EINVAL; if (WARN_ON(wiphy->coalesce && (!wiphy->coalesce->n_rules || |