zephyr/subsys
Kyra Lengfeld 519f888942 Bluetooth: Mesh: Fix gatt advertiser start in bt_mesh_resume
To signal to the mesh extended advertiser that a proxy advertisement is
started, `bt_mesh_adv_gatt_send()` is called in combination with
setting the `ADV_FLAG_PROXY` flag in adv_ext.c. This ensures that it
won't try to start the advertiser again, which would result in the
controller rejecting it.

Setting this flag outside adv_ext.c is not viable, and as such calling
`bt_mesh_adv_gatt_send()` should also be limited to the advertising
source code.

As it stand now, once we utilize the new commit priority for `h_commit`
calls such a recall of `bt_mesh_adv_gatt_send()` with following
rejection by the controller will happen.

Within the `bt_mesh_resume()` function we can confidently assume the
extended advertiser has already been started. As such we can call
`bt_mesh_adv_gatt_update()` instead of `bt_mesh_adv_gatt_send()`.

This change has been tested with both running relevant bsim tests after
rearranging in which order the settings of the subsystems are loaded via
`h_commit`, as well as a modified light switch sample, adding
`bt_mesh_resume/suspend` calls on buttons.

Signed-off-by: Kyra Lengfeld <kyra.lengfeld@nordicsemi.no>
2024-12-10 16:22:45 +01:00
..
bindesc
bluetooth Bluetooth: Mesh: Fix gatt advertiser start in bt_mesh_resume 2024-12-10 16:22:45 +01:00
canbus
console
dap
debug drivers: coredump: Place API into iterable section 2024-12-03 02:36:38 +01:00
demand_paging demand_paging: eviction: add kconfig CONFIG_EVICTION_TRACKING 2024-11-18 13:16:44 -05:00
dfu dfu: boot: mcuboot: fix boot_is_img_confirmed 2024-12-05 12:29:44 +01:00
disk
dsp
emul
fb drivers: display: Place API into iterable section 2024-12-02 22:05:41 +00:00
fs fs: Fix null pointer exception caused by async fs_unmount 2024-11-07 18:06:58 -06:00
input input: prevent the caller from sleeping in sysworkq 2024-11-29 14:49:43 +01:00
ipc ipc: icbmsg: Reduce block alignment to 32-bits 2024-11-22 08:26:22 -05:00
jwt jwt: remove TinyCrypt usage 2024-11-05 13:44:20 -06:00
llext llext: fix minor Coverity issue #434586 2024-11-27 10:29:23 +01:00
logging logging: frontends: stmesp_demux: Add support for turbo logs 2024-12-10 11:09:55 +01:00
lorawan lorawan: replace booleans by atomic flags 2024-11-16 14:03:36 -05:00
mem_mgmt
mgmt mgmt: mcumgr: transport: smp: Fix smp_transport_clients list init. 2024-12-07 11:02:38 +01:00
modbus
modem drivers: modem: initialize variables to avoid warn 2024-11-19 10:04:58 -05:00
net net: if: Replace asserts by proper runtime checks 2024-12-10 11:09:25 +01:00
pm pm: policy: event: use uptime ticks 2024-12-09 03:55:52 +01:00
portability kernel/sched: Eliminate PRESTART thread state 2024-11-27 10:38:05 -05:00
profiling arch: deprecate _current 2024-11-23 20:12:24 -05:00
random random: random_timer.c Remove __GNUC__ ifdef 2024-11-06 10:11:58 -08:00
retention
rtio
sd
secure_storage
sensing drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
settings settings: introduce priority for commit 2024-10-24 22:04:07 +01:00
shell arch: deprecate _current 2024-11-23 20:12:24 -05:00
sip_svc
stats
storage storage: flash map: Add flash_area_sectors 2024-12-02 09:43:00 +01:00
task_wdt
testsuite tests: CONFIG_TEST_USERSPACE selects CONFIG_USERSPACE 2024-11-18 19:30:50 -05:00
timing
tracing samples: tracing: update sample app for gpio tracing 2024-12-04 14:12:58 -05:00
usb usb-c: pe: set correct sink/src ready state. 2024-12-09 15:11:39 +01:00
zbus
CMakeLists.txt
Kconfig