Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291287
b: refs/heads/master
c: 97fd311
h: refs/heads/master
i:
  291285: 25062d2
  291283: efde036
  291279: 4ccacb4
v: v3
  • Loading branch information
Eliad Peller authored and Luciano Coelho committed Mar 5, 2012
1 parent 6ede06f commit 3b3f976
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 121af04995d29e3287b849a768789c668d39dce3
refs/heads/master: 97fd311a2615d8f35e796b11a14b6cf3d335d423
6 changes: 2 additions & 4 deletions trunk/drivers/net/wireless/wl12xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3057,8 +3057,6 @@ static int wl1271_op_hw_scan(struct ieee80211_hw *hw,
struct cfg80211_scan_request *req)
{
struct wl1271 *wl = hw->priv;
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);

int ret;
u8 *ssid = NULL;
size_t len = 0;
Expand Down Expand Up @@ -3086,8 +3084,8 @@ static int wl1271_op_hw_scan(struct ieee80211_hw *hw,
if (ret < 0)
goto out;

if (test_bit(WLVIF_FLAG_STA_ASSOCIATED, &wlvif->flags) &&
test_bit(wlvif->role_id, wl->roc_map)) {
/* fail if there is any role in ROC */
if (find_first_bit(wl->roc_map, WL12XX_MAX_ROLES) < WL12XX_MAX_ROLES) {
/* don't allow scanning right now */
ret = -EBUSY;
goto out_sleep;
Expand Down

0 comments on commit 3b3f976

Please sign in to comment.