diff options
Diffstat (limited to 'net/wireless/chan.c')
-rw-r--r-- | net/wireless/chan.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/wireless/chan.c b/net/wireless/chan.c index f8ab7df1ab0d..5946450c5406 100644 --- a/net/wireless/chan.c +++ b/net/wireless/chan.c | |||
@@ -705,12 +705,8 @@ cfg80211_get_chan_state(struct wireless_dev *wdev, | |||
705 | case NL80211_IFTYPE_MONITOR: | 705 | case NL80211_IFTYPE_MONITOR: |
706 | case NL80211_IFTYPE_AP_VLAN: | 706 | case NL80211_IFTYPE_AP_VLAN: |
707 | case NL80211_IFTYPE_WDS: | 707 | case NL80211_IFTYPE_WDS: |
708 | /* these interface types don't really have a channel */ | ||
709 | return; | ||
710 | case NL80211_IFTYPE_P2P_DEVICE: | 708 | case NL80211_IFTYPE_P2P_DEVICE: |
711 | if (wdev->wiphy->features & | 709 | /* these interface types don't really have a channel */ |
712 | NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL) | ||
713 | *chanmode = CHAN_MODE_EXCLUSIVE; | ||
714 | return; | 710 | return; |
715 | case NL80211_IFTYPE_UNSPECIFIED: | 711 | case NL80211_IFTYPE_UNSPECIFIED: |
716 | case NUM_NL80211_IFTYPES: | 712 | case NUM_NL80211_IFTYPES: |