path: root/tests
diff options
authorJouni Malinen <jouni@qca.qualcomm.com>2016-10-27 18:37:19 (GMT)
committerJouni Malinen <j@w1.fi>2016-10-27 18:37:19 (GMT)
commit09b306b1e5c444baa8f86997fce16e7e61728db2 (patch)
tree8d562bd8dc6afa3a7454035b9034dc5eca071ce7 /tests
parentb64fa750b69219acb93f8eda4eee3cc8b77081a5 (diff)
tests: Avoid failures in ap_vlan_without_station with new kernel
The kernel commit 'mac80211: filter multicast data packets on AP / AP_VLAN' started filtering out the test frame used in ap_vlan_without_station and that resulted in false failures. For now, ignore that "error" case to avoid claiming failures when the kernel is doing what it is expected to do. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'tests')
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/hwsim/test_ap_vlan.py b/tests/hwsim/test_ap_vlan.py
index 21ddbfb..4e20775 100644
--- a/tests/hwsim/test_ap_vlan.py
+++ b/tests/hwsim/test_ap_vlan.py
@@ -492,7 +492,10 @@ def test_ap_vlan_without_station(dev, apdev, p):
if out is not None:
lines = out.splitlines()
if len(lines) < 1:
- raise Exception("first frame not observed")
+ # Newer kernel versions filter out frames when there are no
+ # authorized stations on an AP/AP_VLAN interface, so do not
+ # trigger an error here.
+ logger.info("first frame not observed")
state = 1
for l in lines:
is_protected = int(l, 16)