]> git.karo-electronics.de Git - linux-beck.git/commit
ath10k: refactor tx pending management
authorMichal Kazior <michal.kazior@tieto.com>
Sun, 6 Mar 2016 14:14:25 +0000 (16:14 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Sun, 6 Mar 2016 14:14:25 +0000 (16:14 +0200)
commit6421969f248fdf9d8cd38353a617ed7cc5ddab94
treea9bd97b680fb3b45df32bd7f1c2f4a127e8139c4
parenta30c7d009ed56df43f09ab9af11e0bdd3a3f2a3f
ath10k: refactor tx pending management

Tx pending counter logic assumed that the sk_buff
is already known and hence was performed in HTT
functions themselves.

However, for the sake of future wake_tx_queue()
usage the driver must be able to tell whether it
can submit more frames to firmware before it
dequeues frame from ieee80211_txq (and thus long
before HTT Tx functions are called) because once a
frame is dequeued it cannot be requeud back to
mac80211.

This prepares the driver for future changes.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/htt.h
drivers/net/wireless/ath/ath10k/htt_tx.c
drivers/net/wireless/ath/ath10k/mac.c
drivers/net/wireless/ath/ath10k/txrx.c