Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

fengming-ye
Copy link
Contributor

83c3b04
drivers: wifi: nxp: add support for soft AP disabled case

Add correct macro guard for soft AP only code.

6d2e649
wifi: kconfig: decouple dependency of soft AP

Decouple dependency of CONFIG_NXP_WIFI_SOFTAP_SUPPORT.
Add wifi defconfig to set default kconfig options when soft AP
enabled.

63b544d
drivers: wifi: nxp: add soft AP status for some fields

For embedded supplicant soft AP mode, add beacon period, DTIM period
and BTWT support status fields.

f552084
drivers: wifi: nxp: add wifi statistics support

Add support for wifi overrun count, beacon received and beacon missed
count.
Add support for wifi statistics clear.

@@ -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
Copy link
Collaborator

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

@fengming-ye fengming-ye force-pushed the fix/nxp_shim_driver_fixes branch from 83c3b04 to 447e4a0 Compare February 7, 2025 02:06
MaochenWang1
MaochenWang1 previously approved these changes Feb 7, 2025
#ifdef CONFIG_NXP_WIFI_GET_LOG
static int nxp_wifi_get_detail_stats(int bss_type, wlan_pkt_stats_t *stats)
{
int ret = -1;
Copy link
Member

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.

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;
Copy link
Member

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.

Comment on lines 1267 to 1268
int ret = -1;
wlan_pkt_stats_t *wifi_stats = NULL;
Copy link
Member

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.

Copy link
Contributor Author

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]>
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.

4 participants