From: Jouni Malinen Date: Sun, 18 Dec 2016 10:22:13 +0000 (+0200) Subject: tests: Verify hostapd mgmt_tx() success X-Git-Tag: hostap_2_7~1998 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0851a180b9c7c4d0e3d63bdcead6714eea28f121;p=thirdparty%2Fhostap.git tests: Verify hostapd mgmt_tx() success Raise an exception if MGMT_TX command to hostapd fails. Previously, such errors were ignored silently. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/hostapd.py b/tests/hwsim/hostapd.py index 51ad02e17..5c583a22a 100644 --- a/tests/hwsim/hostapd.py +++ b/tests/hwsim/hostapd.py @@ -326,7 +326,8 @@ class Hostapd: def mgmt_tx(self, msg): t = (msg['fc'], 0) + mac2tuple(msg['da']) + mac2tuple(msg['sa']) + mac2tuple(msg['bssid']) + (0,) hdr = struct.pack('