aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/bluetooth.h8
-rw-r--r--include/net/bluetooth/hci_core.h2
-rw-r--r--include/net/bluetooth/l2cap.h1
3 files changed, 10 insertions, 1 deletions
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h
index 43750439c521..af930a3a66be 100644
--- a/include/net/bluetooth/bluetooth.h
+++ b/include/net/bluetooth/bluetooth.h
@@ -69,6 +69,13 @@ struct bt_security {
69#define BT_FLUSHABLE_OFF 0 69#define BT_FLUSHABLE_OFF 0
70#define BT_FLUSHABLE_ON 1 70#define BT_FLUSHABLE_ON 1
71 71
72#define BT_POWER 9
73struct bt_power {
74 __u8 force_active;
75};
76#define BT_POWER_FORCE_ACTIVE_OFF 0
77#define BT_POWER_FORCE_ACTIVE_ON 1
78
72#define BT_INFO(fmt, arg...) printk(KERN_INFO "Bluetooth: " fmt "\n" , ## arg) 79#define BT_INFO(fmt, arg...) printk(KERN_INFO "Bluetooth: " fmt "\n" , ## arg)
73#define BT_ERR(fmt, arg...) printk(KERN_ERR "%s: " fmt "\n" , __func__ , ## arg) 80#define BT_ERR(fmt, arg...) printk(KERN_ERR "%s: " fmt "\n" , __func__ , ## arg)
74#define BT_DBG(fmt, arg...) pr_debug("%s: " fmt "\n" , __func__ , ## arg) 81#define BT_DBG(fmt, arg...) pr_debug("%s: " fmt "\n" , __func__ , ## arg)
@@ -150,6 +157,7 @@ struct bt_skb_cb {
150 __u8 retries; 157 __u8 retries;
151 __u8 sar; 158 __u8 sar;
152 unsigned short channel; 159 unsigned short channel;
160 __u8 force_active;
153}; 161};
154#define bt_cb(skb) ((struct bt_skb_cb *)((skb)->cb)) 162#define bt_cb(skb) ((struct bt_skb_cb *)((skb)->cb))
155 163
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 5be150229574..818eadbc3f7f 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -438,7 +438,7 @@ int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type);
438int hci_conn_change_link_key(struct hci_conn *conn); 438int hci_conn_change_link_key(struct hci_conn *conn);
439int hci_conn_switch_role(struct hci_conn *conn, __u8 role); 439int hci_conn_switch_role(struct hci_conn *conn, __u8 role);
440 440
441void hci_conn_enter_active_mode(struct hci_conn *conn); 441void hci_conn_enter_active_mode(struct hci_conn *conn, __u8 force_active);
442void hci_conn_enter_sniff_mode(struct hci_conn *conn); 442void hci_conn_enter_sniff_mode(struct hci_conn *conn);
443 443
444void hci_conn_hold_device(struct hci_conn *conn); 444void hci_conn_hold_device(struct hci_conn *conn);
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index a2dcbfff1c51..0529d278e068 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -303,6 +303,7 @@ struct l2cap_chan {
303 __u8 role_switch; 303 __u8 role_switch;
304 __u8 force_reliable; 304 __u8 force_reliable;
305 __u8 flushable; 305 __u8 flushable;
306 __u8 force_active;
306 307
307 __u8 ident; 308 __u8 ident;
308 309