dpp: set new_freq when configuring as initiator

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.
This commit is contained in:
James Prestwood 2022-03-28 10:28:41 -07:00 committed by Denis Kenzior
parent ad1e5252f3
commit dbca7fcc02
1 changed files with 2 additions and 0 deletions

View File

@ -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;