From 7d14bd6cbfbf26369c5958e56a468fd8429841d7 Mon Sep 17 00:00:00 2001 From: Arend van Spriel Date: Wed, 19 Oct 2011 18:42:45 +0200 Subject: [PATCH] staging: brcm80211: fix for rate index in receive status Made a patch for Nico to try whether this resolves his issue. Signed-off-by: Arend van Spriel --- drivers/staging/brcm80211/brcmsmac/main.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/staging/brcm80211/brcmsmac/main.c b/drivers/staging/brcm80211/brcmsmac/main.c index 1763c45..49c8eb9 100644 --- a/drivers/staging/brcm80211/brcmsmac/main.c +++ b/drivers/staging/brcm80211/brcmsmac/main.c @@ -4608,6 +4608,10 @@ prep_mac80211_status(struct brcms_c_info *wlc, struct d11rxhdr *rxh, wiphy_err(wlc->wiphy, "%s: Unknown rate\n", __func__); } + /* DEBUG: fix rate index in receive status */ + if (rx_status->band == IEEE80211_BAND_5GHZ) + rx_status->rate_idx -= 4; + /* Determine short preamble and rate_idx */ preamble = 0; if (IS_CCK(rspec)) { -- 1.7.4.1