Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314757
b: refs/heads/master
c: 601968b
h: refs/heads/master
i:
  314755: a092aea
v: v3
  • Loading branch information
Johannes Berg committed Jun 18, 2012
1 parent 75fcc5b commit c758d7c
Show file tree
Hide file tree
Showing 2 changed files with 13 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: dada03ca73b699337781ae36e1ce4c8fec2da40a
refs/heads/master: 601968b3bb1176b4cee47faba2d7a104422de8e6
14 changes: 12 additions & 2 deletions trunk/drivers/net/wireless/iwlwifi/dvm/mac80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -1036,8 +1036,18 @@ static int iwlagn_mac_remain_on_channel(struct ieee80211_hw *hw,
mutex_lock(&priv->mutex);

if (test_bit(STATUS_SCAN_HW, &priv->status)) {
err = -EBUSY;
goto out;
/* mac80211 should not scan while ROC or ROC while scanning */
if (WARN_ON_ONCE(priv->scan_type != IWL_SCAN_RADIO_RESET)) {
err = -EBUSY;
goto out;
}

iwl_scan_cancel_timeout(priv, 100);

if (test_bit(STATUS_SCAN_HW, &priv->status)) {
err = -EBUSY;
goto out;
}
}

priv->hw_roc_channel = channel;
Expand Down

0 comments on commit c758d7c

Please sign in to comment.