diff options
author | Eliad Peller <eliad@wizery.com> | 2011-12-18 13:25:41 -0500 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-12-20 15:30:14 -0500 |
commit | a0c7b7825e026c7acf63fd92a5182efd3aff637f (patch) | |
tree | 84e316833522bc0c644129c2abcd23ca7d81ab2f /drivers/net/wireless/wl12xx/scan.c | |
parent | 5b37ddfec23c17e16b99d8b5c5d1815b312af060 (diff) |
wl12xx: make WL1271_FLAG_IDLE flag per-vif
This flag should be set per-vif, rather than globally.
Rename the flag to indicate IN_USE (rather than IDLE), as
in the default configuration (i.e. flag is clear) the vif
should be idle.
Change all the bit operations (and elp conditions) appropriately.
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/scan.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/scan.c b/drivers/net/wireless/wl12xx/scan.c index 8599dab1fe2a..108765ab7755 100644 --- a/drivers/net/wireless/wl12xx/scan.c +++ b/drivers/net/wireless/wl12xx/scan.c | |||
@@ -703,7 +703,7 @@ int wl1271_scan_sched_scan_start(struct wl1271 *wl, struct wl12xx_vif *wlvif) | |||
703 | if (wlvif->bss_type != BSS_TYPE_STA_BSS) | 703 | if (wlvif->bss_type != BSS_TYPE_STA_BSS) |
704 | return -EOPNOTSUPP; | 704 | return -EOPNOTSUPP; |
705 | 705 | ||
706 | if (!test_bit(WL1271_FLAG_IDLE, &wl->flags)) | 706 | if (test_bit(WLVIF_FLAG_IN_USE, &wlvif->flags)) |
707 | return -EBUSY; | 707 | return -EBUSY; |
708 | 708 | ||
709 | start = kzalloc(sizeof(*start), GFP_KERNEL); | 709 | start = kzalloc(sizeof(*start), GFP_KERNEL); |