mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 00:34:20 +08:00
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 <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
8019044dcb
commit
a89612aac3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user