-
Notifications
You must be signed in to change notification settings - Fork 737
samples: net: Cherry-pick Wi-Fi snippet && fixes #2072
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
samples: net: Cherry-pick Wi-Fi snippet && fixes #2072
Conversation
94d4de4 to
a6d824d
Compare
That is the correct way to do it. The driver in upstream is most likely enabled because it has a dts entry and the sample enables NETWORKING, there is no devicetree processing in sysbuild and because partition manager runs from a sysbuild context, it needs to be in control of wifi enablement (though maybe once PM goes it can be moved to application) |
2b46a8e to
d048063
Compare
samples/net/wifi/Kconfig.sysbuild
Outdated
|
|
||
| config WIFI_NRF70 | ||
| default y if BOARD_NRF7002DK_NRF5340_CPUAPP || \ | ||
| BOARD_NRF7002DK_NRF5340_CPUAPP_NS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need to do this for all Wi-Fi shields, else those combinations will fail :-(.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For shields, do we have a Kconfig symbol we can depend on here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have a Kconfig symbol but it's not working for sysbuild for some reason, so, I have directly updated sample.yaml to get twister green.
6ef1110 to
494a43e
Compare
…N in CMake Evaluate CONFIG_LINKER_ITERABLE_SUBALIGN in CMake instead of in the linker script. It cannot be assumed that a linker generator implementation is pre-processed and therefore Kconfig settings cannot be used in those but must be evaluated in CMake. Signed-off-by: Torsten Rasmussen <[email protected]> (cherry picked from commit 205691e) Signed-off-by: Robert Lubos <[email protected]>
native_posix is now deprecated. Building these samples in both native_sim and native_posix does not improve coverage for these samples but doubles CI time. As anyhow native_posix will be removed all together in 2 releases, let's remove it already for this sample. Signed-off-by: Alberto Escolar Piedras <[email protected]> (cherry picked from commit d9aae58) Signed-off-by: Robert Lubos <[email protected]>
Introduce a snippet for configuring IPv4 over Wi-Fi support in networking samples. Signed-off-by: Robert Lubos <[email protected]> (cherry picked from commit 0fdfad8)
… samples Make use of wifi-ipv4 snippet in several networking samples. Signed-off-by: Robert Lubos <[email protected]> (cherry picked from commit fd2fa54)
… disabled Building the sample with IPv4 only gives the following warning: tcp.c:99:37: warning: array subscript 'struct sockaddr[0]' is partly outside array bounds of 'struct sockaddr_in[1]' [-Warray-bounds] data->tcp.sock = socket(addr->sa_family, SOCK_STREAM, IPPROTO_TCP); This doesn't really seem like a valid one, but to get rid of it workaround by specifying address family explicitly. Signed-off-by: Robert Lubos <[email protected]> (cherry picked from commit 0623b23)
…que' error Refactor the code to comply with: Violation to rule 5.7 (Tag name should be unique) tag: data Rename the structure to avoid excessive refactoring. Signed-off-by: Robert Lubos <[email protected]> (cherry picked from commit 7b854d8)
In case CONFIG_DNS_RESOLVER_MAX_SERVERS is larger than the actual number of DNS servers configured, some server entries may be left uninitialized. The dispatcher needs to take this into account, otherwise it may cause memory corruptions. Signed-off-by: Robert Lubos <[email protected]> (cherry picked from commit 5c6b003)
The sample uses net_config library, so there's no need for the sample to configure unicast IP addresses manually. Signed-off-by: Robert Lubos <[email protected]> (cherry picked from commit 7d91281)
Building the net logger backend with IPv4 only gives the following warning: log_backend_net.c:116:31: warning: array subscript 'struct sockaddr[0]' is partly outside array bounds of 'struct sockaddr_in[1]' [-Warray-bounds] local_addr->sa_family = server_addr.sa_family; hence assign the address family directly to sockaddr_in/6 structs. Signed-off-by: Robert Lubos <[email protected]> (cherry picked from commit c6cc87c)
This reverts commit c8082c5. Wi-Fi support for networking sample was added directly upstream. Signed-off-by: Robert Lubos <[email protected]>
…nRF700x" This reverts commit 13fd467. Wi-Fi support was added directly upstream. Signed-off-by: Robert Lubos <[email protected]>
Add support for nRF91x by providing overlay configuration file. Signed-off-by: Juha Ylinen <[email protected]> Signed-off-by: Robert Lubos <[email protected]> (cherry picked from commit d96769f) (cherry picked from commit 13fd467)
494a43e to
5872446
Compare
Make sure Wi-Fi driver is enabled in networking samples supporting Wi-Fi when sysbuild is used. Signed-off-by: Robert Lubos <[email protected]>
5872446 to
6976765
Compare
manifest-pr-skip