summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/p54/eeprom.h
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@googlemail.com>2012-07-28 02:57:51 +0200
committerJohn W. Linville <linville@tuxdriver.com>2012-08-10 21:17:14 +0200
commit9bc63816be9bf504414d350e605a4b30f857907d (patch)
tree67fd903805199135fd7dbb8a85be615ce6a584b1 /drivers/net/wireless/p54/eeprom.h
parentMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/blueto... (diff)
downloadlinux-9bc63816be9bf504414d350e605a4b30f857907d.tar.xz
linux-9bc63816be9bf504414d350e605a4b30f857907d.zip
p54: parse output power table
For the upcoming tpc changes, the driver needs to provide sensible max output values for each supported channel. And while the eeprom always had a output_limit table, which defines the upper limit for each frequency and modulation, it was never really useful for anything... until now. Note: For anyone wondering about what your card is calibrated for: check "iw list". * 2412 MHz [1] (18.0 dBm) * 2437 MHz [6] (19.0 dBm) [...] * 5180 MHz [36] (18.0 dBm) * 5260 MHz [52] (17.0 dBm) (radar detection) * 5680 MHz [136] (19.0 dBm) (radar detection) (for a Dell Wireless 1450 USB Adapter) 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.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/p54/eeprom.h b/drivers/net/wireless/p54/eeprom.h
index afde72b84606..20ebe39a3f4e 100644
--- a/drivers/net/wireless/p54/eeprom.h
+++ b/drivers/net/wireless/p54/eeprom.h
@@ -57,6 +57,18 @@ struct pda_channel_output_limit {
u8 rate_set_size;
} __packed;
+struct pda_channel_output_limit_point_longbow {
+ __le16 val_bpsk;
+ __le16 val_qpsk;
+ __le16 val_16qam;
+ __le16 val_64qam;
+} __packed;
+
+struct pda_channel_output_limit_longbow {
+ __le16 freq;
+ struct pda_channel_output_limit_point_longbow point[3];
+} __packed;
+
struct pda_pa_curve_data_sample_rev0 {
u8 rf_power;
u8 pa_detector;