mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 08:37:22 +00:00
l2cap_signaling: add invalid PDU for testing
This commit is contained in:
parent
d7c9cb2b80
commit
15f09267f5
@ -77,6 +77,9 @@ static uint16_t l2cap_create_signaling_internal(uint8_t * acl_buffer, hci_con_ha
|
|||||||
"22222", // 0x15 le credit based connection respone: dest cid, mtu, mps, initial credits, result
|
"22222", // 0x15 le credit based connection respone: dest cid, mtu, mps, initial credits, result
|
||||||
"22", // 0x16 le flow control credit: source cid, credits
|
"22", // 0x16 le flow control credit: source cid, credits
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef UNIT_TEST
|
||||||
|
"M", // invalid format for unit testing
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
static const unsigned int num_l2cap_commands = sizeof(l2cap_signaling_commands_format) / sizeof(const char *);
|
static const unsigned int num_l2cap_commands = sizeof(l2cap_signaling_commands_format) / sizeof(const char *);
|
||||||
|
|
||||||
|
@ -70,6 +70,9 @@ typedef enum {
|
|||||||
LE_CREDIT_BASED_CONNECTION_REQUEST,
|
LE_CREDIT_BASED_CONNECTION_REQUEST,
|
||||||
LE_CREDIT_BASED_CONNECTION_RESPONSE,
|
LE_CREDIT_BASED_CONNECTION_RESPONSE,
|
||||||
LE_FLOW_CONTROL_CREDIT,
|
LE_FLOW_CONTROL_CREDIT,
|
||||||
|
#ifdef UNIT_TEST
|
||||||
|
COMMAND_WITH_INVALID_FORMAT,
|
||||||
|
#endif
|
||||||
COMMAND_REJECT_LE = 0x1F // internal to BTstack
|
COMMAND_REJECT_LE = 0x1F // internal to BTstack
|
||||||
} L2CAP_SIGNALING_COMMANDS;
|
} L2CAP_SIGNALING_COMMANDS;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user