summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-01-22 12:39:51 +0100
committerLubomir Rintel <lkundrak@v3.sk>2019-02-05 10:20:29 +0100
commit640164e97980c38bfe17b94102ca3e022d447507 (patch)
treeb5eaba29b85d8be2beed15b1a1d7dcff1440fb1f /tools
parent245c9c93d1b4f17c972f26004f1e94b136946a9b (diff)
downloadNetworkManager-640164e97980c38bfe17b94102ca3e022d447507.tar.gz
clients/test: vary RSN capabilities across APs
This allows us to test if we distinguish WPA1, WPA2 and WPA3 in the client.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/test-networkmanager-service.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/tools/test-networkmanager-service.py b/tools/test-networkmanager-service.py
index 7d9eceb848..711014efce 100755
--- a/tools/test-networkmanager-service.py
+++ b/tools/test-networkmanager-service.py
@@ -861,12 +861,23 @@ class WifiAp(ExportedObj):
ExportedObj.__init__(self, ExportedObj.create_path(WifiAp), ident)
+ NM_AP_FLAGS = getattr(NM, '80211ApSecurityFlags')
if flags is None:
flags = 0x1
if wpaf is None:
- wpaf = 0x1cc
+ wpaf = 0x0
+ wpaf = wpaf | NM_AP_FLAGS.PAIR_TKIP
+ wpaf = wpaf | NM_AP_FLAGS.PAIR_CCMP
+ wpaf = wpaf | NM_AP_FLAGS.GROUP_TKIP
+ wpaf = wpaf | NM_AP_FLAGS.GROUP_CCMP
+ wpaf = wpaf | NM_AP_FLAGS.KEY_MGMT_PSK
if rsnf is None:
- rsnf = 0x1cc
+ rsnf = 0x0
+ rsnf = rsnf | NM_AP_FLAGS.PAIR_TKIP
+ rsnf = rsnf | NM_AP_FLAGS.PAIR_CCMP
+ rsnf = rsnf | NM_AP_FLAGS.GROUP_TKIP
+ rsnf = rsnf | NM_AP_FLAGS.GROUP_CCMP
+ rsnf = rsnf | NM_AP_FLAGS.KEY_MGMT_PSK
if freq is None:
freq = 2412
if bssid is None: