aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-03-20 09:08:12 (GMT)
committerJouni Malinen <j@w1.fi>2016-03-20 09:08:12 (GMT)
commit2b5488a4e114fe2ae8dfb32b88c5b07473449dbf (patch)
treea167dfc602b546eb94702c8f9ad81cb5c90d03fa
parent29eddc3d8cf824e058cccade7ffacf0cea109697 (diff)
downloadhostap-2b5488a4e114fe2ae8dfb32b88c5b07473449dbf.zip
hostap-2b5488a4e114fe2ae8dfb32b88c5b07473449dbf.tar.gz
hostap-2b5488a4e114fe2ae8dfb32b88c5b07473449dbf.tar.bz2
tests: Return result from WpaSupplicant::global_request() in all cases
The no self.global_iface case was not returning the result from the self.request() case. While this is not really a path that is supposed to be used, make it return the response since it is at least theoretically possible to get here. Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--tests/hwsim/wpasupplicant.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py
index 3978b86..4856d3f 100644
--- a/tests/hwsim/wpasupplicant.py
+++ b/tests/hwsim/wpasupplicant.py
@@ -135,7 +135,7 @@ class WpaSupplicant:
def global_request(self, cmd):
if self.global_iface is None:
- self.request(cmd)
+ return self.request(cmd)
else:
ifname = self.ifname or self.global_iface
logger.debug(ifname + ": CTRL(global): " + cmd)