]> asedeno.scripts.mit.edu Git - linux.git/commit
ath10k: replace hardcoded constant with define
authorErik Stromdahl <erik.stromdahl@gmail.com>
Mon, 18 Jun 2018 14:01:29 +0000 (17:01 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 28 Jun 2018 09:56:17 +0000 (12:56 +0300)
commite4568eac0464ae6d5b361b186b1ee6eb7bf0bdbb
treef76d84304b04348f7af8ee6c782c13499bad12e9
parentab687de9535c5178c1d9141664205c84493225c8
ath10k: replace hardcoded constant with define

The hardcoded values used in ath10k_mac_tx_push_pending and
ath10k_mac_op_wake_tx_queue set an upper limit of how many packets that
can be consumed from the TX queue.

HTC_HOST_MAX_MSG_PER_TX_BUNDLE is a proper name for this constant, as
the value effectively limits the number of messages that can be consumed
in one step. Thus, the value is an upper limit of the number of messages
that can be added to a TX message bundle.

Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/htc.h
drivers/net/wireless/ath/ath10k/mac.c