On Friday 03 August 2007 23:26:21 Larry Finger wrote: > In the sprom for bcm43xx devices, any unprogrammed values are set to all ones. > In the case of antenna gains, the specs indicate that a gain of 2 dBm should > be set if no value is stored. This patch implements that provision. > > Signed-off-by: Larry Finger <Larry.Finger@xxxxxxxxxxxx> > --- > > Index: wireless-dev/drivers/net/wireless/bcm43xx-mac80211/bcm43xx_main.c > =================================================================== > --- wireless-dev.orig/drivers/net/wireless/bcm43xx-mac80211/bcm43xx_main.c > +++ wireless-dev/drivers/net/wireless/bcm43xx-mac80211/bcm43xx_main.c > @@ -3805,6 +3805,12 @@ static void bcm43xx_sprom_fixup(struct s > bus->boardinfo.rev > 0x40) > bus->sprom.r1.boardflags_lo |= BCM43xx_BFL_PACTRL; > > + /* Handle case when gain is not set in sprom */ > + if (bus->sprom.r1.antenna_gain_a == 0xFF) > + bus->sprom.r1.antenna_gain_a = 2; > + if (bus->sprom.r1.antenna_gain_bg == 0xFF) > + bus->sprom.r1.antenna_gain_bg = 2; > + > /* Convert Antennagain values to Q5.2 */ > bus->sprom.r1.antenna_gain_a <<= 2; > bus->sprom.r1.antenna_gain_bg <<= 2; > - > To unsubscribe from this list: send the line "unsubscribe linux-wireless" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > > Queued, thanks! -- Greetings Michael. - To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html