diff options
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 282a4f36eb92..774ccb2d9a76 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -764,6 +764,11 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) | |||
764 | local->hw.offchannel_tx_hw_queue >= local->hw.queues)) | 764 | local->hw.offchannel_tx_hw_queue >= local->hw.queues)) |
765 | return -EINVAL; | 765 | return -EINVAL; |
766 | 766 | ||
767 | if ((hw->wiphy->features & NL80211_FEATURE_TDLS_CHANNEL_SWITCH) && | ||
768 | (!local->ops->tdls_channel_switch || | ||
769 | !local->ops->tdls_cancel_channel_switch)) | ||
770 | return -EOPNOTSUPP; | ||
771 | |||
767 | #ifdef CONFIG_PM | 772 | #ifdef CONFIG_PM |
768 | if (hw->wiphy->wowlan && (!local->ops->suspend || !local->ops->resume)) | 773 | if (hw->wiphy->wowlan && (!local->ops->suspend || !local->ops->resume)) |
769 | return -EINVAL; | 774 | return -EINVAL; |