]> git.baikalelectronics.ru Git - kernel.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)
commit8bc9620dd740b40b0710671c4e33b85ff86011b9
treea9bd97b680fb3b45df32bd7f1c2f4a127e8139c4
parentb423a87b7dc0da5a20a5744f9f8ae49629a99142
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