diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-03-30 05:58:48 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:54:35 -0400 |
commit | 87792efc7d20a21844eb7f4247e7b9027e783ec0 (patch) | |
tree | 0a9c4addc65f7488288c2014d1fc8df714789f38 /drivers/net/wireless/ath9k | |
parent | 1ffb0610be915650cff44c69dc6728215eae08c0 (diff) |
ath9k: Trivial fix to handle AMPDU params properly
Handle aggregation params only when aggregation is
supported.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k')
-rw-r--r-- | drivers/net/wireless/ath9k/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c index 0917def0e081..99a6852871e2 100644 --- a/drivers/net/wireless/ath9k/main.c +++ b/drivers/net/wireless/ath9k/main.c | |||
@@ -434,12 +434,12 @@ static void ath_node_attach(struct ath_softc *sc, struct ieee80211_sta *sta) | |||
434 | 434 | ||
435 | an = (struct ath_node *)sta->drv_priv; | 435 | an = (struct ath_node *)sta->drv_priv; |
436 | 436 | ||
437 | if (sc->sc_flags & SC_OP_TXAGGR) | 437 | if (sc->sc_flags & SC_OP_TXAGGR) { |
438 | ath_tx_node_init(sc, an); | 438 | ath_tx_node_init(sc, an); |
439 | 439 | an->maxampdu = 1 << (IEEE80211_HTCAP_MAXRXAMPDU_FACTOR + | |
440 | an->maxampdu = 1 << (IEEE80211_HTCAP_MAXRXAMPDU_FACTOR + | 440 | sta->ht_cap.ampdu_factor); |
441 | sta->ht_cap.ampdu_factor); | 441 | an->mpdudensity = parse_mpdudensity(sta->ht_cap.ampdu_density); |
442 | an->mpdudensity = parse_mpdudensity(sta->ht_cap.ampdu_density); | 442 | } |
443 | } | 443 | } |
444 | 444 | ||
445 | static void ath_node_detach(struct ath_softc *sc, struct ieee80211_sta *sta) | 445 | static void ath_node_detach(struct ath_softc *sc, struct ieee80211_sta *sta) |