-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
drivers: wifi: add nxp wifi shim driver support #69541
drivers: wifi: add nxp wifi shim driver support #69541
Conversation
fb7d802
to
8fd4542
Compare
8fd4542
to
5e8995b
Compare
e338bdb
to
e02717d
Compare
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.
General comment here- we should add some form of support to a board in tree (I'd suggest the RT1170 EVKB or RT1060 EVKB) to move this PR forwards. I'm also aware we will need to add HAL side support for this driver in order to enable it to merge, so I am going to mark this PR as DMN until that point
drivers/wifi/nxp/Kconfig.nxp
Outdated
config NET_SOCKETS_POLL_MAX | ||
default 8 | ||
|
||
config ZEPHYR |
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 need to drop this Kconfig, and rely on __ZEPHYR__
in modules that need to identify they are compiling targeting Zephyr
default y | ||
|
||
config NXP_WIFI_CUSTOM | ||
bool "Custom NXP Wi-Fi part" |
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.
Can we add a help string here expanding on when this feature would be used?
drivers/wifi/nxp/Kconfig.nxp
Outdated
endchoice | ||
|
||
config NXP_WIFI_SHELL | ||
bool "nxpWiFi shell" |
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.
bool "nxpWiFi shell" | |
bool "NXP WiFi shell" |
drivers/wifi/nxp/Kconfig.nxp
Outdated
|
||
config NXP_WIFI_SHELL | ||
bool "nxpWiFi shell" | ||
default n |
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.
default n
is redundant, please remove
drivers/wifi/nxp/Kconfig.nxp
Outdated
default n | ||
depends on SHELL | ||
help | ||
Enable nxpWiFi shell |
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.
Please add more help text here specifying what will be added when the user enables CONFIG_NXP_WIFI_SHELL
drivers/wifi/nxp/Kconfig.nxp
Outdated
bool | ||
prompt "Debug build" | ||
depends on WIFI_LOG_LEVEL_DBG | ||
default n |
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.
default n |
drivers/wifi/nxp/Kconfig.nxp
Outdated
bool | ||
prompt "OS debug" | ||
depends on NXP_WIFI_DEBUG_BUILD | ||
default n |
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.
default n |
drivers/wifi/nxp/Kconfig.nxp
Outdated
bool | ||
prompt "NET debug" | ||
depends on NXP_WIFI_DEBUG_BUILD | ||
default n |
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.
default n |
drivers/wifi/nxp/nxp_wifi_drv.c
Outdated
} | ||
#if (CONFIG_WIFI_MGMT_SCAN_SSID_FILT_MAX > 0) | ||
if (params->ssids[0]) { | ||
strcpy(wlan_scan_params_v2.ssid[0], params->ssids[0]); |
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.
This is a general comment, but can we use strncpy
to avoid potential issues if one of these strings is not null terminated?
e4c7e9d
to
50460b4
Compare
Add nxp wifi devicetree yaml file. Signed-off-by: Fengming Ye <[email protected]>
…yr/zephyr into feature/nxp_wifi_driver
No description provided.