Store the SID in the advertising set, and let it be possible
to get it again via bt_le_ext_adv_get_info.
The SID may be used by higher layers to shared information
about the advertising set.
Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
Instead of always using SID=0 for advertising sets (which can be
tricky if there are multiple advertising sets using the same SID
and address), the SID will be incremented and wrap around when
reaching the max to reduce the risk of 2 or more sets having the
same SID.
Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
Remove the default selection of SETTINGS_TFM_ITS when
TFM_PARTITION_INTERNAL_TRUSTED_STORAGE is enabled
which caused this backend to be built when it was
not intended.
Signed-off-by: Sean Kyer <sean.actor@gmail.com>
nRF92 series is not supported in the IEEE 802.15.4 stack yet,
so remove it from the board for now.
Signed-off-by: Bernt Johan Damslora <bernt.damslora@nordicsemi.no>
Add Doxygen tags giving users an indication that some API will only be
available if the corresponding Kconfig option is enabled.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
In function `parse_read_by_uuid()`, the response length is not checked
before parsing the response PDU. There is a potential issue that the
`len` will be underflowed if the `len` is less than the size of
`struct bt_att_data`.
Check the length before parsing the response PDU. If the length is less
then the size of `struct bt_att_data`, notify the upper layer with the
error `BT_ATT_ERR_INVALID_PDU` and stop the parsing.
Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
The nRF54L1 has 1012 KB RRAM and not 1022 KB as
it was set before. This adjusts the NS target
RRAM size for the relevant Ezurio boards
which use the nRF54L10.
Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
The nRF54L1 has 1012 KB RRAM and not 1022 KB as
it was set before. This adjusts the NS target
with the correct size.
Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
`#ifdef` will always evaluate to true when used on string Kconfig options.
Therefore username and password is set to "" if unset in Kconfig which is
not an issue.
Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
GitHub, in a moment of infinite wisdom, decided to change the default
tab from eight to four characters.
According to the GitHub announcement the problem that the change
addressed is that "many users are unaware that tab size can be adjusted
in their settings". As a result now users with this so called "improved"
setting sees a different indentation from all other users.
Help GitHub in their awareness mission, by making the users aware that
tab size can (or rather, has to) be adjusted in their settings to the
previous default, by mentioning it in the contribution guideline.
Call it out in the quick style guide too since it's not the default
anymore.
Link: https://github.blog/changelog/2025-08-07-default-tab-size-changed-from-eight-to-four/
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Add a guard clause in flash_esp32_read() to return 0 when the
requested length is zero. This avoids unnecessary operations
and aligns with expected flash API behavior, where reading
zero bytes is treated as a no-op.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
At this moment, DMA for SPI 3-wire half-duplex operation is not supported
by the pio driver. A check was implemented there to prevent user from
enabling DMA, but wasn't bypassed when CONFIG_SPI_RPI_PICO_PIO_DMA is
not enabled at all, under which the `dma_config` structure isn't defined
at all.
Fixed#94897.
Signed-off-by: Terry Geng <terry@terriex.com>
If we cannot initialize settings subsystem, it does not make
much sense to do calls into it. This leads to uninitialized
variables being printed and generally makes it hard to tell whether
or not the sample runs with the given config.
Signed-off-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
Fix an issue where 1 vector is being requested when MSI-X is
enabled. The previous logic always assumed the PCIE device has
only fixed or single MSI when we are requesting 1 vector, which
is not entirely correct. So if there is no vector allocated
already, try to allocate one.
Fixes#93319
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
arch_pcie_msi_vectors_allocate() has a return type of uint8_t.
One of the error path returns -1 which would result in 255
being returned. So fix that by returning 0 instead, as there is
no vector being allocated anyway.
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
qemu_x86_64 has NVME disk as overlay so we need to enable
kconfig CONFIG_NVME or else it would fail to compile.
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
- Move sensing documentation in the "OS Services" group
and clean up group declarations
- Add missing documentation for the Sensing Subsystem API and complete
existing docs when it was too terse
- Other grammar/cosmetic improvements
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
A lot of users seem to be confused by this sample when they try to do
west debug. This is because Zephyr currently does not support flashing
all the cores from a sysbuild automatically when doing a west debug
command. So west flash needs to be done prior to a west debug command.
The README previously actually said the step by step instructions are to
do the build, then immediately west debug, which would cause faulting
and crashing, so change the instructions goal to be a flash, and put a
note about needing to flash before debugging.
Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
Silicon Labs controller with integrated radio each rely on a specific
binary blob (RAIL library) for using the EFR32 radio subsystem.
This commit adds support for the Silicon Labs BGM240SA22VNA SoC.
Signed-off-by: Ephraim Westenberger <ephraim.westenberger@gmail.com>
Duty value in the driver is calculated from timer cycles, which
can introduce precision loss when converting from pwm_set() to
pwm_set_cycles(). To avoid truncating values with a fractional
part ≥ 0.5 and further drifting the effective duty, round the
computed duty to the nearest integer.
Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
- add some missing docs
- make sure API guarded by Kconfig is showing up in the docs
- show EC Host Command docs in the Device Management group
- re-arrange groups for backends and simulator API
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Make sure that subsystems such as MCUmgr, EC Host Command, etc. are
grouped under a Device Management group instead of showing up as
top-level "OS Services".
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Currently, if a SV is tracked, we try to store:
flags & BIT(3) -> 0b1000 -> least significant bit 0 is stored.
Same is valid for the is_corrected field.
Use double negation to treat any non-zero value as true.
Signed-off-by: Philémon Jaermann <p.jaermann@gmail.com>