]> git.ipfire.org Git - thirdparty/hostap.git/commit
Check supported types in wpas_mac_addr_rand_scan_set()
authorLior David <liord@codeaurora.org>
Mon, 21 Jan 2019 16:28:42 +0000 (18:28 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 23 Jan 2019 22:21:34 +0000 (00:21 +0200)
commit1e591df063250c9fa2068112cecb7ce329e72db7
tree0ab630e002762425c6aa6a3077e746d2d7147c94
parentc85249aa150f0489d81902cc7505d6597ccea22b
Check supported types in wpas_mac_addr_rand_scan_set()

When setting scan with randomized MAC, check the requested scan type
against supported types, to ensure callers will not set an unsupported
type, since this can cause scan/connect failures later. It is better to
do this in wpas_mac_addr_rand_scan_set() instead of control interface
specific code to apply the constraint on all possible interfaces using
this setting.

Signed-off-by: Lior David <liord@codeaurora.org>
wpa_supplicant/ctrl_iface.c
wpa_supplicant/scan.c