From: Marcel Holtmann Date: Fri, 5 Dec 2014 09:55:53 +0000 (+0100) Subject: Bluetooth: Add HCI_RSSI_INVALID for unknown RSSI value X-Git-Tag: firefly_0821_release~176^2~2631^2~17^2~6^2~48 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a89612aac3cc6b13e6738bd70e05faf6f3fc8d9e;p=firefly-linux-kernel-4.4.55.git 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. Signed-off-by: Marcel Holtmann Signed-off-by: Johan Hedberg --- diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index 569c077778b6..b6f7be1eb919 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h @@ -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