[PATCH] Bluetooth: Define l2cap sock option for LE PHYs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This defines two socket options, BT_LE_PHY and BT_LE_SUPPORTED_PHYS.

BT_LE_SUPPORTED_PHYS cab ne used to get supported phys of the peer devices.

BT_LE_PHY can be used to get the current phy of the connection and also
to switch phy for the connection.

Signed-off-by: Jaganath Kanakkassery <jaganathx.kanakkassery@xxxxxxxxx>
---
 include/net/bluetooth/bluetooth.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h
index e89cff0..f9271d1 100644
--- a/include/net/bluetooth/bluetooth.h
+++ b/include/net/bluetooth/bluetooth.h
@@ -122,6 +122,16 @@ struct bt_voice {
 #define BT_SNDMTU		12
 #define BT_RCVMTU		13
 
+/* This can be used for both set/get the current phy */
+#define BT_LE_PHY	14
+
+#define BT_LE_PHY_1M 		0
+#define BT_LE_PHY_2M		1
+#define BT_LE_PHY_CODED		2
+
+/* This can be used only for get peer supported phys */
+#define BT_LE_SUPPORTED_PHYS 15
+
 __printf(1, 2)
 void bt_info(const char *fmt, ...);
 __printf(1, 2)
-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux