diff mbox series

[v3,1/9] dpp: remove scan_periodic_stop calls

Message ID 20231031184750.722404-2-prestwoj@gmail.com (mailing list archive)
State Accepted, archived
Headers show
Series DPP PKEX Changes | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-alpine-ci-fetch success Fetch PR
prestwoj/iwd-ci-fetch success Fetch PR
prestwoj/iwd-ci-gitlint success GitLint
prestwoj/iwd-alpine-ci-makedistcheck success Make Distcheck
prestwoj/iwd-ci-makedistcheck success Make Distcheck
prestwoj/iwd-alpine-ci-build success Build - Configure
prestwoj/iwd-ci-build success Build - Configure
prestwoj/iwd-alpine-ci-makecheckvalgrind success Make Check w/Valgrind
prestwoj/iwd-alpine-ci-makecheck success Make Check
prestwoj/iwd-ci-clang success clang PASS
prestwoj/iwd-ci-makecheckvalgrind success Make Check w/Valgrind
prestwoj/iwd-ci-makecheck success Make Check
prestwoj/iwd-alpine-ci-incremental_build success Incremental Build with patches
prestwoj/iwd-ci-incremental_build success Incremental Build with patches
prestwoj/iwd-ci-testrunner success test-runner PASS

Commit Message

James Prestwood Oct. 31, 2023, 6:47 p.m. UTC
Stopping periodic scans and not restarting them prevents autoconnect
from working again if DPP (or the post-DPP connect) fails. Since
the DPP offchannel work is at a higher priority than scanning (and
since new offchannels are queue'd before canceling) there is no risk
of a scan happening during DPP so its safe to leave periodic scans
running.
---
 src/dpp.c | 4 ----
 1 file changed, 4 deletions(-)

Comments

Denis Kenzior Nov. 3, 2023, 1:40 a.m. UTC | #1
Hi James,

On 10/31/23 13:47, James Prestwood wrote:
> Stopping periodic scans and not restarting them prevents autoconnect
> from working again if DPP (or the post-DPP connect) fails. Since
> the DPP offchannel work is at a higher priority than scanning (and
> since new offchannels are queue'd before canceling) there is no risk
> of a scan happening during DPP so its safe to leave periodic scans
> running.
> ---
>   src/dpp.c | 4 ----
>   1 file changed, 4 deletions(-)
> 

Patches 1 - 5 applied, thanks.

Regards,
-Denis
diff mbox series

Patch

diff --git a/src/dpp.c b/src/dpp.c
index 638d65e0..cfdfaa38 100644
--- a/src/dpp.c
+++ b/src/dpp.c
@@ -2553,8 +2553,6 @@  static struct l_dbus_message *dpp_dbus_start_enrollee(struct l_dbus *dbus,
 	 */
 	dpp_start_presence(dpp, &freq, 1);
 
-	scan_periodic_stop(dpp->wdev_id);
-
 	dpp_property_changed_notify(dpp);
 
 	return NULL;
@@ -2685,8 +2683,6 @@  static struct l_dbus_message *dpp_start_configurator_common(
 						network_get_ssid(network),
 						hs->akm_suite);
 
-	scan_periodic_stop(dpp->wdev_id);
-
 	dpp_property_changed_notify(dpp);
 
 	l_debug("DPP Start Configurator: %s", dpp->uri);