iwlwifi: fix warning from ieee80211_stop_tx_ba_cb_irqsafe argument change
authorJohn W. Linville <linville@tuxdriver.com>
Mon, 7 Dec 2009 21:37:42 +0000 (16:37 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 7 Dec 2009 21:40:05 +0000 (16:40 -0500)
CC [M]  drivers/net/wireless/iwlwifi/iwl-tx.o
drivers/net/wireless/iwlwifi/iwl-tx.c: In function ‘iwl_tx_agg_stop’:
drivers/net/wireless/iwlwifi/iwl-tx.c:1356: warning: passing argument 1 of ‘ieee80211_stop_tx_ba_cb_irqsafe’ from incompatible pointer type
include/net/mac80211.h:2128: note: expected ‘struct ieee80211_vif *’ but argument is of type ‘struct ieee80211_hw *’

Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-tx.c

index 58b132f9cf2821c0c03015f104147d8a5768b311..00da5e152d46330de2bc701f6969434c8853f092 100644 (file)
@@ -1353,7 +1353,7 @@ int iwl_tx_agg_stop(struct iwl_priv *priv , const u8 *ra, u16 tid)
        if (priv->stations[sta_id].tid[tid].agg.state ==
                                IWL_EMPTYING_HW_QUEUE_ADDBA) {
                IWL_DEBUG_HT(priv, "AGG stop before setup done\n");
-               ieee80211_stop_tx_ba_cb_irqsafe(priv->hw, ra, tid);
+               ieee80211_stop_tx_ba_cb_irqsafe(priv->vif, ra, tid);
                priv->stations[sta_id].tid[tid].agg.state = IWL_AGG_OFF;
                return 0;
        }