Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 246796
b: refs/heads/master
c: 15b91e8
h: refs/heads/master
v: v3
  • Loading branch information
Vivek Natarajan authored and John W. Linville committed Apr 12, 2011
1 parent 953f620 commit 927c2fc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e8306f989483e4b97a8b37dd268de6c8c6f35e75
refs/heads/master: 15b91e830dbf300d653b3fe70f6ef71b568164a3
16 changes: 16 additions & 0 deletions trunk/drivers/net/wireless/ath/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2201,6 +2201,21 @@ static void ath9k_flush(struct ieee80211_hw *hw, bool drop)
ath9k_ps_restore(sc);
}

static bool ath9k_tx_frames_pending(struct ieee80211_hw *hw)
{
struct ath_softc *sc = hw->priv;
int i;

for (i = 0; i < ATH9K_NUM_TX_QUEUES; i++) {
if (!ATH_TXQ_SETUP(sc, i))
continue;

if (ath9k_has_pending_frames(sc, &sc->tx.txq[i]))
return true;
}
return false;
}

struct ieee80211_ops ath9k_ops = {
.tx = ath9k_tx,
.start = ath9k_start,
Expand All @@ -2223,4 +2238,5 @@ struct ieee80211_ops ath9k_ops = {
.rfkill_poll = ath9k_rfkill_poll_state,
.set_coverage_class = ath9k_set_coverage_class,
.flush = ath9k_flush,
.tx_frames_pending = ath9k_tx_frames_pending,
};

0 comments on commit 927c2fc

Please sign in to comment.