tests: Python coding style cleanup (pylint3 bad-whitespace)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
009b54bedd
commit
fab49f6145
102 changed files with 7660 additions and 7645 deletions
|
@ -16,8 +16,8 @@ import hwsim_utils
|
|||
def test_wep_open_auth(dev, apdev):
|
||||
"""WEP Open System authentication"""
|
||||
hapd = hostapd.add_ap(apdev[0],
|
||||
{ "ssid": "wep-open",
|
||||
"wep_key0": '"hello"' })
|
||||
{"ssid": "wep-open",
|
||||
"wep_key0": '"hello"'})
|
||||
dev[0].flush_scan_cache()
|
||||
dev[0].connect("wep-open", key_mgmt="NONE", wep_key0='"hello"',
|
||||
scan_freq="2412")
|
||||
|
@ -35,9 +35,9 @@ def test_wep_open_auth(dev, apdev):
|
|||
def test_wep_shared_key_auth(dev, apdev):
|
||||
"""WEP Shared Key authentication"""
|
||||
hapd = hostapd.add_ap(apdev[0],
|
||||
{ "ssid": "wep-shared-key",
|
||||
"wep_key0": '"hello12345678"',
|
||||
"auth_algs": "2" })
|
||||
{"ssid": "wep-shared-key",
|
||||
"wep_key0": '"hello12345678"',
|
||||
"auth_algs": "2"})
|
||||
dev[0].connect("wep-shared-key", key_mgmt="NONE", auth_alg="SHARED",
|
||||
wep_key0='"hello12345678"',
|
||||
scan_freq="2412")
|
||||
|
@ -50,9 +50,9 @@ def test_wep_shared_key_auth(dev, apdev):
|
|||
def test_wep_shared_key_auth_not_allowed(dev, apdev):
|
||||
"""WEP Shared Key authentication not allowed"""
|
||||
hostapd.add_ap(apdev[0],
|
||||
{ "ssid": "wep-shared-key",
|
||||
"wep_key0": '"hello12345678"',
|
||||
"auth_algs": "1" })
|
||||
{"ssid": "wep-shared-key",
|
||||
"wep_key0": '"hello12345678"',
|
||||
"auth_algs": "1"})
|
||||
dev[0].connect("wep-shared-key", key_mgmt="NONE", auth_alg="SHARED",
|
||||
wep_key0='"hello12345678"',
|
||||
scan_freq="2412", wait_connect=False)
|
||||
|
@ -63,10 +63,10 @@ def test_wep_shared_key_auth_not_allowed(dev, apdev):
|
|||
def test_wep_shared_key_auth_multi_key(dev, apdev):
|
||||
"""WEP Shared Key authentication with multiple keys"""
|
||||
hapd = hostapd.add_ap(apdev[0],
|
||||
{ "ssid": "wep-shared-key",
|
||||
"wep_key0": '"hello12345678"',
|
||||
"wep_key1": '"other12345678"',
|
||||
"auth_algs": "2" })
|
||||
{"ssid": "wep-shared-key",
|
||||
"wep_key0": '"hello12345678"',
|
||||
"wep_key1": '"other12345678"',
|
||||
"auth_algs": "2"})
|
||||
dev[0].connect("wep-shared-key", key_mgmt="NONE", auth_alg="SHARED",
|
||||
wep_key0='"hello12345678"',
|
||||
scan_freq="2412")
|
||||
|
@ -94,17 +94,17 @@ def test_wep_ht_vht(dev, apdev):
|
|||
dev[0].flush_scan_cache()
|
||||
try:
|
||||
hapd = None
|
||||
params = { "ssid": "test-vht40-wep",
|
||||
"country_code": "SE",
|
||||
"hw_mode": "a",
|
||||
"channel": "36",
|
||||
"ieee80211n": "1",
|
||||
"ieee80211ac": "1",
|
||||
"ht_capab": "[HT40+]",
|
||||
"vht_capab": "",
|
||||
"vht_oper_chwidth": "0",
|
||||
"vht_oper_centr_freq_seg0_idx": "0",
|
||||
"wep_key0": '"hello"' }
|
||||
params = {"ssid": "test-vht40-wep",
|
||||
"country_code": "SE",
|
||||
"hw_mode": "a",
|
||||
"channel": "36",
|
||||
"ieee80211n": "1",
|
||||
"ieee80211ac": "1",
|
||||
"ht_capab": "[HT40+]",
|
||||
"vht_capab": "",
|
||||
"vht_oper_chwidth": "0",
|
||||
"vht_oper_centr_freq_seg0_idx": "0",
|
||||
"wep_key0": '"hello"'}
|
||||
hapd = hostapd.add_ap(apdev[0], params)
|
||||
dev[0].connect("test-vht40-wep", scan_freq="5180", key_mgmt="NONE",
|
||||
wep_key0='"hello"')
|
||||
|
@ -127,8 +127,8 @@ def test_wep_ht_vht(dev, apdev):
|
|||
def test_wep_ifdown(dev, apdev):
|
||||
"""AP with WEP and external ifconfig down"""
|
||||
hapd = hostapd.add_ap(apdev[0],
|
||||
{ "ssid": "wep-open",
|
||||
"wep_key0": '"hello"' })
|
||||
{"ssid": "wep-open",
|
||||
"wep_key0": '"hello"'})
|
||||
dev[0].flush_scan_cache()
|
||||
id = dev[0].connect("wep-open", key_mgmt="NONE", wep_key0='"hello"',
|
||||
scan_freq="2412")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue