diff options
author | Juuso Oikarinen <juuso.oikarinen@nokia.com> | 2009-12-11 08:41:07 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-12-28 16:31:35 -0500 |
commit | 71449f8d7059b69e6e45063997d225d8202221a2 (patch) | |
tree | 480496ab5644801421965c18fd329084c4df123d /drivers/net/wireless/wl12xx/wl1271.h | |
parent | 830fb67b8e37fb03cf703b4e1217fe30ce32d579 (diff) |
wl1271: Change booleans in struct wl1271 into a flags bitmask
For cleaner implementation, change the bunch of booleans in the struct wl1271
structure into a flags bitmask.
Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271.h')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271.h | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271.h b/drivers/net/wireless/wl12xx/wl1271.h index 9290c92522b4..d0938db043b3 100644 --- a/drivers/net/wireless/wl12xx/wl1271.h +++ b/drivers/net/wireless/wl12xx/wl1271.h | |||
@@ -324,6 +324,13 @@ struct wl1271 { | |||
324 | 324 | ||
325 | #define WL1271_FLAG_STA_RATES_CHANGED (0) | 325 | #define WL1271_FLAG_STA_RATES_CHANGED (0) |
326 | #define WL1271_FLAG_STA_ASSOCIATED (1) | 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) | ||
327 | unsigned long flags; | 334 | unsigned long flags; |
328 | 335 | ||
329 | struct wl1271_partition_set part; | 336 | struct wl1271_partition_set part; |
@@ -363,7 +370,6 @@ struct wl1271 { | |||
363 | 370 | ||
364 | /* Frames scheduled for transmission, not handled yet */ | 371 | /* Frames scheduled for transmission, not handled yet */ |
365 | struct sk_buff_head tx_queue; | 372 | struct sk_buff_head tx_queue; |
366 | bool tx_queue_stopped; | ||
367 | 373 | ||
368 | struct work_struct tx_work; | 374 | struct work_struct tx_work; |
369 | 375 | ||
@@ -391,7 +397,6 @@ struct wl1271 { | |||
391 | u32 mbox_ptr[2]; | 397 | u32 mbox_ptr[2]; |
392 | 398 | ||
393 | /* Are we currently scanning */ | 399 | /* Are we currently scanning */ |
394 | bool scanning; | ||
395 | struct wl1271_scan scan; | 400 | struct wl1271_scan scan; |
396 | 401 | ||
397 | /* Our association ID */ | 402 | /* Our association ID */ |
@@ -411,18 +416,9 @@ struct wl1271 { | |||
411 | unsigned int rx_config; | 416 | unsigned int rx_config; |
412 | unsigned int rx_filter; | 417 | unsigned int rx_filter; |
413 | 418 | ||
414 | /* is firmware in elp mode */ | ||
415 | bool elp; | ||
416 | |||
417 | struct completion *elp_compl; | 419 | struct completion *elp_compl; |
418 | struct delayed_work elp_work; | 420 | struct delayed_work elp_work; |
419 | 421 | ||
420 | /* we can be in psm, but not in elp, we have to differentiate */ | ||
421 | bool psm; | ||
422 | |||
423 | /* PSM mode requested */ | ||
424 | bool psm_requested; | ||
425 | |||
426 | /* retry counter for PSM entries */ | 422 | /* retry counter for PSM entries */ |
427 | u8 psm_entry_retry; | 423 | u8 psm_entry_retry; |
428 | 424 | ||
@@ -441,15 +437,10 @@ struct wl1271 { | |||
441 | 437 | ||
442 | struct ieee80211_vif *vif; | 438 | struct ieee80211_vif *vif; |
443 | 439 | ||
444 | /* Used for a workaround to send disconnect before rejoining */ | ||
445 | bool joined; | ||
446 | |||
447 | /* Current chipset configuration */ | 440 | /* Current chipset configuration */ |
448 | struct conf_drv_settings conf; | 441 | struct conf_drv_settings conf; |
449 | 442 | ||
450 | struct list_head list; | 443 | struct list_head list; |
451 | |||
452 | bool gpio_power; | ||
453 | }; | 444 | }; |
454 | 445 | ||
455 | int wl1271_plt_start(struct wl1271 *wl); | 446 | int wl1271_plt_start(struct wl1271 *wl); |