diff options
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r-- | net/wireless/nl80211.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index b8d6f101378a..c49f0af61d5e 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -10813,7 +10813,8 @@ void cfg80211_ch_switch_notify(struct net_device *dev, | |||
10813 | 10813 | ||
10814 | if (WARN_ON(wdev->iftype != NL80211_IFTYPE_AP && | 10814 | if (WARN_ON(wdev->iftype != NL80211_IFTYPE_AP && |
10815 | wdev->iftype != NL80211_IFTYPE_P2P_GO && | 10815 | wdev->iftype != NL80211_IFTYPE_P2P_GO && |
10816 | wdev->iftype != NL80211_IFTYPE_ADHOC)) | 10816 | wdev->iftype != NL80211_IFTYPE_ADHOC && |
10817 | wdev->iftype != NL80211_IFTYPE_MESH_POINT)) | ||
10817 | goto out; | 10818 | goto out; |
10818 | 10819 | ||
10819 | wdev->channel = chandef->chan; | 10820 | wdev->channel = chandef->chan; |