This change makes sure that when a call to `bt_id_set_scan_own_addr` is sucessful, i.e., the return value is 0, the `own_addr_type` will be set by the `bt_id_set_scan_own_addr`. Not setting the `own_addr_type` in a successful call to `bt_id_set_scan_own_addr` causes, for example, the `start_le_scan_ext` method in `scan.c` to use an uninitialized `own_addr_type`. Eventually this results in an unexpected failure further down in `start_le_scan_ext`, when sending HCI command to controller with an uninitialized `own_addr_type`. Signed-off-by: Erik Sandgren <erik.sandgren@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| classic | ||
| shell | ||
| addr_internal.h | ||
| addr.c | ||
| adv.c | ||
| adv.h | ||
| aes_ccm.c | ||
| att_internal.h | ||
| att.c | ||
| buf_view.h | ||
| buf.c | ||
| CMakeLists.txt | ||
| conn_internal.h | ||
| conn.c | ||
| crypto_psa.c | ||
| crypto_tc.c | ||
| crypto.h | ||
| cs.c | ||
| data.c | ||
| direction_internal.h | ||
| direction.c | ||
| ecc.c | ||
| ecc.h | ||
| gatt_internal.h | ||
| gatt.c | ||
| hci_common.c | ||
| hci_core.c | ||
| hci_core.h | ||
| hci_ecc.c | ||
| hci_ecc.h | ||
| hci_raw_internal.h | ||
| hci_raw.c | ||
| id.c | ||
| id.h | ||
| iso_internal.h | ||
| iso.c | ||
| Kconfig | ||
| Kconfig.gatt | ||
| Kconfig.l2cap | ||
| keys.c | ||
| keys.h | ||
| l2cap_internal.h | ||
| l2cap.c | ||
| long_wq.c | ||
| long_wq.h | ||
| monitor.c | ||
| monitor.h | ||
| scan.c | ||
| scan.h | ||
| settings.c | ||
| settings.h | ||
| smp_null.c | ||
| smp.c | ||
| smp.h | ||
| uuid.c | ||