On Monday 10 August 2009 20:42:33 Gábor Stefanik wrote: > +static void lpphy_save_dig_flt_state(struct b43_wldev *dev) > +{ > + static const u16 addr[] = { > + B43_PHY_OFDM(0xC1), > + B43_PHY_OFDM(0xC2), > + B43_PHY_OFDM(0xC3), > + B43_PHY_OFDM(0xC4), > + B43_PHY_OFDM(0xC5), > + B43_PHY_OFDM(0xC6), > + B43_PHY_OFDM(0xC7), > + B43_PHY_OFDM(0xC8), > + B43_PHY_OFDM(0xCF), > + }; > + > + static const u16 coeffs[] = { > + 0xDE5E, 0xE832, 0xE331, 0x4D26, > + 0x0026, 0x1420, 0x0020, 0xFE08, > + 0x0008, > + }; > + > + struct b43_phy_lp *lpphy = dev->phy.lp; > + int i; > + > + for (i = 0; i < 9; i++) { Use ARRAY_SIZE, please. > + lpphy->dig_flt_state[i] = b43_phy_read(dev, addr[i]); > + b43_phy_write(dev, addr[i], coefs[i]); > + } > +} > + > +static void lpphy_restore_dig_flt_state(struct b43_wldev *dev) > +{ > + static const u16 addr[] = { > + B43_PHY_OFDM(0xC1), > + B43_PHY_OFDM(0xC2), > + B43_PHY_OFDM(0xC3), > + B43_PHY_OFDM(0xC4), > + B43_PHY_OFDM(0xC5), > + B43_PHY_OFDM(0xC6), > + B43_PHY_OFDM(0xC7), > + B43_PHY_OFDM(0xC8), > + B43_PHY_OFDM(0xCF), > + }; > + > + struct b43_phy_lp *lpphy = dev->phy.lp; > + int i; > + > + for (i = 0; i < 9; i++) Same here. > + b43_phy_write(dev, addr[i], lpphy->dig_flt_state[i]); > +} > + -- 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