|
@@ -320,28 +320,25 @@ static void ath_node_attach(struct ath_softc *sc, struct ieee80211_sta *sta,
|
|
|
struct ieee80211_vif *vif)
|
|
|
{
|
|
|
struct ath_node *an;
|
|
|
- u8 density;
|
|
|
an = (struct ath_node *)sta->drv_priv;
|
|
|
|
|
|
an->sc = sc;
|
|
|
an->sta = sta;
|
|
|
an->vif = vif;
|
|
|
|
|
|
- if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_HT) {
|
|
|
- ath_tx_node_init(sc, an);
|
|
|
+ ath_tx_node_init(sc, an);
|
|
|
+
|
|
|
+ if (sta->ht_cap.ht_supported) {
|
|
|
an->maxampdu = 1 << (IEEE80211_HT_MAX_AMPDU_FACTOR +
|
|
|
sta->ht_cap.ampdu_factor);
|
|
|
- density = ath9k_parse_mpdudensity(sta->ht_cap.ampdu_density);
|
|
|
- an->mpdudensity = density;
|
|
|
+ an->mpdudensity = ath9k_parse_mpdudensity(sta->ht_cap.ampdu_density);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
static void ath_node_detach(struct ath_softc *sc, struct ieee80211_sta *sta)
|
|
|
{
|
|
|
struct ath_node *an = (struct ath_node *)sta->drv_priv;
|
|
|
-
|
|
|
- if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_HT)
|
|
|
- ath_tx_node_cleanup(sc, an);
|
|
|
+ ath_tx_node_cleanup(sc, an);
|
|
|
}
|
|
|
|
|
|
void ath9k_tasklet(unsigned long data)
|