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>
This commit is contained in:
parent
29eddc3d8c
commit
2b5488a4e1
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ class WpaSupplicant:
|
||||||
|
|
||||||
def global_request(self, cmd):
|
def global_request(self, cmd):
|
||||||
if self.global_iface is None:
|
if self.global_iface is None:
|
||||||
self.request(cmd)
|
return self.request(cmd)
|
||||||
else:
|
else:
|
||||||
ifname = self.ifname or self.global_iface
|
ifname = self.ifname or self.global_iface
|
||||||
logger.debug(ifname + ": CTRL(global): " + cmd)
|
logger.debug(ifname + ": CTRL(global): " + cmd)
|
||||||
|
|
Loading…
Reference in a new issue