ath9k_hw: Fix STA (AR9485) bringup issue due to incorrect MAC address
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
@@ -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
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
0x1as the first byte causes issues in bringing up the card.So fixed the eeprom template accordingly to address the issue.
Cc Paul Stewart <[email protected]>Signed-off-by Senthil Balasubramanian <[email protected]>
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
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
0x1as 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.
Cc Paul Stewart <[email protected]>Signed-off-by Senthil Balasubramanian <[email protected]>I don't follow the description too well, all I can tell from it is that there is an issue if the template has
0x01set instead of0x0but it doesn't tell me why.
Is this not a stable fix?
Luis
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
0x1as 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.
Cc Paul Stewart <[email protected]>Signed-off-by Senthil Balasubramanian <[email protected]>I don't follow the description too well, all I can tell from it is that there is an issue if the template has
0x01set instead of0x0but 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
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
0x1as 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.
Cc Paul Stewart <[email protected]>Signed-off-by Senthil Balasubramanian <[email protected]>I don't follow the description too well, all I can tell from it is that there is an issue if the template has
0x01set instead of0x0but 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.
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
0x1as 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.
Cc Paul Stewart <[email protected]>Signed-off-by Senthil Balasubramanian <[email protected]>I don't follow the description too well, all I can tell from it is that there is an issue if the template has
0x01set instead of0x0but 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.