Skip to contentSkip to conversation

Bluetooth: Add HCI_RSSI_INVALID for unknown RSSI value

PATCH In review Marcel Holtmann 2 participants 2 messages Dec 5, 2014

Subsystems (2)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 1/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
#1 lore raw

Hi Marcel,

Quoted 7 lines · Marcel Holtmann

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(+)

All patches in this set have been applied to bluetooth-next. Thanks.

Johan