|
@@ -11702,12 +11702,6 @@ void cfg80211_ch_switch_notify(struct net_device *dev,
|
|
|
|
|
|
trace_cfg80211_ch_switch_notify(dev, chandef);
|
|
|
|
|
|
- if (WARN_ON(wdev->iftype != NL80211_IFTYPE_AP &&
|
|
|
- wdev->iftype != NL80211_IFTYPE_P2P_GO &&
|
|
|
- wdev->iftype != NL80211_IFTYPE_ADHOC &&
|
|
|
- wdev->iftype != NL80211_IFTYPE_MESH_POINT))
|
|
|
- return;
|
|
|
-
|
|
|
wdev->chandef = *chandef;
|
|
|
wdev->preset_chandef = *chandef;
|
|
|
nl80211_ch_switch_notify(rdev, dev, chandef, GFP_KERNEL,
|