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

Bug#497971: Proposed patch



Here is the patch that will help.
diff -uprN linux-source-2.6.26/net/wireless/reg.c /usr/src/linux-source-2.6.26/net/wireless/reg.c
--- linux-source-2.6.26/net/wireless/reg.c	2008-09-24 14:13:39.000000000 +0400
+++ /usr/src/linux-source-2.6.26/net/wireless/reg.c	2008-09-30 10:55:38.000000000 +0400
@@ -29,7 +29,7 @@
 #include <net/wireless.h>
 #include "core.h"
 
-static char *ieee80211_regdom = "EU";
+static char *ieee80211_regdom = "DEB";
 module_param(ieee80211_regdom, charp, 0444);
 MODULE_PARM_DESC(ieee80211_regdom, "IEEE 802.11 regulatory domain code");
 
@@ -50,6 +50,20 @@ struct ieee80211_regdomain {
 #define RANGE_PWR(_start, _end, _pwr, _ag, _flags)	\
 	{ _start, _end, _pwr, _ag, _flags }
 
+static const struct ieee80211_channel_range ieee80211_DEB_channels[] = {
+	/* IEEE 802.11b/g, channels 1..14 */
+	RANGE_PWR(2412, 2484, 20, 6, 0),
+	/* IEEE 802.11a, channels 34..48 */
+	RANGE_PWR(5170, 5240, 20, 6, IEEE80211_CHAN_PASSIVE_SCAN),
+	/* IEEE 802.11a, channels 48..64 */
+	RANGE_PWR(5240, 5320, 23, 6, IEEE80211_CHAN_NO_IBSS |
+				     IEEE80211_CHAN_RADAR),
+	/* IEEE 802.11a, channels 100..140 */
+	RANGE_PWR(5500, 5700, 30, 6, IEEE80211_CHAN_NO_IBSS |
+				     IEEE80211_CHAN_RADAR),
+	/* IEEE 802.11a, channels 149..165, outdoor */
+	RANGE_PWR(5745, 5825, 30, 6, 0),
+};
 
 /*
  * Ideally, in the future, these definitions will be loaded from a
@@ -108,6 +122,7 @@ static const struct ieee80211_regdomain 
 	REGDOM(US),
 	REGDOM(JP),
 	REGDOM(EU),
+	REGDOM(DEB)
 };
 
 

Reply to: