Skip to contentSkip to conversation

ath9k_hw: Fix STA (AR9485) bringup issue due to incorrect MAC address

PATCH Superseded Senthil Balasubramanian 3 participants 6 messages Aug 9, 2011 – Aug 17, 2011 Qualcomm Atheros ATH9K wireless driver

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath9k_hw: Fix STA (AR9485) bringup issue due to incorrect MAC address

Due to some recent optimization done in the way the mac address bytes are written into the OTP memory, some AR9485 chipsets were forced to use the first byte from the eeprom template and as AR9485 happens to use generic eeprom template which has 0x1 as the first byte causes issues in bringing up the card.

So fixed the eeprom template accordingly to address the issue.

---
 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c +1 -1
index 184abb6..b527ea1 100644
@@ -69,7 +69,7 @@ static int ar9003_hw_power_interpolate(int32_t x,
 static const struct ar9300_eeprom ar9300_default = {
 	.eepromVersion = 2,
 	.templateVersion = 2,
-	.macAddr = {1, 2, 3, 4, 5, 6},
+	.macAddr = {0, 2, 3, 4, 5, 6},
 	.custData = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 		     0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
 	.baseEepHeader = {
Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 10 lines · Senthil Balasubramanian

Due to some recent optimization done in the way the mac address bytes are written into the OTP memory, some AR9485 chipsets were forced to use the first byte from the eeprom template and as AR9485 happens to use generic eeprom template which has 0x1 as the first byte causes issues in bringing up the card.

So fixed the eeprom template accordingly to address the issue.

I don't follow the description too well, all I can tell from it is that there is an issue if the template has 0x01 set instead of 0x0 but it doesn't tell me why.

Luis

#2 lore raw
Quoted 8 lines · Luis R. Rodriguez
Quoted 6 lines · Senthil Balasubramanian

Due to some recent optimization done in the way the mac address bytes are written into the OTP memory, some AR9485 chipsets were forced to use the first byte from the eeprom template and as AR9485 happens to use generic eeprom template which has 0x1 as the first byte causes issues in bringing up the card.

Quoted 8 lines
Quoted 4 lines

So fixed the eeprom template accordingly to address the issue.

I don't follow the description too well, all I can tell from it is that there is an issue if the template has 0x01 set instead of 0x0 but it doesn't tell me why.

Is this not a stable fix?

Luis

#3 lore raw
Quoted 9 lines · Luis R. Rodriguez
Quoted 8 lines · Luis R. Rodriguez
Quoted 6 lines · Senthil Balasubramanian

Due to some recent optimization done in the way the mac address bytes are written into the OTP memory, some AR9485 chipsets were forced to use the first byte from the eeprom template and as AR9485 happens to use generic eeprom template which has 0x1 as the first byte causes issues in bringing up the card.

Quoted 8 lines
Quoted 8 lines
Quoted 4 lines

So fixed the eeprom template accordingly to address the issue.

I don't follow the description too well, all I can tell from it is that there is an issue if the template has 0x01 set instead of 0x0 but it doesn't tell me why.

The leading byte is 1 which is obviously incorrect for mac address. The reason why 1 is chosen by the driver for mac address is due to the way the OTP write was optimized and so the driver has taken the first byte alone from the template and the remaining from OTP.

Quoted 2 lines

Is this not a stable fix?

Oops.. Yes it is. Let me cc to stable. thanks for the stable reminder :-(

Quoted 2 lines

Luis

#4 lore raw
Quoted 18 lines · Senthil Balasubramanian
Quoted 9 lines · Luis R. Rodriguez
Quoted 8 lines · Luis R. Rodriguez
Quoted 6 lines · Senthil Balasubramanian

Due to some recent optimization done in the way the mac address bytes are written into the OTP memory, some AR9485 chipsets were forced to use the first byte from the eeprom template and as AR9485 happens to use generic eeprom template which has 0x1 as the first byte causes issues in bringing up the card.

Quoted 8 lines
Quoted 8 lines
Quoted 4 lines

So fixed the eeprom template accordingly to address the issue.

I don't follow the description too well, all I can tell from it is that there is an issue if the template has 0x01 set instead of 0x0 but it doesn't tell me why.

Quoted 8 lines

The leading byte is 1 which is obviously incorrect for mac address. The reason why 1 is chosen by the driver for mac address is due to the way the OTP write was optimized and so the driver has taken the first byte alone from the template and the remaining from OTP.

Quoted 2 lines

Is this not a stable fix?

Oops.. Yes it is. Let me cc to stable. thanks for the stable reminder :-(

Are you goint to resubmit a patch w/ a better changelog and
Cc: [email protected]?

John

Signature · 2 lines
John W. Linville		Someday the world will need a hero, and you
[email protected]			might be all we have.  Be ready.
#5 lore raw
Quoted 25 lines · John W. Linville
Quoted 24 lines · Senthil Balasubramanian
Quoted 9 lines · Luis R. Rodriguez
Quoted 8 lines · Luis R. Rodriguez
Quoted 6 lines · Senthil Balasubramanian

Due to some recent optimization done in the way the mac address bytes are written into the OTP memory, some AR9485 chipsets were forced to use the first byte from the eeprom template and as AR9485 happens to use generic eeprom template which has 0x1 as the first byte causes issues in bringing up the card.

Quoted 8 lines
Quoted 8 lines
Quoted 4 lines

So fixed the eeprom template accordingly to address the issue.

I don't follow the description too well, all I can tell from it is that there is an issue if the template has 0x01 set instead of 0x0 but it doesn't tell me why.

The leading byte is 1 which is obviously incorrect for mac address. The reason why 1 is chosen by the driver for mac address is due to the way the OTP write was optimized and so the driver has taken the first byte alone from the template and the remaining from OTP.

Quoted 1 line
Quoted 5 lines
Quoted 2 lines
Quoted 1 line

Is this not a stable fix?

Oops.. Yes it is. Let me cc to stable. thanks for the stable reminder :-(

Are you goint to resubmit a patch w/ a better changelog and
Cc: [email protected]?

Yes.. John. Sorry! for the long silence from my side.

Quoted 5 lines

John

Signature · 2 lines
John W. Linville		Someday the world will need a hero, and you
[email protected]			might be all we have.  Be ready.