Fix typo.
authorMichael Buesch <mb@bu3sch.de>
Tue, 24 Jun 2008 20:09:55 +0000 (22:09 +0200)
committerMichael Buesch <mb@bu3sch.de>
Tue, 24 Jun 2008 20:09:55 +0000 (22:09 +0200)
Signed-off-by: Michael Buesch <mb@bu3sch.de>
ssb_sprom/ssb_sprom.c

index ee56d38ed9febfedf3b31129a0fada51b9cc258c..f03a4d73c4514faeb1a709a2b47cc2f9166038f5 100644 (file)
@@ -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);