def __init__(self, logpath): self.logger = logging.getLogger() self.fst_logpath = logpath self.cfgs_to_run = [] self.hapd_fst_global = '/var/run/hostapd-fst-global' self.wsup_fst_global = '/tmp/fststa' self.nof_aps = 0 self.nof_stas = 0 self.reg_ctrl = fst_test_common.HapdRegCtrl() self.test_is_supported()
def __init__(self, iface, ssid, mode, chan, fst_group, fst_pri, fst_llt=None, rsn=False): """If fst_group is empty, then FST parameters will not be set If fst_llt is empty, the parameter will not be set and the default value is expected to be configured.""" self.ssid = ssid self.mode = mode self.chan = chan self.reg_ctrl = fst_test_common.HapdRegCtrl() self.reg_ctrl.add_ap(iface, self.chan) self.global_instance = hostapd.HostapdGlobal() FstDevice.__init__(self, iface, fst_group, fst_pri, fst_llt, rsn)