summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/p54/p54common.h
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@web.de>2008-12-26 23:50:33 +0300
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 23:59:40 +0300
commit98a8d1a8f22237e2aa7db5453df0f68935a5ede0 (patch)
tree6cb4cf681d24d6228f34a6ab3f4e789e5ca2bc20 /drivers/net/wireless/p54/p54common.h
parente365f16046b72977ec22364215b57af840f0907e (diff)
downloadlinux-98a8d1a8f22237e2aa7db5453df0f68935a5ede0.tar.xz
p54: regulatory domain hints
This patch adds a sub-routine that parses the default country eeprom entry and forwards the obtained Alpha2 identifier to the regulatory sub-system. Note: I dropped the p54 specific regdomain<->alpha2 conversion code for now. But it will be added as soon as there's the common library function is ready. Signed-off-by: Christian Lamparter <chunkeey@web.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54/p54common.h')
-rw-r--r--drivers/net/wireless/p54/p54common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/p54/p54common.h b/drivers/net/wireless/p54/p54common.h
index 514f660d0be9..163e3adba422 100644
--- a/drivers/net/wireless/p54/p54common.h
+++ b/drivers/net/wireless/p54/p54common.h
@@ -180,6 +180,12 @@ struct pda_rssi_cal_entry {
__le16 add;
} __attribute__ ((packed));
+struct pda_country {
+ u8 regdomain;
+ u8 alpha2[2];
+ u8 flags;
+} __attribute__ ((packed));
+
/*
* this defines the PDR codes used to build PDAs as defined in document
* number 553155. The current implementation mirrors version 1.1 of the