mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 07:48:58 +02:00
ath9k: fix a warning during a failed aggregation start
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23100 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
92a1aaeba2
commit
12afbfc557
@ -41,12 +41,15 @@
|
|||||||
void ath9k_enable_ps(struct ath_softc *sc);
|
void ath9k_enable_ps(struct ath_softc *sc);
|
||||||
--- a/drivers/net/wireless/ath/ath9k/main.c
|
--- a/drivers/net/wireless/ath/ath9k/main.c
|
||||||
+++ b/drivers/net/wireless/ath/ath9k/main.c
|
+++ b/drivers/net/wireless/ath/ath9k/main.c
|
||||||
@@ -1968,7 +1968,7 @@ static int ath9k_ampdu_action(struct iee
|
@@ -1968,8 +1968,9 @@ static int ath9k_ampdu_action(struct iee
|
||||||
break;
|
break;
|
||||||
case IEEE80211_AMPDU_TX_START:
|
case IEEE80211_AMPDU_TX_START:
|
||||||
ath9k_ps_wakeup(sc);
|
ath9k_ps_wakeup(sc);
|
||||||
- ath_tx_aggr_start(sc, sta, tid, ssn);
|
- ath_tx_aggr_start(sc, sta, tid, ssn);
|
||||||
|
- ieee80211_start_tx_ba_cb_irqsafe(vif, sta->addr, tid);
|
||||||
+ ret = ath_tx_aggr_start(sc, sta, tid, ssn);
|
+ ret = ath_tx_aggr_start(sc, sta, tid, ssn);
|
||||||
ieee80211_start_tx_ba_cb_irqsafe(vif, sta->addr, tid);
|
+ if (!ret)
|
||||||
|
+ ieee80211_start_tx_ba_cb_irqsafe(vif, sta->addr, tid);
|
||||||
ath9k_ps_restore(sc);
|
ath9k_ps_restore(sc);
|
||||||
break;
|
break;
|
||||||
|
case IEEE80211_AMPDU_TX_STOP:
|
||||||
|
Loading…
Reference in New Issue
Block a user