Home | History | Annotate | Download | only in server

Lines Matching refs:instance

205         self.stop_dhcp_server(instance=None)
247 """Start a hostapd instance described by conf.
324 instance=None,
330 |instance|). Wait |timeout_seconds| for |process| to die
335 @param instance: string fragment of the command line unique to
336 this instance of the remote process.
343 if instance is not None:
344 search_arg = '-f "^%s.*%s"' % (process, instance)
362 '' if instance is None else ' (instance=%s)' % instance))
365 def kill_hostapd_instance(self, instance):
366 """Kills a hostapd instance.
368 @param instance HostapdInstance object.
373 instance=instance.conf_file,
376 if instance.scenario_name:
377 log_identifier = instance.scenario_name
380 self._total_hostapd_instances, instance.interface)
381 files_to_copy = [(instance.log_file,
383 (instance.stderr_log_file,
520 @param ap_num: int hostapd instance number.
544 @param ap_num int the ap instance to start the server for
633 def stop_dhcp_server(self, instance=None):
636 @param instance string instance to kill.
639 self._kill_process_instance('dnsmasq', instance=instance)
649 instance = self.hostapd_instances[ap_num]
650 return instance.config_dict['channel']
669 """Return subnet of WiFi AP instance.
683 """Get the name of the interface associated with a hostapd instance.
685 @param ap_num: int hostapd instance number.
690 raise error.TestFail('Invalid instance number (%d) with %d '
694 instance = self.hostapd_instances[ap_num]
695 return instance.interface
698 def get_station_interface(self, instance):
701 @param instance: int station instance number.
705 if instance not in range(len(self.station_instances)):
706 raise error.TestFail('Invalid instance number (%d) with %d '
708 (instance, len(self.station_instances)))
710 instance = self.station_instances[instance]
711 return instance.interface
727 """Get name of phy for hostapd instance.
729 @param ap_num int index of hostapd instance.
744 def deconfig_aps(self, instance=None, silent=False):
747 @param instance: int or None. If instance is None, will bring down all
758 if instance is not None:
759 instances = [ self.hostapd_instances.pop(instance) ]
769 for instance in instances:
773 self.remove_interface(instance.interface)
775 self.kill_hostapd_instance(instance)
776 self.release_interface(instance.interface)
779 instance = self.station_instances.pop()
780 if instance.dev_type == 'ibss':
781 self.iw_runner.ibss_leave(instance.interface)
782 elif instance.dev_type == 'managed':
784 instance=instance.interface)
786 self.iw_runner.disconnect_station(instance.interface)
788 (self.cmd_ip, instance.interface))
794 def set_ap_interface_down(self, instance=0):
797 @param instance int router instance number.
801 (self.cmd_ip, self.get_hostapd_interface(instance)))
804 def confirm_pmksa_cache_use(self, instance=0):
805 """Verify that the PMKSA auth was cached on a hostapd instance.
807 @param instance int router instance number.
810 log_file = self.hostapd_instances[instance].log_file
818 def get_ssid(self, instance=None):
820 if instance is None:
821 instance = 0
823 raise error.TestFail('No instance of hostapd specified with '
827 return self.hostapd_instances[instance].ssid
865 def send_management_frame_on_ap(self, frame_type, channel, instance=0):
870 @param instance int indicating which hostapd instance to inject into.
873 hostap_interface = self.hostapd_instances[instance].interface
942 def detect_client_deauth(self, client_mac, instance=0):
947 @param instance int indicating which hostapd instance to query.
950 interface = self.hostapd_instances[instance].interface
952 log_file = self.hostapd_instances[instance].log_file
958 def detect_client_coexistence_report(self, client_mac, instance=0):
963 @param instance int indicating which hostapd instance to query.
970 log_file = self.hostapd_instances[instance].log_file
976 def add_connected_peer(self, instance=0):
977 """Configure a station connected to a running AP instance.
980 configuration for |instance| and generate a wpa_supplicant
981 instance that connects to it. This allows the DUT to interact
983 full wpa_supplicant instance is necessary here (instead of just
987 @param instance int indicating which hostapd instance to connect to.
996 ssid = self.get_ssid(instance)
997 hostap_conf = self.hostapd_instances[instance].config_dict
1001 ssid, frequency, self.local_peer_ip_address(instance))