projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d650915
)
ath9k: Fix bug in 4K EEPROM size calculation
author
Sujith
<Sujith.Manoharan@atheros.com>
Fri, 13 Mar 2009 03:26:07 +0000
(08:56 +0530)
committer
John W. Linville
<linville@tuxdriver.com>
Sat, 28 Mar 2009 00:12:50 +0000
(20:12 -0400)
We should be checking with the 4K header and not the non-4K
header size.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/eeprom.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath9k/eeprom.c
b/drivers/net/wireless/ath9k/eeprom.c
index 973b576c0ad8d0b7d10828f34bd4a71b71aed4dd..d7b9cf4e8eba42fee671dea763f3a187dc4f84f0 100644
(file)
--- a/
drivers/net/wireless/ath9k/eeprom.c
+++ b/
drivers/net/wireless/ath9k/eeprom.c
@@
-416,7
+416,7
@@
static int ath9k_hw_4k_check_eeprom(struct ath_hw *ah)
else
el = ah->eeprom.map4k.baseEepHeader.length;
- if (el > sizeof(struct ar5416_eeprom_
def
))
+ if (el > sizeof(struct ar5416_eeprom_
4k
))
el = sizeof(struct ar5416_eeprom_4k) / sizeof(u16);
else
el = el / sizeof(u16);