aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1271_init.h
diff options
context:
space:
mode:
authorLuciano Coelho <luciano.coelho@nokia.com>2009-11-23 16:22:17 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-11-28 15:04:30 -0500
commit98b5dd5ded8cb59b598b2c0c396100054779eda7 (patch)
tree9b659aed8b6d20827c7138d4845082a3b7f1db4f /drivers/net/wireless/wl12xx/wl1271_init.h
parentcc7defa366ea770efb25add8711defe88862197b (diff)
wl1271: fix radio and general parameters commands
We were missing the command header in the radio and general parameters commands. This was causing them to fail, resulting in problems in the power levels and other PLT-related commands. Also reorganized the command functions, moving from wl1271_init.c to wl1271_cmd.c where it fits better. Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com> Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_init.h')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_init.h72
1 files changed, 0 insertions, 72 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_init.h b/drivers/net/wireless/wl12xx/wl1271_init.h
index 539b57f207c6..930677fbe852 100644
--- a/drivers/net/wireless/wl12xx/wl1271_init.h
+++ b/drivers/net/wireless/wl12xx/wl1271_init.h
@@ -28,77 +28,5 @@
28 28
29int wl1271_hw_init_power_auth(struct wl1271 *wl); 29int wl1271_hw_init_power_auth(struct wl1271 *wl);
30int wl1271_hw_init(struct wl1271 *wl); 30int wl1271_hw_init(struct wl1271 *wl);
31int wl1271_init_general_parms(struct wl1271 *wl);
32int wl1271_init_radio_parms(struct wl1271 *wl);
33
34/* These are not really a TEST_CMD, but the ref driver uses them as such */
35#define TEST_CMD_INI_FILE_RADIO_PARAM 0x19
36#define TEST_CMD_INI_FILE_GENERAL_PARAM 0x1E
37
38struct wl1271_general_parms {
39 u8 id;
40 u8 padding[3];
41
42 u8 ref_clk;
43 u8 settling_time;
44 u8 clk_valid_on_wakeup;
45 u8 dc2dcmode;
46 u8 single_dual_band;
47
48 u8 tx_bip_fem_autodetect;
49 u8 tx_bip_fem_manufacturer;
50 u8 settings;
51} __attribute__ ((packed));
52
53struct wl1271_radio_parms {
54 u8 id;
55 u8 padding[3];
56
57 /* Static radio parameters */
58 /* 2.4GHz */
59 u8 rx_trace_loss;
60 u8 tx_trace_loss;
61 s8 rx_rssi_and_proc_compens[CONF_RSSI_AND_PROCESS_COMPENSATION_SIZE];
62
63 /* 5GHz */
64 u8 rx_trace_loss_5[CONF_NUMBER_OF_SUB_BANDS_5];
65 u8 tx_trace_loss_5[CONF_NUMBER_OF_SUB_BANDS_5];
66 s8 rx_rssi_and_proc_compens_5[CONF_RSSI_AND_PROCESS_COMPENSATION_SIZE];
67
68 /* Dynamic radio parameters */
69 /* 2.4GHz */
70 __le16 tx_ref_pd_voltage;
71 s8 tx_ref_power;
72 s8 tx_offset_db;
73
74 s8 tx_rate_limits_normal[CONF_NUMBER_OF_RATE_GROUPS];
75 s8 tx_rate_limits_degraded[CONF_NUMBER_OF_RATE_GROUPS];
76
77 s8 tx_channel_limits_11b[CONF_NUMBER_OF_CHANNELS_2_4];
78 s8 tx_channel_limits_ofdm[CONF_NUMBER_OF_CHANNELS_2_4];
79 s8 tx_pdv_rate_offsets[CONF_NUMBER_OF_RATE_GROUPS];
80
81 u8 tx_ibias[CONF_NUMBER_OF_RATE_GROUPS];
82 u8 rx_fem_insertion_loss;
83
84 u8 padding2;
85
86 /* 5GHz */
87 __le16 tx_ref_pd_voltage_5[CONF_NUMBER_OF_SUB_BANDS_5];
88 s8 tx_ref_power_5[CONF_NUMBER_OF_SUB_BANDS_5];
89 s8 tx_offset_db_5[CONF_NUMBER_OF_SUB_BANDS_5];
90
91 s8 tx_rate_limits_normal_5[CONF_NUMBER_OF_RATE_GROUPS];
92 s8 tx_rate_limits_degraded_5[CONF_NUMBER_OF_RATE_GROUPS];
93
94 s8 tx_channel_limits_ofdm_5[CONF_NUMBER_OF_CHANNELS_5];
95 s8 tx_pdv_rate_offsets_5[CONF_NUMBER_OF_RATE_GROUPS];
96
97 /* FIXME: this is inconsistent with the types for 2.4GHz */
98 s8 tx_ibias_5[CONF_NUMBER_OF_RATE_GROUPS];
99 s8 rx_fem_insertion_loss_5[CONF_NUMBER_OF_SUB_BANDS_5];
100
101 u8 padding3[2];
102} __attribute__ ((packed));
103 31
104#endif 32#endif