]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Bluetooth: Use proper invalid value for tx_power
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 8 Nov 2012 00:22:59 +0000 (01:22 +0100)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Fri, 9 Nov 2012 09:39:41 +0000 (10:39 +0100)
commit8cad474fba8341ad277b1f5368458b6826bb43d1
treebdd084ef3c393bd75caa0b2347cd1a1d151effb4
parent0c0afedf55ff409be9db0b0aeeaa1c6fe0f3cd3c
Bluetooth: Use proper invalid value for tx_power

The core specification defines 127 as the "not available" value (well,
"reserved" for BR/EDR and "not available" for LE - but essentially the
same). Therefore, instead of testing for 0 (which is in fact a valid
value) we should be using this invalid value to test if the tx_power is
available.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
include/net/bluetooth/hci.h
net/bluetooth/hci_core.c
net/bluetooth/hci_event.c
net/bluetooth/mgmt.c