]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/wpa_supplicant.c
Set WoWLAN triggers only if driver capabilities are known
authorJouni Malinen <j@w1.fi>
Sat, 11 Oct 2014 09:38:35 +0000 (12:38 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 11 Oct 2014 09:38:35 +0000 (12:38 +0300)
commit6cbdb0c537e6e4dddfef043f3bb7a2f403f2265b
tree912ecc5c2d9db859b6d6e5c10f026bb4ccd1698b
parente635efb407aafd233fe3956a36575aa5a4bfb2d7
Set WoWLAN triggers only if driver capabilities are known

Previously, wpas_set_wowlan_triggers() could have been called in
uninitialized wpa_driver_capa data if the driver interface did not
support reporting of capabilities. While this would not really happen
with a driver wrapper that implements set_wowlan() and as such, would
not cause any difference in practice, it is better to clean this up to
make the code path easier to understand for static analyzers.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/wpa_supplicant.c