]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
brcmfmac: fix get rssi by clearing getvar struct.
authorHante Meuleman <meuleman@broadcom.com>
Thu, 30 Aug 2012 08:05:37 +0000 (10:05 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 5 Sep 2012 18:53:34 +0000 (14:53 -0400)
commit7f6c562dfa52425a28933982df7d21edba7e3d71
tree636d81353d773efe415f7ce550ceca61cd6f0d3b
parent2e875acd399fcc6e301063e5ead371ad089d5920
brcmfmac: fix get rssi by clearing getvar struct.

The function brcmf_cfg80211_get_station requests the RSSI from
the device. The complete structure used needs to be cleared
before sending the request to firmware. Otherwise the request
fails filling the logs with "Could not get rssi (-2)" messages.

Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c