mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-17 17:43:06 -05:00
tests: Speed up IBSS test using single channel scan on SELECT_NETWORK
This removes unnecessary waits and adds test coverage for SELECT_NETWORK freq parameter. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
204c9ac4ee
commit
ca4fd18290
@ -13,7 +13,7 @@ import hwsim_utils
|
||||
|
||||
def connect_ibss_cmd(dev, id):
|
||||
dev.dump_monitor()
|
||||
dev.select_network(id)
|
||||
dev.select_network(id, freq="2412")
|
||||
|
||||
def wait_ibss_connection(dev):
|
||||
logger.info(dev.ifname + " waiting for IBSS start/join to complete")
|
||||
|
@ -231,8 +231,12 @@ class WpaSupplicant:
|
||||
|
||||
return id;
|
||||
|
||||
def select_network(self, id):
|
||||
id = self.request("SELECT_NETWORK " + str(id))
|
||||
def select_network(self, id, freq=None):
|
||||
if freq:
|
||||
extra = " freq=" + freq
|
||||
else:
|
||||
extra = ""
|
||||
id = self.request("SELECT_NETWORK " + str(id) + extra)
|
||||
if "FAIL" in id:
|
||||
raise Exception("SELECT_NETWORK failed")
|
||||
return None
|
||||
|
Loading…
x
Reference in New Issue
Block a user