Exemplo n.º 1
0
 def test_is_supported():
     h = hostapd.HostapdGlobal()
     resp = h.request("FST-MANAGER TEST_REQUEST IS_SUPPORTED")
     if not resp.startswith("OK"):
         raise utils.HwsimSkip("FST not supported")
     w = wpasupplicant.WpaSupplicant(global_iface='/tmp/wpas-wlan5')
     resp = w.global_request("FST-MANAGER TEST_REQUEST IS_SUPPORTED")
     if not resp.startswith("OK"):
         raise utils.HwsimSkip("FST not supported")
Exemplo n.º 2
0
 def __init__(self, iface, fst_group, fst_pri, fst_llt=None, rsn=False):
     self.iface = iface
     self.fst_group = fst_group
     self.fst_pri = fst_pri
     self.fst_llt = fst_llt  # None llt means no llt parameter will be set
     self.instance = None    # Hostapd/WpaSupplicant instance
     self.peer_obj = None    # Peer object, must be a FstDevice child object
     self.new_peer_addr = None # Peer MAC address for new session iface
     self.old_peer_addr = None # Peer MAC address for old session iface
     self.role = 'initiator' # Role: initiator/responder
     s = self.grequest("FST-MANAGER TEST_REQUEST IS_SUPPORTED")
     if not s.startswith('OK'):
         raise utils.HwsimSkip("FST not supported")
     self.rsn = rsn
Exemplo n.º 3
0
 def set(self, field, value):
     if "OK" not in self.request("SET " + field + " " + value):
         if "TKIP" in value and (field == "wpa_pairwise" or \
                                 field == "rsn_pairwise"):
             raise utils.HwsimSkip("Cipher TKIP not supported")
         raise Exception("Failed to set hostapd parameter " + field)