aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wlcore/rx.c
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2011-12-08 00:43:48 +0200
committerLuciano Coelho <coelho@ti.com>2012-04-12 08:43:59 +0300
commit43a8bc5a53c78b69b99824c9f38c333cea024c8a (patch)
tree136b17f7af87af568576bcbd186867b5787f676b /drivers/net/wireless/ti/wlcore/rx.c
parentwlcore/wl12xx: add hw op for setting frame length in tx_hw_desc (diff)
downloadlinux-dev-43a8bc5a53c78b69b99824c9f38c333cea024c8a.tar.xz
linux-dev-43a8bc5a53c78b69b99824c9f38c333cea024c8a.zip
wlcore/wl12xx: add global elements to convert hw-rates to standard rates
Rates reported by HW can be different between chip families. Make the rate-to-idx translation tables private per family and use them in a common translation function. Add a global element to help determine which rates are HW HT-rates. Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/rx.c')
-rw-r--r--drivers/net/wireless/ti/wlcore/rx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ti/wlcore/rx.c b/drivers/net/wireless/ti/wlcore/rx.c
index 71c8d7095059..db761af4b3c1 100644
--- a/drivers/net/wireless/ti/wlcore/rx.c
+++ b/drivers/net/wireless/ti/wlcore/rx.c
@@ -71,10 +71,10 @@ static void wl1271_rx_status(struct wl1271 *wl,
else
status->band = IEEE80211_BAND_5GHZ;
- status->rate_idx = wl1271_rate_to_idx(desc->rate, status->band);
+ status->rate_idx = wlcore_rate_to_idx(wl, desc->rate, status->band);
/* 11n support */
- if (desc->rate <= CONF_HW_RXTX_RATE_MCS0)
+ if (desc->rate <= wl->hw_min_ht_rate)
status->flag |= RX_FLAG_HT;
status->signal = desc->rssi;