2013-04-23 06:54:25

by Vladimir Kondratiev

[permalink] [raw]
Subject: [PATCH] cfg80211: Cover 60g regulatory class in ieee80211_operating_class_to_band

Hi,

In the function ieee80211_operating_class_to_band, introduced in commit
1ce3e82b0eb472161313183be0033e46d5c4bbaf cfg80211: add ieee80211_operating_class_to_band,
60GHz band is not covered. Patch below adds 60g.

Thanks, Vladimir

>From 6410ccd23df437531cd5b7c5d5c74f74cbfee3f1 Mon Sep 17 00:00:00 2001
From: Vladimir Kondratiev <[email protected]>
Date: Tue, 23 Apr 2013 09:49:38 +0300
Subject: [PATCH] cfg80211: Cover 60g regulatory class in
ieee80211_operating_class_to_band

Add regulatory class for 60GHz band, accordingly to the last specification.

Signed-off-by: Vladimir Kondratiev <[email protected]>
---
net/wireless/util.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/net/wireless/util.c b/net/wireless/util.c
index a7046a4..bb52486 100644
--- a/net/wireless/util.c
+++ b/net/wireless/util.c
@@ -1169,6 +1169,9 @@ bool ieee80211_operating_class_to_band(u8 operating_class,
case 84:
*band = IEEE80211_BAND_2GHZ;
return true;
+ case 180:
+ *band = IEEE80211_BAND_60GHZ;
+ return true;
}

return false;
--
1.7.10.4




2013-04-24 11:31:59

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH] cfg80211: Cover 60g regulatory class in ieee80211_operating_class_to_band

On Tue, 2013-04-23 at 09:54 +0300, Vladimir Kondratiev wrote:
> Hi,
>
> In the function ieee80211_operating_class_to_band, introduced in commit
> 1ce3e82b0eb472161313183be0033e46d5c4bbaf cfg80211: add ieee80211_operating_class_to_band,
> 60GHz band is not covered. Patch below adds 60g.
>
> Thanks, Vladimir

Applied. I'd really prefer if you could format your patches properly
though, with the extra text behind a --- line. Next time please.

johannes