diff options
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271.h')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271.h | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271.h b/drivers/net/wireless/wl12xx/wl1271.h index 94359b1a861f..d0938db043b3 100644 --- a/drivers/net/wireless/wl12xx/wl1271.h +++ b/drivers/net/wireless/wl12xx/wl1271.h | |||
@@ -107,10 +107,9 @@ enum { | |||
107 | CFG_RX_CTL_EN | CFG_RX_BCN_EN | \ | 107 | CFG_RX_CTL_EN | CFG_RX_BCN_EN | \ |
108 | CFG_RX_AUTH_EN | CFG_RX_ASSOC_EN) | 108 | CFG_RX_AUTH_EN | CFG_RX_ASSOC_EN) |
109 | 109 | ||
110 | #define WL1271_DEFAULT_BASIC_RATE_SET (CONF_TX_RATE_MASK_ALL) | ||
111 | |||
112 | #define WL1271_FW_NAME "wl1271-fw.bin" | 110 | #define WL1271_FW_NAME "wl1271-fw.bin" |
113 | #define WL1271_NVS_NAME "wl1271-nvs.bin" | 111 | #define WL1271_NVS_NAME "wl1271-nvs.bin" |
112 | #define WL1271_NVS_LEN 468 | ||
114 | 113 | ||
115 | /* | 114 | /* |
116 | * Enable/disable 802.11a support for WL1273 | 115 | * Enable/disable 802.11a support for WL1273 |
@@ -276,6 +275,7 @@ struct wl1271_debugfs { | |||
276 | 275 | ||
277 | struct dentry *retry_count; | 276 | struct dentry *retry_count; |
278 | struct dentry *excessive_retries; | 277 | struct dentry *excessive_retries; |
278 | struct dentry *gpio_power; | ||
279 | }; | 279 | }; |
280 | 280 | ||
281 | #define NUM_TX_QUEUES 4 | 281 | #define NUM_TX_QUEUES 4 |
@@ -322,6 +322,17 @@ struct wl1271 { | |||
322 | enum wl1271_state state; | 322 | enum wl1271_state state; |
323 | struct mutex mutex; | 323 | struct mutex mutex; |
324 | 324 | ||
325 | #define WL1271_FLAG_STA_RATES_CHANGED (0) | ||
326 | #define WL1271_FLAG_STA_ASSOCIATED (1) | ||
327 | #define WL1271_FLAG_JOINED (2) | ||
328 | #define WL1271_FLAG_GPIO_POWER (3) | ||
329 | #define WL1271_FLAG_TX_QUEUE_STOPPED (4) | ||
330 | #define WL1271_FLAG_SCANNING (5) | ||
331 | #define WL1271_FLAG_IN_ELP (6) | ||
332 | #define WL1271_FLAG_PSM (7) | ||
333 | #define WL1271_FLAG_PSM_REQUESTED (8) | ||
334 | unsigned long flags; | ||
335 | |||
325 | struct wl1271_partition_set part; | 336 | struct wl1271_partition_set part; |
326 | 337 | ||
327 | struct wl1271_chip chip; | 338 | struct wl1271_chip chip; |
@@ -359,7 +370,6 @@ struct wl1271 { | |||
359 | 370 | ||
360 | /* Frames scheduled for transmission, not handled yet */ | 371 | /* Frames scheduled for transmission, not handled yet */ |
361 | struct sk_buff_head tx_queue; | 372 | struct sk_buff_head tx_queue; |
362 | bool tx_queue_stopped; | ||
363 | 373 | ||
364 | struct work_struct tx_work; | 374 | struct work_struct tx_work; |
365 | 375 | ||
@@ -387,14 +397,15 @@ struct wl1271 { | |||
387 | u32 mbox_ptr[2]; | 397 | u32 mbox_ptr[2]; |
388 | 398 | ||
389 | /* Are we currently scanning */ | 399 | /* Are we currently scanning */ |
390 | bool scanning; | ||
391 | struct wl1271_scan scan; | 400 | struct wl1271_scan scan; |
392 | 401 | ||
393 | /* Our association ID */ | 402 | /* Our association ID */ |
394 | u16 aid; | 403 | u16 aid; |
395 | 404 | ||
396 | /* currently configured rate set */ | 405 | /* currently configured rate set */ |
406 | u32 sta_rate_set; | ||
397 | u32 basic_rate_set; | 407 | u32 basic_rate_set; |
408 | u32 rate_set; | ||
398 | 409 | ||
399 | /* The current band */ | 410 | /* The current band */ |
400 | enum ieee80211_band band; | 411 | enum ieee80211_band band; |
@@ -405,18 +416,9 @@ struct wl1271 { | |||
405 | unsigned int rx_config; | 416 | unsigned int rx_config; |
406 | unsigned int rx_filter; | 417 | unsigned int rx_filter; |
407 | 418 | ||
408 | /* is firmware in elp mode */ | ||
409 | bool elp; | ||
410 | |||
411 | struct completion *elp_compl; | 419 | struct completion *elp_compl; |
412 | struct delayed_work elp_work; | 420 | struct delayed_work elp_work; |
413 | 421 | ||
414 | /* we can be in psm, but not in elp, we have to differentiate */ | ||
415 | bool psm; | ||
416 | |||
417 | /* PSM mode requested */ | ||
418 | bool psm_requested; | ||
419 | |||
420 | /* retry counter for PSM entries */ | 422 | /* retry counter for PSM entries */ |
421 | u8 psm_entry_retry; | 423 | u8 psm_entry_retry; |
422 | 424 | ||
@@ -435,9 +437,6 @@ struct wl1271 { | |||
435 | 437 | ||
436 | struct ieee80211_vif *vif; | 438 | struct ieee80211_vif *vif; |
437 | 439 | ||
438 | /* Used for a workaround to send disconnect before rejoining */ | ||
439 | bool joined; | ||
440 | |||
441 | /* Current chipset configuration */ | 440 | /* Current chipset configuration */ |
442 | struct conf_drv_settings conf; | 441 | struct conf_drv_settings conf; |
443 | 442 | ||
@@ -455,7 +454,9 @@ int wl1271_plt_stop(struct wl1271 *wl); | |||
455 | 454 | ||
456 | #define WL1271_TX_QUEUE_MAX_LENGTH 20 | 455 | #define WL1271_TX_QUEUE_MAX_LENGTH 20 |
457 | 456 | ||
458 | /* WL1271 needs a 200ms sleep after power on */ | 457 | /* WL1271 needs a 200ms sleep after power on, and a 20ms sleep before power |
458 | on in case is has been shut down shortly before */ | ||
459 | #define WL1271_PRE_POWER_ON_SLEEP 20 /* in miliseconds */ | ||
459 | #define WL1271_POWER_ON_SLEEP 200 /* in miliseconds */ | 460 | #define WL1271_POWER_ON_SLEEP 200 /* in miliseconds */ |
460 | 461 | ||
461 | static inline bool wl1271_11a_enabled(void) | 462 | static inline bool wl1271_11a_enabled(void) |