diff options
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) | |||
541 | !wiphy->wowlan->tcp)) | 541 | !wiphy->wowlan->tcp)) |
542 | return -EINVAL; | 542 | return -EINVAL; |
543 | #endif | 543 | #endif |
544 | if (WARN_ON((wiphy->features & NL80211_FEATURE_TDLS_CHANNEL_SWITCH) && | ||
545 | (!rdev->ops->tdls_channel_switch || | ||
546 | !rdev->ops->tdls_cancel_channel_switch))) | ||
547 | return -EINVAL; | ||
544 | 548 | ||
545 | if (WARN_ON(wiphy->coalesce && | 549 | if (WARN_ON(wiphy->coalesce && |
546 | (!wiphy->coalesce->n_rules || | 550 | (!wiphy->coalesce->n_rules || |