ath9k: Skip FFT reports if we are out of output buffers
authorNick Kossifidis <mickflemm@gmail.com>
Wed, 29 Apr 2015 23:51:19 +0000 (23:51 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 9 May 2015 13:46:16 +0000 (16:46 +0300)
commit6b8f85a9188321e59995d172efab9e97afd3906f
treeec659cf54345ddb54be064f280c6626bd95e2d30
parent9acc98b9ecf9d12bfc6e3f914f3fc446d49b8641
ath9k: Skip FFT reports if we are out of output buffers

There is no reason to keep processing FFT reports if there is no
space left on the relayfs buffers for the results. This saves
lots of CPU cycles, especially on normal (non-short) reports.

Signed-off-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath9k/common-spectral.c