Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243703
b: refs/heads/master
c: ffd8c74
h: refs/heads/master
i:
  243701: dc2d1f5
  243699: b2df20a
  243695: f368a0e
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Mar 29, 2011
1 parent f9b6e1b commit 44238c8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 24047e2c4feb8c126e92cc5bb7a863115c89bd72
refs/heads/master: ffd8c746fbef50cf12df239f9d23c2afe1a2c3cb
10 changes: 10 additions & 0 deletions trunk/drivers/net/wireless/iwlegacy/iwl-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1805,6 +1805,15 @@ iwl_legacy_mac_change_interface(struct ieee80211_hw *hw,

mutex_lock(&priv->mutex);

if (!ctx->vif || !iwl_legacy_is_ready_rf(priv)) {
/*
* Huh? But wait ... this can maybe happen when
* we're in the middle of a firmware restart!
*/
err = -EBUSY;
goto out;
}

interface_modes = ctx->interface_modes | ctx->exclusive_interface_modes;

if (!(interface_modes & BIT(newtype))) {
Expand Down Expand Up @@ -1832,6 +1841,7 @@ iwl_legacy_mac_change_interface(struct ieee80211_hw *hw,
/* success */
iwl_legacy_teardown_interface(priv, vif, true);
vif->type = newtype;
vif->p2p = newp2p;
err = iwl_legacy_setup_interface(priv, ctx);
WARN_ON(err);
/*
Expand Down

0 comments on commit 44238c8

Please sign in to comment.