Skip to content

Conversation

rado17
Copy link
Contributor

@rado17 rado17 commented Oct 8, 2025

Use ssids instead of filter_ssids to set the SSID in probe requests to DIRECT-. This is needed for identification by the P2P peers.

sachinthegreen
sachinthegreen previously approved these changes Oct 8, 2025
Copy link

github-actions bot commented Oct 10, 2025

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hostap zephyrproject-rtos/hostap@61182a4 zephyrproject-rtos/hostap#107 zephyrproject-rtos/hostap#107/files

DNM label due to: 1 project with PR revision

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

@github-actions github-actions bot added manifest manifest-hostap DNM (manifest) This PR should not be merged (controlled by action-manifest) labels Oct 10, 2025
@kapbh kapbh force-pushed the p2p_find branch 2 times, most recently from 9ace4b9 to 13e5c91 Compare October 10, 2025 12:16
@rado17 rado17 requested a review from krish2718 October 14, 2025 07:16
@github-actions github-actions bot removed manifest manifest-hostap DNM (manifest) This PR should not be merged (controlled by action-manifest) labels Oct 14, 2025
rado17 and others added 4 commits October 14, 2025 17:46
Use `ssids` instead of `filter_ssids` to set the SSID in probe
requests. `filter_ssids` are to filter scan results to include
only the specified SSIDs.

Signed-off-by: Ravi Dondaputi <[email protected]>
In P2P mode, inform supplicant that the driver is P2P capable.

Signed-off-by: Ravi Dondaputi <[email protected]>
Add supplicant api, mgmt ops and shell command support for
P2P discovery.

Signed-off-by: Kapil Bhatt <[email protected]>
Update hostap revision to add wpa_cli command
response with no print.

Signed-off-by: Ravi Dondaputi <[email protected]>
Signed-off-by: Kapil Bhatt <[email protected]>
@github-actions github-actions bot added manifest-hostap DNM (manifest) This PR should not be merged (controlled by action-manifest) labels Oct 14, 2025
Copy link

params->resp[0] = '\0';
os_strlcpy(cmd_buf, "P2P_PEER FIRST", sizeof(cmd_buf));

while (1) {
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this a while 1? and break only in failure?

return -ENOEXEC;
}

if (resp_buf[0] != '\0') {
Copy link
Contributor

Choose a reason for hiding this comment

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

why is the response not a proper struct? Wi-Fi management should work with any network manager not just wpa_supplicant.

return 0;
}

static void parse_and_print_peer_info(const struct shell *sh, const char *mac_addr,
Copy link
Contributor

Choose a reason for hiding this comment

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

move this to wpa_supplicant and only keep a proper data structure in Wi-Fi mgmt and this way you don't even need the _noprint API.

Comment on lines +1430 to +1433
WIFI_P2P_PEERS,
/** P2P show information about a known peer */
WIFI_P2P_PEER,
};
Copy link
Contributor

Choose a reason for hiding this comment

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

why two separate OPs, if known peer input is broadcast then it shows all peers, no?

Copy link
Contributor

@krish2718 krish2718 left a comment

Choose a reason for hiding this comment

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

Please separate API and Shell in to two commits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Networking area: Wi-Fi Wi-Fi DNM (manifest) This PR should not be merged (controlled by action-manifest) manifest manifest-hostap

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants