summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/p54/eeprom.h
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@googlemail.com>2011-02-12 22:32:49 +0100
committerJohn W. Linville <linville@tuxdriver.com>2011-02-14 15:52:10 -0500
commit7a047f4f2f3a812f09f42aa784499a54dc4afcf2 (patch)
tree4396f0fbc6d4cf296994fef8b9a5a92a86a0b576 /drivers/net/wireless/p54/eeprom.h
parenta3162eed04ae76be710d895978478aa6d849de41 (diff)
downloadop-kernel-dev-7a047f4f2f3a812f09f42aa784499a54dc4afcf2.zip
op-kernel-dev-7a047f4f2f3a812f09f42aa784499a54dc4afcf2.tar.gz
p54: enhance rssi->dBm database import
This patch fixes several shortcomings of the previous implementation. Features of the rewrite include: * handles undocumented "0x0000" word at the start of the frequency table. (Affected some early? DELL 1450 USB devices and my Symbol 5GHz miniPCI card.) * supports more than just one reference point per band. (Also needed for the Symbol card.) * ships with default values in case the eeprom data is damaged, absent or unsupported. Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54/eeprom.h')
-rw-r--r--drivers/net/wireless/p54/eeprom.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/p54/eeprom.h b/drivers/net/wireless/p54/eeprom.h
index 9051aef..afde72b 100644
--- a/drivers/net/wireless/p54/eeprom.h
+++ b/drivers/net/wireless/p54/eeprom.h
@@ -81,6 +81,12 @@ struct pda_pa_curve_data {
u8 data[0];
} __packed;
+struct pda_rssi_cal_ext_entry {
+ __le16 freq;
+ __le16 mul;
+ __le16 add;
+} __packed;
+
struct pda_rssi_cal_entry {
__le16 mul;
__le16 add;
@@ -179,6 +185,7 @@ struct pda_custom_wrapper {
/* used by our modificated eeprom image */
#define PDR_RSSI_LINEAR_APPROXIMATION_CUSTOM 0xDEAD
+#define PDR_RSSI_LINEAR_APPROXIMATION_CUSTOMV2 0xCAFF
#define PDR_PRISM_PA_CAL_OUTPUT_POWER_LIMITS_CUSTOM 0xBEEF
#define PDR_PRISM_PA_CAL_CURVE_DATA_CUSTOM 0xB05D
OpenPOWER on IntegriCloud