P2P: Allow persistent group join retry limit to be configured via D-Bus

Android and ChromeOS use this to limit retries for auto GO join
operation.

Signed-off-by: Matthew Wang <matthewmwang@chromium.org>
This commit is contained in:
Matthew Wang 2022-12-16 11:10:00 -08:00 committed by Jouni Malinen
parent 007a43ac59
commit 093bedc059
8 changed files with 43 additions and 10 deletions

View file

@ -2435,6 +2435,9 @@ static int wpas_select_network_from_last_scan(struct wpa_supplicant *wpa_s,
if (res == 1)
return 0;
if (wpas_p2p_retry_limit_exceeded(wpa_s))
return 0;
if (wpa_s->p2p_in_provisioning ||
wpa_s->show_group_started ||
wpa_s->p2p_in_invitation) {