From: Ilan Peer Date: Sun, 3 Feb 2013 06:28:27 +0000 (+0200) Subject: cfg80211: fix radar check for P2P_DEVICE X-Git-Tag: v3.9~236^2~28^2^2~26^2~76 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bba87ffe606b7fc5fba73d1c0c5ac1eacd2cebe8;p=platform%2Fkernel%2Flinux-amlogic.git cfg80211: fix radar check for P2P_DEVICE Radar is not required for P2P_DEVICE interfaces. Signed-off-by: Ilan Peer Signed-off-by: Johannes Berg --- diff --git a/net/wireless/util.c b/net/wireless/util.c index d7873c7..37a56ee 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c @@ -1217,10 +1217,10 @@ int cfg80211_can_use_iftype_chan(struct cfg80211_registered_device *rdev, break; case NL80211_IFTYPE_P2P_CLIENT: case NL80211_IFTYPE_STATION: + case NL80211_IFTYPE_P2P_DEVICE: case NL80211_IFTYPE_MONITOR: radar_required = false; break; - case NL80211_IFTYPE_P2P_DEVICE: case NUM_NL80211_IFTYPES: case NL80211_IFTYPE_UNSPECIFIED: default: