Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135094
b: refs/heads/master
c: 2554935
h: refs/heads/master
v: v3
  • Loading branch information
Sujith authored and John W. Linville committed Mar 5, 2009
1 parent 4aa0007 commit 81f5b8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: b238e90e99fe51aed14d20eae8a6a1c04ce4ca30
refs/heads/master: 2554935b08f87e0ce1852635720d2d3ac91fc512
8 changes: 7 additions & 1 deletion trunk/drivers/net/wireless/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2318,6 +2318,8 @@ static int ath9k_config_interface(struct ieee80211_hw *hw,
u32 rfilt = 0;
int error, i;

mutex_lock(&sc->mutex);

/* TODO: Need to decide which hw opmode to use for multi-interface
* cases */
if (vif->type == NL80211_IFTYPE_AP &&
Expand Down Expand Up @@ -2373,8 +2375,10 @@ static int ath9k_config_interface(struct ieee80211_hw *hw,
ath9k_hw_stoptxdma(sc->sc_ah, sc->beacon.beaconq);

error = ath_beacon_alloc(sc, 0);
if (error != 0)
if (error != 0) {
mutex_unlock(&sc->mutex);
return error;
}

ath_beacon_config(sc, 0);
}
Expand All @@ -2393,6 +2397,8 @@ static int ath9k_config_interface(struct ieee80211_hw *hw,
if (vif->type == NL80211_IFTYPE_ADHOC)
ath_update_chainmask(sc, 0);

mutex_unlock(&sc->mutex);

return 0;
}

Expand Down

0 comments on commit 81f5b8e

Please sign in to comment.