Skip to contentSkip to conversation

Bluetooth: Add HCI_RSSI_INVALID for unknown RSSI value

RFC In review Marcel Holtmann 1 participant 1 message Dec 4, 2014

Subsystems (2)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

RFC v2 4/7 Bluetooth: Add HCI_RSSI_INVALID for unknown RSSI value

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.

---
 include/net/bluetooth/hci.h | 1 +
 1 file changed, 1 insertion(+)
include/net/bluetooth/hci.h +1 -0
index 569c077778b6..b6f7be1eb919 100644
@@ -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
Signature · 1 line
1.9.3