ath9k: Node cleanup
[deliverable/linux.git] / drivers / net / wireless / ath9k / rc.c
index ecffd6f45fd013cac976e6becd8e22639464dfc8..1305873b2a09ef10737e13b8086b2adbf9f96773 100644 (file)
@@ -1867,9 +1867,7 @@ static void ath_tx_status(void *priv, struct ieee80211_supported_band *sband,
        /* XXX: UGLY HACK!! */
        tx_info_priv = (struct ath_tx_info_priv *)tx_info->control.vif;
 
-       spin_lock_bh(&sc->node_lock);
-       an = ath_node_find(sc, hdr->addr1);
-       spin_unlock_bh(&sc->node_lock);
+       an = (struct ath_node *)sta->drv_priv;
 
        if (tx_info_priv == NULL)
                return;
@@ -1984,16 +1982,7 @@ static void ath_get_rate(void *priv, struct ieee80211_sta *sta, void *priv_sta,
                        qc = ieee80211_get_qos_ctl(hdr);
                        tid = qc[0] & 0xf;
 
-                       spin_lock_bh(&sc->node_lock);
-                       an = ath_node_find(sc, hdr->addr1);
-                       spin_unlock_bh(&sc->node_lock);
-
-                       if (!an) {
-                               DPRINTF(sc, ATH_DBG_AGGR,
-                                       "%s: Node not found to "
-                                       "init/chk TX aggr\n", __func__);
-                               return;
-                       }
+                       an = (struct ath_node *)sta->drv_priv;
 
                        chk = ath_tx_aggr_check(sc, an, tid);
                        if (chk == AGGR_REQUIRED) {
This page took 0.039465 seconds and 5 git commands to generate.