From 843a319449191282657cb3b7a2d471a8eb61f08d Mon Sep 17 00:00:00 2001 From: Venkata Jagadeesh Garaga Date: Mon, 12 Sep 2016 18:54:42 +0530 Subject: [PATCH] GAP: Host sending two sdp req during legacy pairing Host sends sdp req from l2cap closed state without info res from remote,and one more sdp req triggered after info rsp from remote. Hence host went to bad state and not responding to sdp response from remote Don't allow sdp req without info rsp from l2cap closed state to fix this issue Change-Id: Ie5b8b89b5d499e999167ad599fa587cea5dde2e7 CRs-Fixed: 1070444 --- stack/l2cap/l2c_csm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack/l2cap/l2c_csm.c b/stack/l2cap/l2c_csm.c index 886daad97..9b10de3e1 100644 --- a/stack/l2cap/l2c_csm.c +++ b/stack/l2cap/l2c_csm.c @@ -234,7 +234,7 @@ Event uninit_use_in_call: Using uninitialized value "settings.min" in call to fu p_ccb->chnl_state = CST_W4_L2CAP_CONNECT_RSP; /* Wait for the info resp in this state before sending connect req (if needed) */ - if ((!p_ccb->p_lcb->w4_info_rsp) || (BT_PSM_SDP == p_ccb->p_rcb->psm)) + if (!p_ccb->p_lcb->w4_info_rsp) { /* Need to have at least one compatible channel to continue */ if (!l2c_fcr_chk_chan_modes(p_ccb)) -- 2.11.0