brcmfmac: add fallback for devices that do not report per-chain values
authorJaap Jan Meijer <jjmeijer88@gmail.com>
Thu, 12 May 2016 16:25:08 +0000 (18:25 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 27 May 2016 17:52:29 +0000 (20:52 +0300)
commit94abd778a7bb00ed5d00f56d9fbfcbf5b7c02a5c
treef49503a39f29ee80dc798abea2dc7cd1af73e587
parentb7e7ad611e24b95b0db2998428ce78370415c086
brcmfmac: add fallback for devices that do not report per-chain values

If brcmf_cfg80211_get_station fails to determine the RSSI from the
per-chain values get the value individually as a fallback.

Fixes: 1f0dc59a6de9 ("brcmfmac: rework .get_station() callback")
Signed-off-by: Jaap Jan Meijer <jjmeijer88@gmail.com>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c