]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Remove write-only bssid assignments from rrm test cases
authorJouni Malinen <j@w1.fi>
Sat, 7 Jan 2017 11:34:19 +0000 (13:34 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 7 Jan 2017 11:34:19 +0000 (13:34 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_rrm.py

index f7a88bbfed1fb16f7c49671b30bc67b55e36eef6..33ccff7279b72f8f74871e3d44f4a8a4332eac19 100644 (file)
@@ -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")