Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 225482
b: refs/heads/master
c: 6dab55b
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and John W. Linville committed Dec 22, 2010
1 parent 14803a6 commit a77a9d5
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 8d6a686a0d20d39c202fdfc6fa7f1daf1d6e3b35
refs/heads/master: 6dab55bf7eb52ca21d5e6c97b97f70875fe41ddc
11 changes: 7 additions & 4 deletions trunk/drivers/net/wireless/ath/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1456,6 +1456,7 @@ static int ath9k_change_interface(struct ieee80211_hw *hw,
struct ath_wiphy *aphy = hw->priv;
struct ath_softc *sc = aphy->sc;
struct ath_common *common = ath9k_hw_common(sc->sc_ah);
int ret = 0;

ath_dbg(common, ATH_DBG_CONFIG, "Change Interface\n");
mutex_lock(&sc->mutex);
Expand All @@ -1465,7 +1466,8 @@ static int ath9k_change_interface(struct ieee80211_hw *hw,
case NL80211_IFTYPE_ADHOC:
if (sc->nbcnvifs >= ATH_BCBUF) {
ath_err(common, "No beacon slot available\n");
return -ENOBUFS;
ret = -ENOBUFS;
goto out;
}
break;
case NL80211_IFTYPE_STATION:
Expand All @@ -1479,14 +1481,15 @@ static int ath9k_change_interface(struct ieee80211_hw *hw,
default:
ath_err(common, "Interface type %d not yet supported\n",
vif->type);
mutex_unlock(&sc->mutex);
return -ENOTSUPP;
ret = -ENOTSUPP;
goto out;
}
vif->type = new_type;
vif->p2p = p2p;

out:
mutex_unlock(&sc->mutex);
return 0;
return ret;
}

static void ath9k_remove_interface(struct ieee80211_hw *hw,
Expand Down

0 comments on commit a77a9d5

Please sign in to comment.