Bluetooth: host: Fix error code when calling API before init
Fix bt_conn_create_aute_le returning the wrong error code when bt_init has not been called yet. This is inconsistent with the rest of the API functions. Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
parent
c635425487
commit
e91f9804e6
1 changed files with 1 additions and 1 deletions
|
@ -2082,7 +2082,7 @@ int bt_conn_create_auto_le(const struct bt_le_conn_param *param)
|
|||
int err;
|
||||
|
||||
if (!atomic_test_bit(bt_dev.flags, BT_DEV_READY)) {
|
||||
return -EINVAL;
|
||||
return -EAGAIN;
|
||||
}
|
||||
|
||||
if (!bt_le_conn_params_valid(param)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue