From 0851a180b9c7c4d0e3d63bdcead6714eea28f121 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 18 Dec 2016 12:22:13 +0200 Subject: [PATCH] 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 --- tests/hwsim/hostapd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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('