From ee734e9aabc254fd197ac13ad72d1bd344542679 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 27 Dec 2016 21:21:55 +0200 Subject: [PATCH] tests: hostapd global control interface with unknown IFNAME= prefix Signed-off-by: Jouni Malinen --- tests/hwsim/test_hapd_ctrl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/hwsim/test_hapd_ctrl.py b/tests/hwsim/test_hapd_ctrl.py index c90e2c4fc..bfd8689da 100644 --- a/tests/hwsim/test_hapd_ctrl.py +++ b/tests/hwsim/test_hapd_ctrl.py @@ -476,6 +476,9 @@ def test_hapd_ctrl_global(dev, apdev): res = hapd_global.request("IFNAME=" + ifname + " GET version") if "FAIL" in res: raise Exception("Could not get hostapd version for " + ifname + " via global control interface") + res = hapd_global.request("IFNAME=no-such-ifname GET version") + if "FAIL-NO-IFNAME-MATCH" not in res: + raise Exception("Invalid ifname not reported") res = hapd_global.request("INTERFACES") if "FAIL" in res: raise Exception("INTERFACES command failed")