]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Fix WSC IE inclusion for P2P disabled case
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 27 Jan 2012 19:09:34 +0000 (21:09 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 27 Jan 2012 19:09:34 +0000 (21:09 +0200)
commitb21ff9cb20657e293db139f86b6d90a202c452c2
treeb48de97f95c7a9096ed695c1ee9570dc6bd977dd
parent552310680c39b35a864262e44f0613a4416d282a
P2P: Fix WSC IE inclusion for P2P disabled case

wpas_wps_in_use() was forcing WPS to be enabled unconditionally if P2P
support was included in the build. This is not really the correct
behavior for the case when P2P has been disabled at runtime. Change the
code here to verify runtime configuration of P2P before forcing WPS to
be enabled. This allows WSC IE to be left out from Probe Request frames
when scanning for APs without P2P or WPS being in use.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/scan.c