All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 12/13] dpp: set new_freq when configuring as initiator
@ 2022-03-28 17:28 James Prestwood
  0 siblings, 0 replies; only message in thread
From: James Prestwood @ 2022-03-28 17:28 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 755 bytes --]

This is used to hold the current BSS frequency which will be
used after IWD receives a presence announcement. Since this was
not being set, the logic was always thinking there was a channel
mismatch (0 != current_freq) and attempting to go offchannel to
'0' which resulted in -EINVAL, and ultimately protocol termination.
---
 src/dpp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/dpp.c b/src/dpp.c
index de8e6e14..1719a89d 100644
--- a/src/dpp.c
+++ b/src/dpp.c
@@ -2436,6 +2436,8 @@ static struct l_dbus_message *dpp_start_configurator_common(
 
 		if (!dpp->mcast_support)
 			dpp->state = DPP_STATE_AUTHENTICATING;
+
+		dpp->new_freq = bss->frequency;
 	} else
 		dpp->current_freq = bss->frequency;
 
-- 
2.34.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-28 17:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-28 17:28 [PATCH v4 12/13] dpp: set new_freq when configuring as initiator James Prestwood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.