Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ath9k: Return early for invalid rates

Process and update the internal RSSI average, which
is used by ANI, after verifying that the received
frame has valid rate information.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Sujith Manoharan and committed by
John W. Linville
74a97755 bda96e8c

+2 -2
+2 -2
drivers/net/wireless/ath/ath9k/recv.c
··· 955 955 if (rx_stats->rs_more) 956 956 return 0; 957 957 958 - ath9k_process_rssi(common, hw, hdr, rx_stats); 959 - 960 958 if (ath9k_process_rate(common, hw, rx_stats, rx_status)) 961 959 return -EINVAL; 960 + 961 + ath9k_process_rssi(common, hw, hdr, rx_stats); 962 962 963 963 rx_status->band = hw->conf.chandef.chan->band; 964 964 rx_status->freq = hw->conf.chandef.chan->center_freq;