linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cfg80211: fix start_radar_detection issue
@ 2014-05-14 11:25 Janusz Dziedzic
  2014-05-14 12:43 ` Coelho, Luciano
  2014-05-14 14:42 ` Johannes Berg
  0 siblings, 2 replies; 7+ messages in thread
From: Janusz Dziedzic @ 2014-05-14 11:25 UTC (permalink / raw)
  To: linux-wireless; +Cc: johannes, luciano.coelho, Janusz Dziedzic

After patch:
cfg80211/mac80211: refactor cfg80211_chandef_dfs_required()

start_radar_detection always fail with -EINVAL.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
---
 net/wireless/chan.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/wireless/chan.c b/net/wireless/chan.c
index 84d686e..7a679a6 100644
--- a/net/wireless/chan.c
+++ b/net/wireless/chan.c
@@ -340,6 +340,7 @@ int cfg80211_chandef_dfs_required(struct wiphy *wiphy,
 	case NL80211_IFTYPE_AP:
 	case NL80211_IFTYPE_P2P_GO:
 	case NL80211_IFTYPE_MESH_POINT:
+	case NL80211_IFTYPE_UNSPECIFIED:
 		width = cfg80211_chandef_get_width(chandef);
 		if (width < 0)
 			return -EINVAL;
@@ -370,7 +371,6 @@ int cfg80211_chandef_dfs_required(struct wiphy *wiphy,
 	case NL80211_IFTYPE_AP_VLAN:
 	case NL80211_IFTYPE_WDS:
 	case NL80211_IFTYPE_P2P_DEVICE:
-	case NL80211_IFTYPE_UNSPECIFIED:
 		break;
 	case NUM_NL80211_IFTYPES:
 		WARN_ON(1);
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-05-15  9:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-14 11:25 [PATCH] cfg80211: fix start_radar_detection issue Janusz Dziedzic
2014-05-14 12:43 ` Coelho, Luciano
2014-05-14 14:42 ` Johannes Berg
2014-05-15  9:28   ` Eliad Peller
2014-05-15  9:39     ` Johannes Berg
2014-05-15  9:51       ` Coelho, Luciano
2014-05-15  9:55         ` Luca Coelho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).