summaryrefslogtreecommitdiffstats
path: root/net/wireless/chan.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2014-02-12 14:21:15 +0100
committerJohannes Berg <johannes.berg@intel.com>2014-02-12 14:22:03 +0100
commite7aceef4ac3180bd93d4c0d3fe23775850b6c31d (patch)
tree8ee9d666912b8b1f828a3bf4594f93d53784565e /net/wireless/chan.c
parentdfa1ad299184abeb8fea170e65727e263ac236a5 (diff)
downloadop-kernel-dev-e7aceef4ac3180bd93d4c0d3fe23775850b6c31d.zip
op-kernel-dev-e7aceef4ac3180bd93d4c0d3fe23775850b6c31d.tar.gz
cfg80211: remove NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL
There's no driver using this flag and consequently no userspace application is actually looking at it. As it seems unlikely for any driver to start using it, remove it and the (very little) code that used it. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/chan.c')
-rw-r--r--net/wireless/chan.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/net/wireless/chan.c b/net/wireless/chan.c
index f8ab7df..5946450 100644
--- a/net/wireless/chan.c
+++ b/net/wireless/chan.c
@@ -705,12 +705,8 @@ cfg80211_get_chan_state(struct wireless_dev *wdev,
case NL80211_IFTYPE_MONITOR:
case NL80211_IFTYPE_AP_VLAN:
case NL80211_IFTYPE_WDS:
- /* these interface types don't really have a channel */
- return;
case NL80211_IFTYPE_P2P_DEVICE:
- if (wdev->wiphy->features &
- NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL)
- *chanmode = CHAN_MODE_EXCLUSIVE;
+ /* these interface types don't really have a channel */
return;
case NL80211_IFTYPE_UNSPECIFIED:
case NUM_NL80211_IFTYPES:
OpenPOWER on IntegriCloud