Files
android_kernel_xiaomi_sm8450/drivers/net
Rafał Miłecki 2e1253d640 b43: N-PHY: use more bits for offset in RSSI calibration
When calculating "offset" for final RSSI calibration we're using numbers
bigger than s8 can hold. We have for example:
offset[j] = 232 - poll_results[j];
formula. If poll_results[j] is small enough (it usually is) we treat
number's bit as a sign bit. For example 232 - 1 becomes:
0xE8 - 0x1 = 0xE7, which is not 231 but -25.

This code was introduced in e0c9a0219a
and caused stability regression on some cards, for ex. BCM4322.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2013-03-27 11:07:05 -04:00
..
2012-12-03 11:16:10 -08:00
2013-02-27 19:10:18 -08:00
2012-12-28 15:24:19 -08:00
2013-01-14 15:13:39 -05:00
2013-02-27 19:10:18 -08:00
2013-01-08 17:56:10 -08:00
2013-01-20 15:48:14 -08:00