[PATCH] softmac: Fix WX and association related races
This fixes some race conditions in the WirelessExtension handling and association handling code. Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
3693ec670b
commit
7c28ad2d83
@@ -242,7 +242,7 @@ void bcm43xx_leds_update(struct bcm43xx_private *bcm, int activity)
|
||||
//TODO
|
||||
break;
|
||||
case BCM43xx_LED_ASSOC:
|
||||
if (bcm->softmac->associated)
|
||||
if (bcm->softmac->associnfo.associated)
|
||||
turn_on = 1;
|
||||
break;
|
||||
#ifdef CONFIG_BCM43XX_DEBUG
|
||||
|
@@ -847,7 +847,7 @@ static struct iw_statistics *bcm43xx_get_wireless_stats(struct net_device *net_d
|
||||
unsigned long flags;
|
||||
|
||||
wstats = &bcm->stats.wstats;
|
||||
if (!mac->associated) {
|
||||
if (!mac->associnfo.associated) {
|
||||
wstats->miss.beacon = 0;
|
||||
// bcm->ieee->ieee_stats.tx_retry_limit_exceeded = 0; // FIXME: should this be cleared here?
|
||||
wstats->discard.retries = 0;
|
||||
|
Reference in New Issue
Block a user