Thread (3 messages) flat view 3 messages, 3 authors, 2015-08-18

Re: rt2x00: adjust EEPROM_SIZE for rt2500usb

From: Kalle Valo <hidden>
Date: 2015-08-18 06:05:25
Also in: lkml, netdev

rt2500usb_validate_eeprom() read data up to 0x6e (EEPROM_CALIBRATE_OFFSET)
but only 0x6a bytes has been allocated and read from the eeprom.

This lead to out-of-bound accesses and invalid values for
EEPROM_BBPTUNE_R17 and EEPROM_CALIBRATE_OFFSET.

Change the EEPROM_SIZE to 0x6e in order to retrieve all the fields.

Tested with a rt2570 device.

Signed-off-by: Adrien Schildknecht <redacted>
Acked-by: Stanislaw Gruszka <redacted>
Thanks, applied to wireless-drivers-next.git.

Kalle Valo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help