projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8019044
)
Bluetooth: Add HCI_RSSI_INVALID for unknown RSSI value
author
Marcel Holtmann
<marcel@holtmann.org>
Fri, 5 Dec 2014 09:55:53 +0000
(10:55 +0100)
committer
Johan 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
patch
|
blob
|
history
diff --git
a/include/net/bluetooth/hci.h
b/include/net/bluetooth/hci.h
index 569c077778b692c80250f65208f80531e66ea8a1..b6f7be1eb91935eefca70cfb441959e1583a46e0 100644
(file)
--- 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