diff options
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/bluetooth/hci.h | 2 | ||||
-rw-r--r-- | include/net/bluetooth/hci_core.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index 5ac0a18db63c..55576e848827 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h | |||
@@ -180,6 +180,8 @@ enum { | |||
180 | 180 | ||
181 | #define LMP_SNIFF_SUBR 0x02 | 181 | #define LMP_SNIFF_SUBR 0x02 |
182 | 182 | ||
183 | #define LMP_SIMPLE_PAIR 0x08 | ||
184 | |||
183 | /* Connection modes */ | 185 | /* Connection modes */ |
184 | #define HCI_CM_ACTIVE 0x0000 | 186 | #define HCI_CM_ACTIVE 0x0000 |
185 | #define HCI_CM_HOLD 0x0001 | 187 | #define HCI_CM_HOLD 0x0001 |
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index f73cc2945700..28fbd0caa534 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -348,7 +348,7 @@ static inline void hci_conn_put(struct hci_conn *conn) | |||
348 | if (conn->state == BT_CONNECTED) { | 348 | if (conn->state == BT_CONNECTED) { |
349 | timeo = msecs_to_jiffies(HCI_DISCONN_TIMEOUT); | 349 | timeo = msecs_to_jiffies(HCI_DISCONN_TIMEOUT); |
350 | if (!conn->out) | 350 | if (!conn->out) |
351 | timeo *= 2; | 351 | timeo *= 5; |
352 | } else | 352 | } else |
353 | timeo = msecs_to_jiffies(10); | 353 | timeo = msecs_to_jiffies(10); |
354 | } else | 354 | } else |
@@ -463,6 +463,7 @@ void hci_conn_del_sysfs(struct hci_conn *conn); | |||
463 | #define lmp_sniff_capable(dev) ((dev)->features[0] & LMP_SNIFF) | 463 | #define lmp_sniff_capable(dev) ((dev)->features[0] & LMP_SNIFF) |
464 | #define lmp_sniffsubr_capable(dev) ((dev)->features[5] & LMP_SNIFF_SUBR) | 464 | #define lmp_sniffsubr_capable(dev) ((dev)->features[5] & LMP_SNIFF_SUBR) |
465 | #define lmp_esco_capable(dev) ((dev)->features[3] & LMP_ESCO) | 465 | #define lmp_esco_capable(dev) ((dev)->features[3] & LMP_ESCO) |
466 | #define lmp_ssp_capable(dev) ((dev)->features[6] & LMP_SIMPLE_PAIR) | ||
466 | 467 | ||
467 | /* ----- HCI protocols ----- */ | 468 | /* ----- HCI protocols ----- */ |
468 | struct hci_proto { | 469 | struct hci_proto { |