]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/wpa_supplicant_i.h
wpa_supplicant: Schedule PNO on completion of ongoing sched_scan
authorRaja Mani <rmani@qti.qualcomm.com>
Wed, 22 Jan 2014 14:15:23 +0000 (19:45 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 22 Jan 2014 17:41:45 +0000 (19:41 +0200)
commitcf70d2981df1be7005fb90c2532e737ab39bc119
tree551b05f062d56ae0aeb8d9839bb600cb8c35b926
parent080cc445df897592f493d33224f6c3ec01b4a821
wpa_supplicant: Schedule PNO on completion of ongoing sched_scan

When start PNO request comes from control interface, wpa_supplicant
should wait until ongoing sched_scan (triggered by wpa_supplicant)
gets cancelled. Issuing cancel sched_scan and start PNO scan
one after another from pno_start() would lead wpa_supplicant to clear
wps->sched_scanning flag while getting sched_scan stopped event
from driver for cancel sched_scan request. In fact, PNO scan will
be in progress in driver and wpa_s->sched_scanning will not be set
in such cases.

In addition to this change, RSSI threshold limit is passed as part of
start sched_scan request. This was previously set only in pno_start(),
but the same parameter should be available for generic sched_scan calls
as well and this can now be reached through the new PNO start sequence.

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