Bluetooth: Prefer Basic Mode on receipt of ConfigReq
authorGustavo F. Padovan <padovan@profusion.mobi>
Tue, 8 Jun 2010 22:29:00 +0000 (19:29 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 21 Jul 2010 17:39:08 +0000 (10:39 -0700)
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 <padovan@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap.c

index 03e9125..ceed5df 100644 (file)
@@ -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: