On Wednesday 24 January 2007 19:39, Larry Finger wrote: > The current bcm43xx-d80211 driver ignores any wireless-enable switches on > mini-PCI > and mini-PCI-E cards. This patch implements a new routine to interrogate the > radio hardware enabled bit in the interface, logs the initial state and any > changes in the switch (if debugging enabled), activates the LED to show the > state, and changes the periodic work handler to provide 1 second response > to switch changes. The changes in the periodic work specs have not been > implemented. > > This should be applied to http://bu3sch.de/git/wireless-dev.git. > > Signed-off-by: Larry Finger <[EMAIL PROTECTED]> > --- > > > > Index: wireless-dev/drivers/net/wireless/d80211/bcm43xx/bcm43xx.h > =================================================================== > --- wireless-dev.orig/drivers/net/wireless/d80211/bcm43xx/bcm43xx.h > +++ wireless-dev/drivers/net/wireless/d80211/bcm43xx/bcm43xx.h > @@ -238,6 +238,9 @@ enum { > #define BCM43xx_UCODEFLAG_UNKPACTRL 0x0040 > #define BCM43xx_UCODEFLAG_JAPAN 0x0080 > > +/* Hardware Radio Enable masks */ > +#define BCM43xx_MMIO_RADIO_HWENABLED_HI_MASK (1 << 16) > +#define BCM43xx_MMIO_RADIO_HWENABLED_LO_MASK (1 << 4) > > /* HostFlags. See bcm43xx_hf_read/write() */ > #define BCM43xx_HF_ANTDIVHELP 0x00000001 /* ucode antenna div > helper */ > @@ -735,7 +738,8 @@ struct bcm43xx_wldev { > reg124_set_0x4:1, /* Some variable to keep track of IRQ > stuff. */ > short_preamble:1, /* TRUE, if short preamble is enabled. > */ > short_slot:1, /* TRUE, if short slot timing is > enabled. */ > - firmware_norelease:1; /* Do not release the firmware. Used on > suspend. */ > + firmware_norelease:1, /* Do not release the firmware. Used on > suspend. */ > + radio_hw_enable:1; /* saved state of radio hardware > enabled state */ > > /* PHY/Radio device. */ > struct bcm43xx_phy phy; > Index: wireless-dev/drivers/net/wireless/d80211/bcm43xx/bcm43xx_leds.c > =================================================================== > --- wireless-dev.orig/drivers/net/wireless/d80211/bcm43xx/bcm43xx_leds.c > +++ wireless-dev/drivers/net/wireless/d80211/bcm43xx/bcm43xx_leds.c > @@ -27,7 +27,7 @@ > > #include "bcm43xx_leds.h" > #include "bcm43xx.h" > - > +#include "bcm43xx_main.h" > > static void bcm43xx_led_changestate(struct bcm43xx_led *led) > { > @@ -108,6 +108,7 @@ static void bcm43xx_led_init_hardcoded(s > switch (led_index) { > case 0: > led->behaviour = BCM43xx_LED_ACTIVITY; > + led->activelow = 1;
Why activelow? -- Greetings Michael. _______________________________________________ Bcm43xx-dev mailing list [email protected] https://lists.berlios.de/mailman/listinfo/bcm43xx-dev
