ath9k: Fix modal EEPROM dump
authorMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Tue, 15 May 2012 09:54:47 +0000 (15:24 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 5 Jun 2012 19:23:20 +0000 (15:23 -0400)
commitd25360b19008e59585defb16823804c40d4723ab
treebc8781c9f103fa6fe10253cbcafc3b32f6e78171
parent1dacd1980d5ba732de1b69999fd8995b3b2b724b
ath9k: Fix modal EEPROM dump

we provide excess buffer size for 'simple_read_from_buffer'
for modal EEPROM dump. This results in trailing NULL bytes
at the end of EEPROM dump, fix this.

Cc: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Reported-by: Holger Schurig <holgerschurig@googlemail.com>
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Tested-by: Holger Schurig <holgerschurig@gogglemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
drivers/net/wireless/ath/ath9k/eeprom_4k.c
drivers/net/wireless/ath/ath9k/eeprom_9287.c
drivers/net/wireless/ath/ath9k/eeprom_def.c