wl1271: Fix warning about unsupported RX rate
authorTeemu Paasikivi <ext-teemu.3.paasikivi@nokia.com>
Thu, 14 Oct 2010 09:00:04 +0000 (11:00 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Nov 2010 18:25:13 +0000 (13:25 -0500)
commit6a2de93b2553c2e9a72997370534993c85c1eee6
treeb85bc95b457754514cd59454056ba3b8737c45b0
parent18357850b694ba3fa29363c7d86ccd8783f4a065
wl1271: Fix warning about unsupported RX rate

While scanning, it is possible that beacon and probe response frames are
received on other band than configured to the driver. In rx status
handling this has caused "Unsupported RX rate from HW" warnings. This
patch changes the wl1271_rate_to_index function to take the band of the
received frame as a parameter instead of using value configuret to
wl->band.

Signed-off-by: Teemu Paasikivi <ext-teemu.3.paasikivi@nokia.com>
Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
drivers/net/wireless/wl12xx/wl1271_main.c
drivers/net/wireless/wl12xx/wl1271_rx.c
drivers/net/wireless/wl12xx/wl1271_rx.h
drivers/net/wireless/wl12xx/wl1271_tx.c
drivers/net/wireless/wl12xx/wl1271_tx.h