Skip to content

Commit

Permalink
wl12xx: consider bss_conf->idle instead of hw->conf.flags
Browse files Browse the repository at this point in the history
On disassociation, check only whether the current vif
is idle, instead of checking whether the device is idle.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
  • Loading branch information
Eliad Peller authored and Luciano Coelho committed Mar 5, 2012
1 parent 349345a commit 8a6a84a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wireless/wl12xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3901,7 +3901,6 @@ static void wl1271_bss_info_changed_sta(struct wl1271 *wl,

/* restore the bssid filter and go to dummy bssid */
if (was_assoc) {
u32 conf_flags = wl->hw->conf.flags;
/*
* we might have to disable roc, if there was
* no IF_OPER_UP notification.
Expand All @@ -3924,7 +3923,7 @@ static void wl1271_bss_info_changed_sta(struct wl1271 *wl,
}

wl1271_unjoin(wl, wlvif);
if (!(conf_flags & IEEE80211_CONF_IDLE))
if (!bss_conf->idle)
wl12xx_start_dev(wl, wlvif);
}
}
Expand Down

0 comments on commit 8a6a84a

Please sign in to comment.