Skip to content

Commit 53cf062

Browse files
use the ccb instead of looking up the conn id
1 parent 9a25b7b commit 53cf062

File tree

1 file changed

+1
-1
lines changed
  • connectivity/FEATURE_BLE/libraries/cordio_stack/ble-host/sources/stack/att

1 file changed

+1
-1
lines changed

connectivity/FEATURE_BLE/libraries/cordio_stack/ble-host/sources/stack/att/atts_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ static void attsDataCback(uint16_t handle, uint16_t len, uint8_t *pPacket)
182182
}
183183

184184
/* check client's status to see if server is allowed to process this PDU. */
185-
err = attsCsfActClientState(DmConnIdByHandle(handle), opcode, pPacket);
185+
err = attsCsfActClientState(pCcb->connId, opcode, pPacket);
186186
if (err)
187187
{
188188
BYTES_TO_UINT16(attHandle, pPacket + L2C_PAYLOAD_START + ATT_HDR_LEN);

0 commit comments

Comments
 (0)