Search Linux Wireless

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <qca_vkondrat@xxxxxxxxxxxxxxxx>
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 <qca_vkondrat@xxxxxxxxxxxxxxxx>
---
 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


--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux