Bluetooth: Add HCI_RSSI_INVALID for unknown RSSI value
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 5 Dec 2014 09:55:53 +0000 (10:55 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 5 Dec 2014 10:37:30 +0000 (12:37 +0200)
The Bluetooth core specification defines the value 127 as invalid for
RSSI values. So instead of hard coding it, lets add a constant for it.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/hci.h

index 569c077..b6f7be1 100644 (file)
@@ -412,6 +412,7 @@ enum {
 
 /* The core spec defines 127 as the "not available" value */
 #define HCI_TX_POWER_INVALID   127
+#define HCI_RSSI_INVALID       127
 
 #define HCI_ROLE_MASTER                0x00
 #define HCI_ROLE_SLAVE         0x01