Skip to content

Conversation

krish2718
Copy link
Contributor

Defaults cannot be overidden (even with configdefault extension), they only work if the original symbol is defined after the override e.g., "drivers and then subsys/net" but for kernel symbols,the default value overrides don't work due "kernel and drivers" order, the kernel defines the original symbol with the default and then it cannot be overridden.

Move the kernel symbol override to the original definition to make it affect. Else any sample that uses nRF70 but doesn't enable WPA supplicant ends up with 1024 and crashes.

Defaults cannot be overidden (even with configdefault extension), they
only work if the original symbol is defined after the override e.g.,
"drivers and then subsys/net" but for kernel symbols,the default value
overrides don't work due "kernel and drivers" order, the kernel defines
the original symbol with the default and then it cannot be overridden.

Move the kernel symbol override to the original definition to make it
affect. Else any sample that uses nRF70 but doesn't enable WPA
supplicant ends up with 1024 and crashes.

Signed-off-by: Chaitanya Tata <[email protected]>
Copy link

@danieldegrasse danieldegrasse added this to the v4.2.0 milestone Jul 2, 2025
@danieldegrasse danieldegrasse merged commit 4bd1d39 into zephyrproject-rtos:main Jul 2, 2025
33 checks passed
@JordanYates
Copy link
Contributor

This is linked to #88140 (where the solution in this PR is rejected by Anas).
Alternate solution is proposed in #88157

@krish2718 krish2718 deleted the fix_nrf70_kernel_overrides branch July 2, 2025 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants