From: Gustavo F. Padovan Date: Tue, 8 Jun 2010 22:29:00 +0000 (-0300) Subject: Bluetooth: Prefer Basic Mode on receipt of ConfigReq X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ae12d52efd492ee6634c34322302ac754ff8cde8;p=linux-beck.git Bluetooth: Prefer Basic Mode on receipt of ConfigReq If we choose to use Basic Mode then we have to refuse the received mode and propose Basic Mode again. Signed-off-by: Gustavo F. Padovan Signed-off-by: Marcel Holtmann --- diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index 03e9125dd74f..ceed5df43fee 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c @@ -2621,9 +2621,6 @@ static int l2cap_parse_conf_req(struct sock *sk, void *data) return -ECONNREFUSED; break; - default: - pi->mode = l2cap_select_mode(rfc.mode, pi->conn->feat_mask); - break; } done: