mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-06 10:07:55 +00:00
nimble/mesh: Don't send scannable adv events if non-connectable
Extended advertising events should be send as non-scannable events.
This commit is contained in:
@@ -501,10 +501,10 @@ ble_adv_copy_to_ext_param(struct ble_gap_ext_adv_params *ext_param,
|
||||
memset(ext_param, 0, sizeof(*ext_param));
|
||||
|
||||
ext_param->legacy_pdu = 1;
|
||||
ext_param->scannable = 1;
|
||||
|
||||
if (param->conn_mode != BLE_GAP_CONN_MODE_NON) {
|
||||
ext_param->connectable = 1;
|
||||
ext_param->scannable = 1;
|
||||
}
|
||||
|
||||
ext_param->itvl_max = param->itvl_max;
|
||||
|
||||
Reference in New Issue
Block a user