summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/common-spectral.c
diff options
context:
space:
mode:
authorSimon Wunderlich <sw@simonwunderlich.de>2018-10-01 17:26:46 +0300
committerKalle Valo <kvalo@codeaurora.org>2018-10-02 07:43:44 +0300
commitb796a6c04e65e35033ad4cb390500ff03ef72350 (patch)
tree4481bbc75a7abcab4a19c75d64a382fa45d8bb72 /drivers/net/wireless/ath/ath9k/common-spectral.c
parent03224678c0134bd5811b81919a4d39a8fbe03244 (diff)
downloadlinux-b796a6c04e65e35033ad4cb390500ff03ef72350.tar.xz
ath9k: return when short FFT frame was handled
With the loop break like this, there are false "FFT report truncated" messages because the iterator is not advanced as the check expects. Instead, just return, for a single frame there is nothing left to be done anyways. Cc: Nick Kossifidis <mickflemm@gmail.com> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/common-spectral.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/common-spectral.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/common-spectral.c b/drivers/net/wireless/ath/ath9k/common-spectral.c
index 0c5559009a28..f6dd0ecfbbf3 100644
--- a/drivers/net/wireless/ath/ath9k/common-spectral.c
+++ b/drivers/net/wireless/ath/ath9k/common-spectral.c
@@ -686,7 +686,7 @@ int ath_cmn_process_fft(struct ath_spec_scan_priv *spec_priv, struct ieee80211_h
* loop.
*/
if (len <= fft_len + 2)
- break;
+ return 1;
sample_start = &vdata[i + 1];