]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Return result from WpaSupplicant::global_request() in all cases
authorJouni Malinen <j@w1.fi>
Sun, 20 Mar 2016 09:08:12 +0000 (11:08 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 20 Mar 2016 09:08:12 +0000 (11:08 +0200)
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>
tests/hwsim/wpasupplicant.py

index 3978b860fdd107c5b20629b60fa61407b1a55bb0..4856d3f5f1f44a0b919c43ff0dc55d325114d5c7 100644 (file)
@@ -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)