Skip to content

Commit

Permalink
ath9k: return when short FFT frame was handled
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Simon Wunderlich <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
  • Loading branch information
simonwunderlich authored and Kalle Valo committed Oct 2, 2018
1 parent 0322467 commit b796a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath9k/common-spectral.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit b796a6c

Please sign in to comment.