mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-12 17:07:22 +00:00
host/l2cap: fix typo in the macro's name
Changed from 'BLE_L2CAP_ERR_RECONFIG_UNACCAPTED_PARAM' to 'BLE_L2CAP_ERR_RECONFIG_UNACCEPTED_PARAM'.
This commit is contained in:
committed by
Szymon Janc
parent
326fb77c0f
commit
5923735634
@@ -80,7 +80,7 @@ struct ble_hs_conn;
|
||||
#define BLE_L2CAP_ERR_RECONFIG_REDUCTION_MTU_NOT_ALLOWED 0x0001
|
||||
#define BLE_L2CAP_ERR_RECONFIG_REDUCTION_MPS_NOT_ALLOWED 0x0002
|
||||
#define BLE_L2CAP_ERR_RECONFIG_INVALID_DCID 0x0003
|
||||
#define BLE_L2CAP_ERR_RECONFIG_UNACCAPTED_PARAM 0x0004
|
||||
#define BLE_L2CAP_ERR_RECONFIG_UNACCEPTED_PARAM 0x0004
|
||||
|
||||
#define BLE_L2CAP_EVENT_COC_CONNECTED 0
|
||||
#define BLE_L2CAP_EVENT_COC_DISCONNECTED 1
|
||||
|
||||
@@ -795,14 +795,14 @@ ble_l2cap_sig_credit_base_reconfig_req_rx(uint16_t conn_handle,
|
||||
}
|
||||
|
||||
if (hdr->length <= sizeof(*req)) {
|
||||
rsp->result = htole16(BLE_L2CAP_ERR_RECONFIG_UNACCAPTED_PARAM);
|
||||
rsp->result = htole16(BLE_L2CAP_ERR_RECONFIG_UNACCEPTED_PARAM);
|
||||
goto failed;
|
||||
}
|
||||
|
||||
req = (struct ble_l2cap_sig_credit_base_reconfig_req *)(*om)->om_data;
|
||||
|
||||
if ((req->mps < BLE_L2CAP_ECOC_MIN_MTU) || (req->mtu < BLE_L2CAP_ECOC_MIN_MTU)) {
|
||||
rsp->result = htole16(BLE_L2CAP_ERR_RECONFIG_UNACCAPTED_PARAM);
|
||||
rsp->result = htole16(BLE_L2CAP_ERR_RECONFIG_UNACCEPTED_PARAM);
|
||||
goto failed;
|
||||
}
|
||||
|
||||
@@ -811,7 +811,7 @@ ble_l2cap_sig_credit_base_reconfig_req_rx(uint16_t conn_handle,
|
||||
|
||||
cid_cnt = (hdr->length - sizeof(*req)) / sizeof(uint16_t);
|
||||
if (cid_cnt > BLE_L2CAP_MAX_COC_CONN_REQ) {
|
||||
rsp->result = htole16(BLE_L2CAP_ERR_RECONFIG_UNACCAPTED_PARAM);
|
||||
rsp->result = htole16(BLE_L2CAP_ERR_RECONFIG_UNACCEPTED_PARAM);
|
||||
goto failed;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user