diff options
author | Janusz Dziedzic <janusz.dziedzic@tieto.com> | 2014-05-14 07:25:04 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-05-14 10:42:22 -0400 |
commit | 67ae07a109f3d518085e3b81aa48740e8c5cc3f7 (patch) | |
tree | aee09b474382fade942b5945fb2ee9bada3b6a0e | |
parent | 8c48b50a1a888ac5511fe856d63f72fb688c6bb4 (diff) |
cfg80211: fix start_radar_detection issue
After patch:
cfg80211/mac80211: refactor cfg80211_chandef_dfs_required()
start_radar_detection always fail with -EINVAL.
Acked-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | net/wireless/chan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/chan.c b/net/wireless/chan.c index 84d686e2dbd0..7a679a6e1d1a 100644 --- a/net/wireless/chan.c +++ b/net/wireless/chan.c | |||
@@ -340,6 +340,7 @@ int cfg80211_chandef_dfs_required(struct wiphy *wiphy, | |||
340 | case NL80211_IFTYPE_AP: | 340 | case NL80211_IFTYPE_AP: |
341 | case NL80211_IFTYPE_P2P_GO: | 341 | case NL80211_IFTYPE_P2P_GO: |
342 | case NL80211_IFTYPE_MESH_POINT: | 342 | case NL80211_IFTYPE_MESH_POINT: |
343 | case NL80211_IFTYPE_UNSPECIFIED: | ||
343 | width = cfg80211_chandef_get_width(chandef); | 344 | width = cfg80211_chandef_get_width(chandef); |
344 | if (width < 0) | 345 | if (width < 0) |
345 | return -EINVAL; | 346 | return -EINVAL; |
@@ -370,7 +371,6 @@ int cfg80211_chandef_dfs_required(struct wiphy *wiphy, | |||
370 | case NL80211_IFTYPE_AP_VLAN: | 371 | case NL80211_IFTYPE_AP_VLAN: |
371 | case NL80211_IFTYPE_WDS: | 372 | case NL80211_IFTYPE_WDS: |
372 | case NL80211_IFTYPE_P2P_DEVICE: | 373 | case NL80211_IFTYPE_P2P_DEVICE: |
373 | case NL80211_IFTYPE_UNSPECIFIED: | ||
374 | break; | 374 | break; |
375 | case NUM_NL80211_IFTYPES: | 375 | case NUM_NL80211_IFTYPES: |
376 | WARN_ON(1); | 376 | WARN_ON(1); |