-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Fix/nxp shim driver fixes #85285
base: main
Are you sure you want to change the base?
Fix/nxp shim driver fixes #85285
Conversation
@@ -63,7 +62,7 @@ CONFIG_NET_IPV6_FRAGMENT_MAX_COUNT=3 | |||
CONFIG_NET_IPV6_FRAGMENT_MAX_PKT=8 | |||
CONFIG_NET_IPV6_FRAGMENT_TIMEOUT=3 | |||
CONFIG_NET_MAX_CONN=10 | |||
CONFIG_NET_DHCPV4_SERVER_ICMP_PROBE_TIMEOUT=100 | |||
CONFIG_NET_MAX_CONN=10 |
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.
duplicate CONFIG_NET_MAX_CONN
83c3b04
to
447e4a0
Compare
drivers/wifi/nxp/nxp_wifi_drv.c
Outdated
#ifdef CONFIG_NXP_WIFI_GET_LOG | ||
static int nxp_wifi_get_detail_stats(int bss_type, wlan_pkt_stats_t *stats) | ||
{ | ||
int ret = -1; |
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.
If you set here int ret = -ENODEV;
then the last else branch can be omitted. Now setting the ret to -1 is useless as the else branch sets the value anyway.
drivers/wifi/nxp/nxp_wifi_drv.c
Outdated
static int nxp_wifi_stats(const struct device *dev, struct net_stats_wifi *stats) | ||
{ | ||
struct interface *if_handle = (struct interface *)dev->data; | ||
#ifdef CONFIG_NXP_WIFI_GET_LOG | ||
int ret = -1; |
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.
No need to set the value to -1 as you assign value to it almost immediately. Same thing with wifi_stats
which gets its value set also few lines below.
drivers/wifi/nxp/nxp_wifi_drv.c
Outdated
int ret = -1; | ||
wlan_pkt_stats_t *wifi_stats = NULL; |
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.
Same here, both of these get their value set few lines below so no need to do it 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.
updated as all above comments
Add support for wifi overrun count, beacon received and beacon missed count. Add support for wifi statistics clear. Signed-off-by: Fengming Ye <[email protected]>
For embedded supplicant soft AP mode, add beacon period, DTIM period and BTWT support status fields. Signed-off-by: Fengming Ye <[email protected]>
Decouple dependency of CONFIG_NXP_WIFI_SOFTAP_SUPPORT. Add wifi defconfig to set default kconfig options when soft AP enabled. Signed-off-by: Fengming Ye <[email protected]>
Add correct macro guard for soft AP only code. Signed-off-by: Fengming Ye <[email protected]>
447e4a0
to
5ed4f9a
Compare
83c3b04
drivers: wifi: nxp: add support for soft AP disabled case
6d2e649
wifi: kconfig: decouple dependency of soft AP
63b544d
drivers: wifi: nxp: add soft AP status for some fields
f552084
drivers: wifi: nxp: add wifi statistics support