]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: TDLS discovery
authorJouni Malinen <j@w1.fi>
Sat, 15 Mar 2014 22:03:07 +0000 (00:03 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 15 Mar 2014 22:03:07 +0000 (00:03 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_tdls.py

index b3ac5b3a13ee97d320797b114cfb4e4d1abaf5ca..c4d6dbc2f137a30970a572ce685454db44de2b23 100644 (file)
@@ -138,6 +138,14 @@ def teardown_tdls(sta0, sta1, ap):
     tdls_check_ap(sta0, sta1, bssid, addr0, addr1)
     check_connectivity(sta0, sta1, ap)
 
+def test_ap_tdls_discovery(dev, apdev):
+    """WPA2-PSK AP and two stations using TDLS discovery"""
+    start_ap_wpa2_psk(apdev[0]['ifname'])
+    wlantest_setup()
+    connect_2sta_wpa2_psk(dev, apdev[0]['ifname'])
+    dev[0].request("TDLS_DISCOVER " + dev[1].p2p_interface_addr())
+    time.sleep(0.2)
+
 def test_ap_wpa2_tdls(dev, apdev):
     """WPA2-PSK AP and two stations using TDLS"""
     start_ap_wpa2_psk(apdev[0]['ifname'])