Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349647
b: refs/heads/master
c: 8a7d7cb
h: refs/heads/master
i:
  349645: 02e6b10
  349643: 9351420
  349639: 12f79b7
  349631: 1dc92fb
v: v3
  • Loading branch information
Bing Zhao authored and John W. Linville committed Jan 30, 2013
1 parent 427e872 commit 8cdae19
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 0a06ad8e3a1cb5311b7dbafde45410aa1bce9d40
refs/heads/master: 8a7d7cbf7b5ff9912ef50b3e94c9ad9f37b1c75f
9 changes: 5 additions & 4 deletions trunk/drivers/net/wireless/mwifiex/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1563,7 +1563,7 @@ int mwifiex_ret_802_11_scan(struct mwifiex_private *priv,
dev_err(adapter->dev, "SCAN_RESP: too many AP returned (%d)\n",
scan_rsp->number_of_sets);
ret = -1;
goto done;
goto check_next_scan;
}

bytes_left = le16_to_cpu(scan_rsp->bss_descript_size);
Expand Down Expand Up @@ -1634,7 +1634,8 @@ int mwifiex_ret_802_11_scan(struct mwifiex_private *priv,
if (!beacon_size || beacon_size > bytes_left) {
bss_info += bytes_left;
bytes_left = 0;
return -1;
ret = -1;
goto check_next_scan;
}

/* Initialize the current working beacon pointer for this BSS
Expand Down Expand Up @@ -1690,7 +1691,7 @@ int mwifiex_ret_802_11_scan(struct mwifiex_private *priv,
dev_err(priv->adapter->dev,
"%s: bytes left < IE length\n",
__func__);
goto done;
goto check_next_scan;
}
if (element_id == WLAN_EID_DS_PARAMS) {
channel = *(current_ptr + sizeof(struct ieee_types_header));
Expand Down Expand Up @@ -1753,6 +1754,7 @@ int mwifiex_ret_802_11_scan(struct mwifiex_private *priv,
}
}

check_next_scan:
spin_lock_irqsave(&adapter->scan_pending_q_lock, flags);
if (list_empty(&adapter->scan_pending_q)) {
spin_unlock_irqrestore(&adapter->scan_pending_q_lock, flags);
Expand Down Expand Up @@ -1813,7 +1815,6 @@ int mwifiex_ret_802_11_scan(struct mwifiex_private *priv,
}
}

done:
return ret;
}

Expand Down

0 comments on commit 8cdae19

Please sign in to comment.