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

Add support for BSSID configuration in connect call. #14654

Merged
merged 3 commits into from
Apr 16, 2024

Conversation

rado17
Copy link
Contributor

@rado17 rado17 commented Mar 27, 2024

test_wifi: sdk-nrf-pr-14626

@github-actions github-actions bot added manifest changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. labels Mar 27, 2024
@NordicBuilder
Copy link
Contributor

NordicBuilder commented Mar 27, 2024

The following west manifest projects have been modified in this Pull Request:

Name Old Revision New Revision Diff
zephyr nrfconnect/sdk-zephyr@d4ee5b3 nrfconnect/sdk-zephyr@700870d (main) nrfconnect/[email protected]

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@NordicBuilder
Copy link
Contributor

NordicBuilder commented Mar 27, 2024

Test specification

CI/Jenkins/NRF

  • Integration Platforms

CI/Jenkins/integration

Test Module File based changes Manually selected West overwrite

Detailed information of selected test modules

Note: This message is automatically posted and updated by the CI

@NordicBuilder
Copy link
Contributor

You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds.

Note: This comment is automatically posted by the Documentation Publishing GitHub Action.

@rado17 rado17 force-pushed the connect_getopt_support branch 2 times, most recently from 05bfffa to c99d872 Compare April 5, 2024 16:35
@rado17 rado17 force-pushed the connect_getopt_support branch 2 times, most recently from da5ce97 to 019d5b9 Compare April 8, 2024 10:08
@rado17 rado17 requested a review from krish2718 April 8, 2024 12:16
@rado17 rado17 force-pushed the connect_getopt_support branch from 019d5b9 to 0c99cc2 Compare April 8, 2024 12:54
@rado17 rado17 force-pushed the connect_getopt_support branch 2 times, most recently from 392fccd to 042decc Compare April 15, 2024 12:26
@rado17 rado17 force-pushed the connect_getopt_support branch 2 times, most recently from c8a94db to 287a547 Compare April 16, 2024 08:47
@@ -403,6 +404,25 @@ static int wpas_add_and_config_network(struct wpa_supplicant *wpa_s,
}
}

memcpy((void *)&mac, params->bssid, WIFI_MAC_ADDR_LEN);
if (net_eth_is_addr_broadcast(&mac) ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You move this check in to the below branch (!unspecified)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!unspecified checks for all 0s which is equivalent to not setting the BSSID. That is why I am returning error only for broadcast and multicast case.

@rado17 rado17 force-pushed the connect_getopt_support branch from 287a547 to b57e925 Compare April 16, 2024 09:10
@rado17 rado17 force-pushed the connect_getopt_support branch from b57e925 to e927fdf Compare April 16, 2024 12:49
@rlubos
Copy link
Contributor

rlubos commented Apr 16, 2024

@rado17 Needs a rebase.

@NordicBuilder NordicBuilder removed the DNM label Apr 16, 2024
rado17 added 3 commits April 16, 2024 18:23
Pull in changes done to support getopt for Wi-Fi connect command
as well as additional support to configure BSSID in connect command.

Signed-off-by: Ravi Dondaputi <[email protected]>
Support BSSID configuration while setting up the network information
as part of the connect command processing.

Signed-off-by: Ravi Dondaputi <[email protected]>
Calls for Wi-Fi related operations from shell are quite
deep (around 7 levels) which eats up the available stack
and causes stack overflow issues. Increase the SHELL_STACK_SIZE
to account for this.

Signed-off-by: Ravi Dondaputi <[email protected]>
@rado17 rado17 force-pushed the connect_getopt_support branch from e927fdf to 263c41a Compare April 16, 2024 12:53
@rlubos rlubos merged commit 77cad23 into nrfconnect:main Apr 16, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. manifest manifest-zephyr
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants