tests: Use ignore_old_scan_res with some more WPS tests

The scan results from old test cases showing different SSID on the AP
can result in false failures, so avoid those by ignoring old scan
results from cfg80211.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2013-04-02 18:19:32 +03:00 committed by Jouni Malinen
parent 9ccd916504
commit 8e80dd5b0c

View file

@ -37,6 +37,7 @@ def ap_wps_params(ssid):
def test_nfc_wps_password_token_sta(dev, apdev): def test_nfc_wps_password_token_sta(dev, apdev):
"""NFC tag with password token on the station/Enrollee""" """NFC tag with password token on the station/Enrollee"""
dev[0].request("SET ignore_old_scan_res 1")
ssid = "test-wps-nfc-pw-token-conf" ssid = "test-wps-nfc-pw-token-conf"
params = ap_wps_params(ssid) params = ap_wps_params(ssid)
hostapd.add_ap(apdev[0]['ifname'], params) hostapd.add_ap(apdev[0]['ifname'], params)
@ -78,6 +79,7 @@ def test_nfc_wps_config_token(dev, apdev):
def test_nfc_wps_password_token_sta_init(dev, apdev): def test_nfc_wps_password_token_sta_init(dev, apdev):
"""Initial AP configuration with first WPS NFC Enrollee""" """Initial AP configuration with first WPS NFC Enrollee"""
dev[0].request("SET ignore_old_scan_res 1")
ssid = "test-wps-nfc-pw-token-init" ssid = "test-wps-nfc-pw-token-init"
hostapd.add_ap(apdev[0]['ifname'], hostapd.add_ap(apdev[0]['ifname'],
{ "ssid": ssid, "eap_server": "1", "wps_state": "1" }) { "ssid": ssid, "eap_server": "1", "wps_state": "1" })