aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/p54/p54common.h
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@web.de>2008-10-14 22:07:56 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-10-31 19:00:34 -0400
commit5e73444e91889ea6c7a83bc174ef8e8b6aaeea9b (patch)
tree84fb678e99ed7f52c4588861d45651dbea2f24e5 /drivers/net/wireless/p54/p54common.h
parentb92f30d65aeb0502e2ed8beb80c8465578b40002 (diff)
p54: borrow some setup code from stlc45xx
This patch initialize all remaining values which are necessary for SPI firmwares. 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.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/drivers/net/wireless/p54/p54common.h b/drivers/net/wireless/p54/p54common.h
index 2cb3885c0210..125f70a90dab 100644
--- a/drivers/net/wireless/p54/p54common.h
+++ b/drivers/net/wireless/p54/p54common.h
@@ -219,8 +219,8 @@ struct p54_tx_control_allocdata {
219 u8 align[0]; 219 u8 align[0];
220} __attribute__ ((packed)); 220} __attribute__ ((packed));
221 221
222struct p54_tx_control_filter { 222struct p54_setup_mac {
223 __le16 filter_type; 223 __le16 mac_mode;
224 u8 mac_addr[ETH_ALEN]; 224 u8 mac_addr[ETH_ALEN];
225 u8 bssid[ETH_ALEN]; 225 u8 bssid[ETH_ALEN];
226 u8 rx_antenna; 226 u8 rx_antenna;
@@ -240,15 +240,19 @@ struct p54_tx_control_filter {
240 __le16 max_rx; 240 __le16 max_rx;
241 __le16 rxhw; 241 __le16 rxhw;
242 __le16 timer; 242 __le16 timer;
243 __le16 unalloc0; 243 __le16 truncate;
244 __le32 unalloc1; 244 __le32 basic_rate_mask;
245 u8 sbss_offset;
246 u8 mcast_window;
247 u8 rx_rssi_threshold;
248 u8 rx_ed_threshold;
249 __le32 ref_clock;
250 __le16 lpf_bandwidth;
251 __le16 osc_start_delay;
245 } v2 __attribute__ ((packed)); 252 } v2 __attribute__ ((packed));
246 } __attribute__ ((packed)); 253 } __attribute__ ((packed));
247} __attribute__ ((packed)); 254} __attribute__ ((packed));
248 255
249#define P54_TX_CONTROL_FILTER_V1_LEN (sizeof(struct p54_tx_control_filter))
250#define P54_TX_CONTROL_FILTER_V2_LEN (sizeof(struct p54_tx_control_filter)-8)
251
252struct p54_tx_control_channel { 256struct p54_tx_control_channel {
253 __le16 flags; 257 __le16 flags;
254 __le16 dwell; 258 __le16 dwell;