Files
android_kernel_xiaomi_sm8450/drivers/net/wireless
Adrien Schildknecht f10746fef3 rt2x00: adjust EEPROM_SIZE for rt2500usb
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 <adrien+dev@schischi.me>
Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2015-08-18 09:04:45 +03:00
..
2015-07-21 16:52:32 +03:00
2015-08-10 22:16:34 +03:00
2014-08-11 12:19:53 -07:00
2015-05-28 11:33:20 +03:00
2015-05-28 11:33:20 +03:00
2014-08-28 14:41:56 -04:00
2014-08-28 14:41:56 -04:00