2013-02-05 10:44:07

by Johannes Berg

[permalink] [raw]
Subject: [PATCH] mac80211: fix radar check for P2P_DEVICE

From: Ilan Peer <[email protected]>

Radar is not required for P2P_DEVICE interfaces.

Signed-off-by: Ilan Peer <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
---
net/wireless/util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

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:
--
1.8.0



2013-02-05 11:46:04

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH] mac80211: fix radar check for P2P_DEVICE

On Tue, 2013-02-05 at 11:44 +0100, Johannes Berg wrote:
> From: Ilan Peer <[email protected]>
>
> Radar is not required for P2P_DEVICE interfaces.

Applied.

johannes