]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/wpa_supplicant_i.h
Add a test framework for various wpa_supplicant failure cases
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 19 Jan 2015 17:34:00 +0000 (19:34 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 19 Jan 2015 17:34:00 +0000 (19:34 +0200)
commit911942ee646606f44d16b97afed674369fb76c4f
treed7d5bdc6d9ce0d85941979b4d26f141a9d0a6776
parente60be3b3d4afa94fe9bd61b73be0442071bb44b8
Add a test framework for various wpa_supplicant failure cases

For CONFIG_TESTING_OPTIONS=y builds, add a new test parameter than can
be used to trigger various error cases within wpa_supplicant operations
to make it easier to test error path processing. "SET test_failure
<val>" is used to set which operation fails. For now, 0 = no failures
and 1 = scan trigger fails with EBUSY. More operations can be added in
the future to extend coverage.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/ctrl_iface.c
wpa_supplicant/driver_i.h
wpa_supplicant/wpa_supplicant_i.h