summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSudha Bheemanna <b.sudha@samsung.com>2016-09-15 10:12:09 +0530
committerJaehoon Chung <jh80.chung@samsung.com>2024-11-12 13:03:13 +0900
commita3ac226ca22314dfea256d77f0aa0b2177caa7cf (patch)
treeb00401b6f054476cda6a6158a7e207e6c1648580 /include
parentb530f1d8a0ac87fa6a7f648e1a01bdf6e49edf25 (diff)
downloadlinux-rpi-a3ac226ca22314dfea256d77f0aa0b2177caa7cf.tar.gz
linux-rpi-a3ac226ca22314dfea256d77f0aa0b2177caa7cf.tar.bz2
linux-rpi-a3ac226ca22314dfea256d77f0aa0b2177caa7cf.zip
Bluetooth: Add support to enable/disable IPSP
This patch supports MGMT commands and code to enable or disable IPSP 6LowPan features. Change-Id: Ibbed275162ac0539205502747923603a2a581c36 Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com> Signed-off-by: Amit Purwar <amit.purwar@samsung.com> Signed-off-by: Wootak Jung <wootak.jung@samsung.com> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/l2cap.h11
-rw-r--r--include/net/bluetooth/mgmt_tizen.h6
2 files changed, 17 insertions, 0 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index d2a1154121d0..461ee3cd6599 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -973,4 +973,15 @@ void l2cap_conn_put(struct l2cap_conn *conn);
int l2cap_register_user(struct l2cap_conn *conn, struct l2cap_user *user);
void l2cap_unregister_user(struct l2cap_conn *conn, struct l2cap_user *user);
+#ifdef TIZEN_BT
+#ifdef CONFIG_BT_6LOWPAN
+/* IPSP : initialize/deinitialize 6lowpan */
+void bt_6lowpan_enable(void);
+void bt_6lowpan_disable(void);
+#else
+static inline void bt_6lowpan_enable(void) { }
+static inline void bt_6lowpan_disable(void) { }
+#endif
+#endif /* TIZEN_BT */
+
#endif /* __L2CAP_H */
diff --git a/include/net/bluetooth/mgmt_tizen.h b/include/net/bluetooth/mgmt_tizen.h
index 982c00d35c9b..6549be14bfd9 100644
--- a/include/net/bluetooth/mgmt_tizen.h
+++ b/include/net/bluetooth/mgmt_tizen.h
@@ -167,6 +167,12 @@ struct mgmt_rp_get_adv_tx_power {
__s8 adv_tx_power;
} __packed;
+#define MGMT_OP_ENABLE_6LOWPAN (TIZEN_OP_CODE_BASE + 0x12)
+struct mgmt_cp_enable_6lowpan {
+ __u8 enable_6lowpan;
+} __packed;
+#define MGMT_ENABLE_BT_6LOWPAN_SIZE 1
+
/* EVENTS */
/* For device name update changes */