Skip to contentSkip to conversation

ath,ar9170: move CTL_ defines into regd.h

PATCH In review Joerg Albert 2 participants 4 messages Sep 5, 2009 Atheros ath generic utilities

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ath,ar9170: move CTL_ defines into regd.h

The ar9170 driver needs the defines for conformance test limit groups and cannot include regd_common.h

---
 drivers/net/wireless/ath/regd.h        |    6 ++++++
 drivers/net/wireless/ath/regd_common.h |    6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)
drivers/net/wireless/ath/regd.h +6 -0
index 4d3c536..c1dd857 100644
@@ -22,6 +22,12 @@
 
 #include "ath.h"
 
+enum ctl_group {
+	CTL_FCC = 0x10,
+	CTL_MKK = 0x40,
+	CTL_ETSI = 0x30,
+};
+
 #define NO_CTL 0xff
 #define SD_NO_CTL               0xE0
 #define NO_CTL                  0xff
drivers/net/wireless/ath/regd_common.h +0 -6
index ad6d938..9847af7 100644
@@ -154,12 +154,6 @@ enum EnumRd {
 	DEBUG_REG_DMN = 0x01ff,
 };
 
-enum ctl_group {
-	CTL_FCC = 0x10,
-	CTL_MKK = 0x40,
-	CTL_ETSI = 0x30,
-};
-
 /* Regpair to CTL band mapping */
 static struct reg_dmn_pair_mapping regDomainPairs[] = {
 	/* regpair, 5 GHz CTL, 2 GHz CTL */
Signature · 1 line
1.6.0.4
#2 lore raw
Quoted 9 lines · Luis R. Rodriguez
Quoted 4 lines · Joerg Albert

The ar9170 driver needs the defines for conformance test limit groups and cannot include regd_common.h

Just please test compilation of ath5k and ath9k as well.

They compile fine.

Sometime we should IMHO unify the CTL_* defines in the driver below ath/. Currently ath5k, ath9k and regd.h have separate definitions for the modes, e.g.

~/src/wireless.gits/wireless-testing/drivers/net/wireless/ath$ fgrep -r --include=*.h CTL_11A * ath5k/eeprom.h: AR5K_CTL_11A = 0,
ath9k/eeprom.h:#define CTL_11A 0
ath9k/eeprom.h:#define CTL_11A_EXT (CTL_11A | EXT_ADDITIVE)
regd.h:#define CTL_11A 0

Regards,
Joerg.

#3 lore raw
Quoted 13 lines · Joerg Albert
Quoted 9 lines · Luis R. Rodriguez
Quoted 4 lines · Joerg Albert

The ar9170 driver needs the defines for conformance test limit groups and cannot include regd_common.h

Just please test compilation of ath5k and ath9k as well.

They compile fine.

Quoted 8 lines

Sometime we should IMHO unify the CTL_* defines in the driver below ath/. Currently ath5k, ath9k and regd.h have separate definitions for the modes, e.g.

~/src/wireless.gits/wireless-testing/drivers/net/wireless/ath$ fgrep -r --include=*.h CTL_11A * ath5k/eeprom.h: AR5K_CTL_11A = 0,
ath9k/eeprom.h:#define CTL_11A                 0
ath9k/eeprom.h:#define CTL_11A_EXT (CTL_11A | EXT_ADDITIVE)
regd.h:#define CTL_11A                 0

right, that's the idea of ath.ko, to unify as much as we can, step by step. If you see anything else to be shared just send a patch.

Luis