summaryrefslogtreecommitdiffstats
path: root/lib/locking-selftest-mutex.h
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2013-03-27 08:37:08 +0100
committerJohn W. Linville <linville@tuxdriver.com>2013-03-27 11:07:05 -0400
commit2e1253d640eb7f8707d2591c93097c1e9f9c71d5 (patch)
tree99a9fb3b84244a9282e28c6f30ef76cc4889a6bb /lib/locking-selftest-mutex.h
parent8ac3e99e693cb876776646c07f0a954a17ee3017 (diff)
downloadblackbird-obmc-linux-2e1253d640eb7f8707d2591c93097c1e9f9c71d5.tar.gz
blackbird-obmc-linux-2e1253d640eb7f8707d2591c93097c1e9f9c71d5.zip
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>
Diffstat (limited to 'lib/locking-selftest-mutex.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud