Skip to contentSkip to conversation

bcm43xx: suspend MAC while executing long pwork

PATCH New Michael Buesch 1 participant 1 message Jun 12, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bcm43xx: suspend MAC while executing long pwork

Hi John,
Please queue this for 2.6.18.

--

Suspend MAC (and make MAC-suspend refcounting) when doing long periodic work.
On long periodic work, we disable IRQs on the device, so we don't want the MAC to stay operating and probably miss packets due do non-delivery of interrupts.

drivers/net/wireless/bcm43xx/bcm43xx.h +2 -0
Index: wireless-dev/drivers/net/wireless/bcm43xx/bcm43xx.h
===================================================================
@@ -723,6 +723,8 @@
 	u32 irq_savedstate;
 	/* Link Quality calculation context. */
 	struct bcm43xx_noise_calculation noisecalc;
+	/* if > 0 MAC is suspended. if == 0 MAC is enabled. */
+	int mac_suspended;
 
 	/* Threshold values. */
 	//TODO: The RTS thr has to be _used_. Currently, it is only set via WX.
drivers/net/wireless/bcm43xx/bcm43xx_main.c +32 -19

83 lines not on this page · raw message

Signature · 1 line
Greetings Michael.