]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: don't report unset rssi values to mac80211
authorAlagu Sankar <alagusankar@silex-india.com>
Mon, 25 Feb 2019 09:46:03 +0000 (11:46 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 26 Feb 2019 13:02:18 +0000 (15:02 +0200)
commit4687acdbf3e1de217469bc25c8060beca61967b7
tree0cc5dd7554dcc72df419f3d99a76ab74394696f9
parent33b319f049ed33c9b0af5415b9d6ed58daacf775
ath10k: don't report unset rssi values to mac80211

The SDIO firmware does not provide RSSI value to the host, it's only set to
zero. In that case don't report the value to mac80211. One risk here is that
value zero might be a valid value with other firmware, currently there's no way
to detect that.

Without the fix, the rssi value indicated by iw changes between the actual
value and -95.

Tested with QCA6174 SDIO with firmware WLAN.RMH.4.4.1-00005-QCARMSWP-1.

Co-developed-by: Wen Gong <wgong@codeaurora.org>
Signed-off-by: Alagu Sankar <alagusankar@silex-india.com>
Signed-off-by: Wen Gong <wgong@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/htt_rx.c