Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 342127
b: refs/heads/master
c: 8907a6f
h: refs/heads/master
i:
  342125: 2e13b81
  342123: df163ce
  342119: 3ac93d6
  342111: daff62b
v: v3
  • Loading branch information
Tim Gardner authored and Johannes Berg committed Dec 10, 2012
1 parent 6975760 commit 9755681
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: c8a8ab4472619e6936a224c5a950750d640aefbb
refs/heads/master: 8907a6fb6281a9aa25df2c7e2996cedcd6e5559f
5 changes: 3 additions & 2 deletions trunk/drivers/net/wireless/iwlwifi/dvm/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,8 +673,9 @@ static int iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif)
const u8 *ssid = NULL;
u8 ssid_len = 0;

if (WARN_ON_ONCE(priv->scan_request &&
priv->scan_request->n_channels > MAX_SCAN_CHANNEL))
if (WARN_ON(priv->scan_type == IWL_SCAN_NORMAL &&
(!priv->scan_request ||
priv->scan_request->n_channels > MAX_SCAN_CHANNEL)))
return -EINVAL;

lockdep_assert_held(&priv->mutex);
Expand Down

0 comments on commit 9755681

Please sign in to comment.