staging: brcm80211: fix for rate index in receive status
PATCH 1/1 staging: brcm80211: fix for rate index in receive status
This fix resolves an issue on 5GHz as posted on LKML:
BUG: All network processes hang (brcmsmac/wpa_supplicant)
ID: <[email protected]>
---
Hi Greg,
This change is in the mainline brcmsmac driver, but I do not have a commit message to refer to as we transitioned from staging to mainline in the last merge window. Can you process this patch without that info?
Gr. AvS
--- drivers/staging/brcm80211/brcmsmac/mac80211_if.h | 6 ++++++ drivers/staging/brcm80211/brcmsmac/main.c | 8 ++++++++ 2 files changed, 14 insertions(+), 0 deletions(-)
drivers/staging/brcm80211/brcmsmac/mac80211_if.h +6 -0
@@ -20,6 +20,12 @@#include <linux/timer.h> #include <linux/interrupt.h> +/* +* Starting index for 5G rates in the +* legacy rate table. +*/ +#define BRCMS_LEGACY_5G_RATE_OFFSET 4 +/* softmac ioctl definitions */ #define BRCMS_SET_SHORTSLOT_OVERRIDE 146
drivers/staging/brcm80211/brcmsmac/main.c +8 -0
@@ -4608,6 +4608,14 @@ prep_mac80211_status(struct brcms_c_info *wlc, struct d11rxhdr *rxh,wiphy_err (wlc->wiphy,"%s: Unknown rate\n" , __func__); } +/* +* For 5GHz, we should decrease the index as it is +* a subset of the 2.4G rates. See bitrates field +* of brcms_band_5GHz_nphy (in mac80211_if.c). +*/ +if (rx_status->band ==IEEE80211_BAND_5GHZ ) + rx_status->rate_idx -=BRCMS_LEGACY_5G_RATE_OFFSET ; +/* Determine short preamble and rate_idx */ preamble =0 ;if (IS_CCK (rspec)) {
Signature · 1 line
1.7.5.4
Quoted 4 lines · Arend van Spriel
This fix resolves an issue on 5GHz as posted on LKML:
BUG: All network processes hang (brcmsmac/wpa_supplicant)ID: <[email protected]>
What are these tags for? I've not seen them in kernel patches before.
Quoted 1 line
Wrong address, please use [email protected] now.
Quoted 8 lines
Reported-by Nico Schottelius <[email protected]>Signed-off-by Arend van Spriel <[email protected]>---
Hi Greg,This change is in the mainline brcmsmac driver, but I do not have a commit message to refer to as we transitioned from staging to mainline in the last merge window. Can you process this patch without that info?
No, I need the git commit id of the patch that fixed this in Linus's tree, if the files are different due to the move, that's fine, but I still need this to reference.
greg k-h
Arend van Spriel
Reviewed-by Roland Vossen Reviewed-by Pieter-Paul Giesberts Reviewed-by Henry PtasinskiQuoted 8 lines · Greg KH
Quoted 4 lines · Arend van Spriel
This fix resolves an issue on 5GHz as posted on LKML:
BUG: All network processes hang (brcmsmac/wpa_supplicant)ID: <[email protected]>
What are these tags for? I've not seen them in kernel patches before.
The first line was the email Subject as posted on LKML. The second is the message id.
Quoted 4 lines
Quoted 1 line
Wrong address, please use [email protected] now.
Noted.
Quoted 5 lines
Quoted 5 lines
Reported-by Nico Schottelius <[email protected]>Signed-off-by Arend van Spriel <[email protected]>---
Hi Greg,
Quoted 8 lines
Quoted 3 lines
This change is in the mainline brcmsmac driver, but I do not have a commit message to refer to as we transitioned from staging to mainline in the last merge window. Can you process this patch without that info?
No, I need the git commit id of the patch that fixed this in Linus's tree, if the files are different due to the move, that's fine, but I still need this to reference.
Here it is:
commit 5a84d6ad4c9306afb467a600a4c6d7b50da49440
Author: Arend van Spriel <[email protected]> Date: Tue Aug 23 14:14:00 2011 +0200
staging: brcm80211: fill in proper rx rate in mac80211 rx status
The brcmsmac driver supports different rates on 5GHz but this is not taken into account when providing the rate index in the receive status information passed to mac80211.
Gr. AvS
Quoted 4 lines · Arend van Spriel
Quoted 3 lines · Greg KH
Quoted 2 lines · Arend van Spriel
This fix resolves an issue on 5GHz as posted on LKML:
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
BUG: All network processes hang (brcmsmac/wpa_supplicant)ID: <[email protected]>
What are these tags for? I've not seen them in kernel patches before.
The first line was the email Subject as posted on LKML. The second is the message id.
Neither of those are something we normally put in changelog comments, right?
Quoted 33 lines
Quoted 4 lines
Quoted 1 line
Wrong address, please use [email protected] now.
Noted.
Quoted 5 lines
Quoted 5 lines
Reported-by Nico Schottelius <[email protected]>Signed-off-by Arend van Spriel <[email protected]>---
Hi Greg,Quoted 8 lines
Quoted 3 lines
This change is in the mainline brcmsmac driver, but I do not have a commit message to refer to as we transitioned from staging to mainline in the last merge window. Can you process this patch without that info?
No, I need the git commit id of the patch that fixed this in Linus's tree, if the files are different due to the move, that's fine, but I still need this to reference.
Here it is:
commit
5a84d6ad4c9306afb467a600a4c6d7b50da49440Author: Arend van Spriel <[email protected]> Date: Tue Aug 23 14:14:00 2011 +0200staging: brcm80211: fill in proper rx rate in mac80211 rx status
The brcmsmac driver supports different rates on 5GHz but this is not taken into account when providing the rate index in the receive status information passed to mac80211.
Quoted 5 lines
Reviewed-by Roland Vossen <[email protected]>Reviewed-by Pieter-Paul Giesberts <[email protected]>Reviewed-by Henry Ptasinski <[email protected]>Signed-off-by Arend van Spriel <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Thanks, that's what I need. I'll queue this up for the next 3.1 kernel after this one gets out later this week.
greg k-h
Quoted 21 lines · Greg KH
Quoted 14 lines · Arend van Spriel
On 11/10/2011 04:17 PM, Greg KH wrote:
Here it is:
commit
5a84d6ad4c9306afb467a600a4c6d7b50da49440Author: Arend van Spriel <[email protected]> Date: Tue Aug 23 14:14:00 2011 +0200staging: brcm80211: fill in proper rx rate in mac80211 rx status
The brcmsmac driver supports different rates on 5GHz but this is not taken into account when providing the rate index in the receive status information passed to mac80211.
Quoted 5 lines
Reviewed-by Roland Vossen <[email protected]>Reviewed-by Pieter-Paul Giesberts <[email protected]>Reviewed-by Henry Ptasinski <[email protected]>Signed-off-by Arend van Spriel <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Quoted 5 lines
Thanks, that's what I need. I'll queue this up for the next 3.1 kernel after this one gets out later this week.
greg k-h
Fine by me.
Gr. AvS