3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 18:59:22 +01:00

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

View File

@ -2436,6 +2436,8 @@ static struct l_dbus_message *dpp_start_configurator_common(
if (!dpp->mcast_support) if (!dpp->mcast_support)
dpp->state = DPP_STATE_AUTHENTICATING; dpp->state = DPP_STATE_AUTHENTICATING;
dpp->new_freq = bss->frequency;
} else } else
dpp->current_freq = bss->frequency; dpp->current_freq = bss->frequency;