[PATCH v1] Bluetooth: Fix the HCI to MGMT status conversion table

2021-04-19 Thread Yu Liu
0x2B, 0x31 and 0x33 are reserved for future use but were not present in the HCI to MGMT conversion table, this caused the conversion to be incorrect for the HCI status code greater than 0x2A. Reviewed-by: Miao-chen Chou Signed-off-by: Yu Liu --- Changes in v1: - Initial change net/bluetooth

[PATCH v2] Bluetooth: Return whether a connection is outbound

2021-04-09 Thread Yu Liu
-by: Yu Liu --- Changes in v2: - Defined the bit as MGMT_DEV_FOUND_INITIATED_CONN Changes in v1: - Initial change include/net/bluetooth/hci_core.h | 2 +- include/net/bluetooth/mgmt.h | 1 + net/bluetooth/hci_event.c| 8 net/bluetooth/l2cap_core.c | 2 +- net

[PATCH v1] Bluetooth: Return whether a connection is outbound

2021-04-02 Thread Yu Liu
-by: Yu Liu --- Changes in v1: - Initial change include/net/bluetooth/mgmt.h | 2 ++ net/bluetooth/mgmt.c | 5 + 2 files changed, 7 insertions(+) diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h index a7cffb069565..7cc724386b00 100644 --- a/include/net

[PATCH v1] Bluetooth: Return whether a connection is outbound

2021-03-23 Thread Yu Liu
-off-by: Yu Liu --- Changes in v1: - Initial change include/net/bluetooth/mgmt.h | 2 ++ net/bluetooth/mgmt.c | 5 + 2 files changed, 7 insertions(+) diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h index a7cffb069565..d66bc6938b58 100644 --- a/include/net

[PATCH v3] Bluetooth: Skip eSCO 2M params when not supported

2021-01-29 Thread Yu Liu
If a peer device doesn't support eSCO 2M we should skip the params that use it when setting up sync connection since they will always fail. Signed-off-by: Yu Liu Reviewed-by: Abhishek Pandit-Subedi --- Changes in v3: - Use pkt_type instead of adding new field Changes in v2: - Fix title

[PATCH v2] Bluetooth: Skip eSCO 2M params when not supported

2021-01-27 Thread Yu Liu
If a peer device doesn't support eSCO 2M we should skip the params that use it when setting up sync connection since they will always fail. Signed-off-by: Yu Liu Reviewed-by: Abhishek Pandit-Subedi --- Changes in v2: - Fix title Changes in v1: - Initial change include/net/bluetooth

[PATCH v1] Bluetooth: Skip eSCO 2M params when not supported.

2021-01-27 Thread Yu Liu
If a peer device doesn't support eSCO 2M we should skip the params that use it when setting up sync connection since they will always fail. Signed-off-by: Yu Liu Reviewed-by: Abhishek Pandit-Subedi --- Changes in v1: - Initial change include/net/bluetooth/hci_core.h | 1 + net/bluetooth