From: Michael Buesch Date: Tue, 24 Jun 2008 20:09:55 +0000 (+0200) Subject: Fix typo. X-Git-Tag: b43-fwcutter-013~28 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=45aa3bd23d40192dd9f0354c3c30e40422362c2e;p=b43-tools.git Fix typo. Signed-off-by: Michael Buesch --- diff --git a/ssb_sprom/ssb_sprom.c b/ssb_sprom/ssb_sprom.c index ee56d38..f03a4d7 100644 --- a/ssb_sprom/ssb_sprom.c +++ b/ssb_sprom/ssb_sprom.c @@ -293,10 +293,16 @@ static int modify_value(uint8_t *sprom, sprom[SPROM_BOARDREV + 1] |= (1 << 5); break; case VALUE_ANTGA: - sprom[SPROM_ANTENNA_GAIN + 0] = (v & 0xFF); + if (sprom_rev != 4) + sprom[SPROM_ANTENNA_GAIN + 1] = (v & 0xFF); + else + sprom[SPROM4_ANTENNA_GAIN + 1] = (v & 0xFF); break; case VALUE_ANTGBG: - sprom[SPROM_ANTENNA_GAIN + 1] = (v & 0xFF); + if (sprom_rev != 4) + sprom[SPROM_ANTENNA_GAIN] = (v & 0xFF); + else + sprom[SPROM4_ANTENNA_GAIN] = (v & 0xFF); break; case VALUE_PA0B0: sprom[SPROM_PA0B0 + 0] = (v & 0x00FF);