tests: Use hostapd.add_ap() instead of HostapdGlobal() (PSK)
This makes ap_cli_order more usable for testing with remote hosts. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
This commit is contained in:
parent
a3d3525442
commit
84f3f3a5e6
1 changed files with 1 additions and 7 deletions
|
@ -2125,14 +2125,8 @@ def test_rsn_ie_proto_psk_sta(dev, apdev):
|
||||||
def test_ap_cli_order(dev, apdev):
|
def test_ap_cli_order(dev, apdev):
|
||||||
ssid = "test-rsn-setup"
|
ssid = "test-rsn-setup"
|
||||||
passphrase = 'zzzzzzzz'
|
passphrase = 'zzzzzzzz'
|
||||||
ifname = apdev[0]['ifname']
|
|
||||||
|
|
||||||
hapd_global = hostapd.HostapdGlobal()
|
hapd = hostapd.add_ap(apdev[0], {}, no_enable=True)
|
||||||
hapd_global.remove(ifname)
|
|
||||||
hapd_global.add(ifname)
|
|
||||||
|
|
||||||
hapd = hostapd.Hostapd(ifname)
|
|
||||||
hapd.set_defaults()
|
|
||||||
hapd.set('ssid', ssid)
|
hapd.set('ssid', ssid)
|
||||||
hapd.set('wpa_passphrase', passphrase)
|
hapd.set('wpa_passphrase', passphrase)
|
||||||
hapd.set('rsn_pairwise', 'CCMP')
|
hapd.set('rsn_pairwise', 'CCMP')
|
||||||
|
|
Loading…
Reference in a new issue