]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Fix the issue in setting optimized listen channel
authorSunil Ravi <sunilravi@google.com>
Wed, 7 Sep 2022 20:23:05 +0000 (20:23 +0000)
committerJouni Malinen <j@w1.fi>
Thu, 22 Sep 2022 15:35:53 +0000 (18:35 +0300)
commitee7eec5185a074b27e1c080cd643dd9bd7697ab6
treeb62d27a4f3ad0ce26cbcaeb70e8d3cb171ea5d51
parent01944c0957ba20ee1790eb2473cc5970f8b1f17e
P2P: Fix the issue in setting optimized listen channel

wpas_p2p_optimize_listen_channel() checks for the state and current ssid
of the interface calling this function. This check prevents the function
from setting the optimized listen channel. Since the listen channel is
stored in global P2P configuration data, do not check the state and
current interface of the caller.

Signed-off-by: Sunil Ravi <sunilravi@google.com>
wpa_supplicant/p2p_supplicant.c