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 e0c9a0219a8f542e3946fe972a68aacf8c3f906c
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-05-16 12:45:21 -04:00
2013-02-19 00:51:08 -05:00
2013-02-25 15:47:41 -05:00
2012-08-06 14:56:35 -04:00
2012-12-06 15:04:56 -05:00
2011-08-26 10:47:57 -04:00
2011-09-27 14:34:02 -04:00
2011-09-19 16:10:14 -04:00
2012-08-06 14:56:35 -04:00
2012-12-10 15:49:59 -05:00
2012-08-06 14:56:35 -04:00
2012-08-06 14:56:35 -04:00
2012-12-06 15:04:56 -05:00
2011-09-27 14:34:02 -04:00
2012-11-13 21:43:55 +01:00
2011-11-07 13:19:12 -05:00