diff options
| author | Luiz Augusto von Dentz <[email protected]> | 2024-02-01 16:18:58 +0000 |
|---|---|---|
| committer | Luiz Augusto von Dentz <[email protected]> | 2024-03-06 22:22:39 +0000 |
| commit | e7b02296fb400ee64822fbdd81a0718449066333 (patch) | |
| tree | ec1b115e697cf4b3200b9245b924237399099b62 /net/bluetooth/l2cap_sock.c | |
| parent | Bluetooth: btintel: Fix null ptr deref in btintel_read_version (diff) | |
| download | kernel-e7b02296fb400ee64822fbdd81a0718449066333.tar.gz kernel-e7b02296fb400ee64822fbdd81a0718449066333.zip | |
Bluetooth: Remove BT_HS
High Speed, Alternate MAC and PHY (AMP) extension, has been removed from
Bluetooth Core specification on 5.3:
https://www.bluetooth.com/blog/new-core-specification-v5-3-feature-enhancements/
Fixes: 244bc377591c ("Bluetooth: Add BT_HS config option")
Signed-off-by: Luiz Augusto von Dentz <[email protected]>
Diffstat (limited to 'net/bluetooth/l2cap_sock.c')
| -rw-r--r-- | net/bluetooth/l2cap_sock.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/net/bluetooth/l2cap_sock.c b/net/bluetooth/l2cap_sock.c index e50d3d102078..ee7a41d6994f 100644 --- a/net/bluetooth/l2cap_sock.c +++ b/net/bluetooth/l2cap_sock.c @@ -1027,23 +1027,7 @@ static int l2cap_sock_setsockopt(struct socket *sock, int level, int optname, break; } - if (opt > BT_CHANNEL_POLICY_AMP_PREFERRED) { - err = -EINVAL; - break; - } - - if (chan->mode != L2CAP_MODE_ERTM && - chan->mode != L2CAP_MODE_STREAMING) { - err = -EOPNOTSUPP; - break; - } - - chan->chan_policy = (u8) opt; - - if (sk->sk_state == BT_CONNECTED && - chan->move_role == L2CAP_MOVE_ROLE_NONE) - l2cap_move_start(chan); - + err = -EOPNOTSUPP; break; case BT_SNDMTU: |
