summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/wl12xx/wl1271_rx.h
diff options
context:
space:
mode:
authorTeemu Paasikivi <ext-teemu.3.paasikivi@nokia.com>2010-10-14 09:00:04 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2010-11-15 18:25:13 (GMT)
commit6a2de93b2553c2e9a72997370534993c85c1eee6 (patch)
treeb85bc95b457754514cd59454056ba3b8737c45b0 /drivers/net/wireless/wl12xx/wl1271_rx.h
parent18357850b694ba3fa29363c7d86ccd8783f4a065 (diff)
downloadlinux-fsl-qoriq-6a2de93b2553c2e9a72997370534993c85c1eee6.tar.xz
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>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_rx.h')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_rx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_rx.h b/drivers/net/wireless/wl12xx/wl1271_rx.h
index 13a2323..6d41981 100644
--- a/drivers/net/wireless/wl12xx/wl1271_rx.h
+++ b/drivers/net/wireless/wl12xx/wl1271_rx.h
@@ -116,6 +116,6 @@ struct wl1271_rx_descriptor {
} __packed;
void wl1271_rx(struct wl1271 *wl, struct wl1271_fw_status *status);
-u8 wl1271_rate_to_idx(struct wl1271 *wl, int rate);
+u8 wl1271_rate_to_idx(int rate, enum ieee80211_band band);
#endif