aboutsummaryrefslogtreecommitdiffstats
path: root/wpaspy
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2014-03-12 09:42:59 (GMT)
committerJouni Malinen <j@w1.fi>2014-03-12 09:42:59 (GMT)
commitc2149b08dac100a22bb36f0e3d15a113aad0451f (patch)
tree7a0a24d95abe37a93d1336ad31cf1f5db4fc2b63 /wpaspy
parent39b420f7b12b152f879d1bb8a5267b9a838e04dc (diff)
downloadhostap-c2149b08dac100a22bb36f0e3d15a113aad0451f.zip
hostap-c2149b08dac100a22bb36f0e3d15a113aad0451f.tar.gz
hostap-c2149b08dac100a22bb36f0e3d15a113aad0451f.tar.bz2
tests: Wait longer for hostapd REMOVE command to complete
Some kernel debugging options (especially CONFIG_DEBUG_KOBJECT_RELEASE=y) can add significant blocking time to interface removal with NL80211_CMD_DEL_INTERFACE and SIOCGIFBR(BRCTL_DEL_BRIDGE) block for 1-8 seconds. This could result in the VLAN test cases failing due to a wpaspy timeout on the REMOVE command even though the issue was only in the kernel debugging code making the operations significantly slower. Work around this by using a longer timeout for that control interface command to allow this type of debug kernel to be used. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpaspy')
-rw-r--r--wpaspy/wpaspy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpaspy/wpaspy.py b/wpaspy/wpaspy.py
index 24c3719..9494305 100644
--- a/wpaspy/wpaspy.py
+++ b/wpaspy/wpaspy.py
@@ -45,9 +45,9 @@ class Ctrl:
os.unlink(self.local)
self.started = False
- def request(self, cmd):
+ def request(self, cmd, timeout=10):
self.s.send(cmd)
- [r, w, e] = select.select([self.s], [], [], 10)
+ [r, w, e] = select.select([self.s], [], [], timeout)
if r:
return self.s.recv(4096)
raise Exception("Timeout on waiting response")