You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lib: ble_conn_params: fix att_mtu_get function returning wrong value
Function ble_conn_params_att_mtu_get would incorrectly return
the value CONFIG_NRF_SDH_BLE_GATT_MAX_MTU_SIZE before an
ATT MTU exchange procedure was started. The correct value is 23.
The default ATT MTU size.
Function ble_conn_params_att_mtu_get would also return an
incorrect value if function ble_conn_params_att_mtu_set
would fail to send an MTU exchange request with
sd_ble_gattc_exchange_mtu_request returning NRF_ERROR_INVALID_STATE.
This will happen if calling sd_ble_gattc_exchange_mtu_request and an
ATT MTU exchange have already completed.
Fix these two issues by introducing a extra att_mtu_pending state.
Signed-off-by: Andreas Moltumyr <[email protected]>
0 commit comments