From: Jouni Malinen Date: Sat, 7 Jan 2017 11:34:19 +0000 (+0200) Subject: tests: Remove write-only bssid assignments from rrm test cases X-Git-Tag: hostap_2_7~1812 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=317c19c5aa1b26281393cfbcfdde72809938e9b9;p=thirdparty%2Fhostap.git tests: Remove write-only bssid assignments from rrm test cases Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_rrm.py b/tests/hwsim/test_rrm.py index f7a88bbfe..33ccff727 100644 --- a/tests/hwsim/test_rrm.py +++ b/tests/hwsim/test_rrm.py @@ -338,8 +338,6 @@ def test_rrm_neighbor_rep_req_timeout(dev, apdev): "stationary_ap": "1", "lci": lci, "civic": civic } hapd = hostapd.add_ap(apdev[0]['ifname'], params) - bssid = apdev[0]['bssid'] - rrm = int(dev[0].get_driver_status_field("capa.rrm_flags"), 16) if rrm & 0x5 != 0x5 and rrm & 0x10 != 0x10: raise HwsimSkip("Required RRM capabilities are not supported") @@ -361,8 +359,6 @@ def test_rrm_neighbor_rep_req_oom(dev, apdev): "stationary_ap": "1", "lci": lci, "civic": civic } hapd = hostapd.add_ap(apdev[0]['ifname'], params) - bssid = apdev[0]['bssid'] - rrm = int(dev[0].get_driver_status_field("capa.rrm_flags"), 16) if rrm & 0x5 != 0x5 and rrm & 0x10 != 0x10: raise HwsimSkip("Required RRM capabilities are not supported") @@ -390,8 +386,6 @@ def test_rrm_neighbor_rep_req_disconnect(dev, apdev): "stationary_ap": "1", "lci": lci, "civic": civic } hapd = hostapd.add_ap(apdev[0]['ifname'], params) - bssid = apdev[0]['bssid'] - rrm = int(dev[0].get_driver_status_field("capa.rrm_flags"), 16) if rrm & 0x5 != 0x5 and rrm & 0x10 != 0x10: raise HwsimSkip("Required RRM capabilities are not supported") @@ -416,8 +410,6 @@ def test_rrm_neighbor_rep_req_not_supported(dev, apdev): params = { "ssid": "test2", "rrm_beacon_report": "1" } hapd = hostapd.add_ap(apdev[0]['ifname'], params) - bssid = apdev[0]['bssid'] - rrm = int(dev[0].get_driver_status_field("capa.rrm_flags"), 16) if rrm & 0x5 != 0x5 and rrm & 0x10 != 0x10: raise HwsimSkip("Required RRM capabilities are not supported") @@ -433,8 +425,6 @@ def test_rrm_neighbor_rep_req_busy(dev, apdev): "stationary_ap": "1", "lci": lci, "civic": civic } hapd = hostapd.add_ap(apdev[0]['ifname'], params) - bssid = apdev[0]['bssid'] - rrm = int(dev[0].get_driver_status_field("capa.rrm_flags"), 16) if rrm & 0x5 != 0x5 and rrm & 0x10 != 0x10: raise HwsimSkip("Required RRM capabilities are not supported") @@ -921,7 +911,6 @@ def test_rrm_beacon_req_table_vht(dev, apdev): "vht_oper_centr_freq_seg0_idx": "42", "rrm_beacon_report": "1" } hapd = hostapd.add_ap(apdev[0], params) - bssid = apdev[0]['bssid'] params = { "ssid": "test-vht40", "country_code": "FI", @@ -1316,7 +1305,6 @@ def test_rrm_beacon_req_passive_scan_vht(dev, apdev): "vht_oper_centr_freq_seg0_idx": "42", "rrm_beacon_report": "1" } hapd = hostapd.add_ap(apdev[0], params) - bssid = apdev[0]['bssid'] dev[0].scan_for_bss(apdev[0]['bssid'], freq=5180) dev[0].connect("rrm-vht", key_mgmt="NONE", scan_freq="5180") @@ -1371,7 +1359,6 @@ def test_rrm_beacon_req_passive_scan_vht160(dev, apdev): "vht_oper_centr_freq_seg0_idx": "114", "rrm_beacon_report": "1" } hapd = hostapd.add_ap(apdev[0], params) - bssid = apdev[0]['bssid'] dev[0].scan_for_bss(apdev[0]['bssid'], freq=5520) dev[0].connect("rrm-vht", key_mgmt="NONE", scan_freq="5520")