Lines Matching refs:interface
15 from autotest_lib.client.common_lib.cros.network import interface
25 ['ssid', 'interface', 'dev_type'])
28 'interface', 'config_dict',
144 @return string IP of WiFi interface.
259 # Figure out the correct interface.
261 interface = self.get_wlanif(configuration.frequency, 'managed')
263 interface = self.get_wlanif(
265 phy_name = self.iw_runner.get_interface(interface).phy
267 conf_file = self.HOSTAPD_CONF_FILE_PATTERN % interface
268 log_file = self.HOSTAPD_LOG_FILE_PATTERN % interface
269 stderr_log_file = self.HOSTAPD_STDERR_LOG_FILE_PATTERN % interface
270 control_interface = self.HOSTAPD_CONTROL_INTERFACE_PATTERN % interface
272 interface, control_interface,
283 interface, phy_name, configuration.channel)
293 interface,
303 'grep "Setup of interface done" %s' % log_file,
311 'grep "Interface initialization failed" %s' % log_file,
315 'interface.')
393 self._total_hostapd_instances, instance.interface)
450 interface = self.hostapd_instances[-1].interface
451 self.iw_runner.set_tx_power(interface, 'auto')
452 self.set_beacon_footer(interface, configuration.beacon_footer)
453 self.start_local_server(interface)
468 interface = self.get_wlanif(config.frequency, 'ibss')
472 self.router.run('%s link set %s up' % (self.cmd_ip, interface))
473 self.iw_runner.ibss_join(interface, ssid, config.frequency)
475 self.start_local_server(interface)
476 # Remember that this interface is up.
478 StationInstance(ssid=ssid, interface=interface,
483 """Get the local server address for an interface.
509 """Get the MAC address of the peer interface.
511 @return string MAC address of the peer interface.
514 iface = interface.Interface(self.station_instances[0].interface,
537 interface = self.local_servers[ap_num]['interface'];
545 self.start_local_server(interface,
551 interface,
554 """Start a local server on an interface.
556 @param interface string (e.g. wlan0)
584 params['interface'] = interface
588 interface))
596 (self.cmd_ip, interface))
600 (self.cmd_ip, interface))
601 self.start_dhcp_server(interface)
610 self.stop_dhcp_server(server['interface'])
618 def start_dhcp_server(self, interface):
619 """Start a dhcp server on an interface.
621 @param interface string (e.g. wlan0)
625 if server['interface'] == interface:
630 'to match interface: %r' % interface)
632 dhcpd_conf_file = self.dhcpd_conf % interface
639 'interface=%s' % params['interface'],
696 """Get the name of the interface associated with a hostapd instance.
699 @return string interface name (e.g. 'managed0').
708 return instance.interface
712 """Get the name of the interface associated with a station.
715 @return string interface name (e.g. 'managed0').
724 return instance.interface
735 ap_interface = interface.Interface(interface_name, self.host)
744 managed interface.
747 interface = self.iw_runner.get_interface(
749 return interface.phy
774 if server['interface'] == instances[0].interface:
784 # Deconfigure without notifying DUT. Remove the interface
786 self.remove_interface(instance.interface)
789 self.release_interface(instance.interface)
794 self.iw_runner.ibss_leave(instance.interface)
797 instance=instance.interface)
799 self.iw_runner.disconnect_station(instance.interface)
801 (self.cmd_ip, instance.interface))
808 """Bring down the hostapd interface.
886 hostap_interface = self.hostapd_instances[instance].interface
887 interface = self.get_wlanif(0, 'monitor', same_phy_as=hostap_interface)
888 self.router.run("%s link set %s up" % (self.cmd_ip, interface))
890 (self.cmd_send_management_frame, interface, frame_type,
892 self.release_interface(interface)
895 def send_management_frame(self, interface, frame_type, channel,
903 management frames |frame_type| at the specified interface |interface|.
905 @param interface string interface to inject frames.
919 interface, frame_type, channel)
946 interface = self.hostapd_instances[instance].interface
947 deauth_msg = "%s: deauthentication: STA=%s" % (interface, client_mac)
998 interface = self.station_instances[0].interface
1001 # incoming packets to an "unexpected" interface.
1003 interface)
1005 # Similarly, we'd like to prevent the hostap interface from
1009 interface)
1011 hostap_conf['interface'])
1015 """Configure a router interface to connect as a client to a network.
1019 @param ip_addr: IP address to assign to this interface
1023 interface = self.get_wlanif(frequency, 'managed')
1034 conf_file = self.STATION_CONF_FILE_PATTERN % interface
1035 log_file = self.STATION_LOG_FILE_PATTERN % interface
1036 pid_file = self.STATION_PID_FILE_PATTERN % interface
1042 self.router.run('%s link set %s up' % (self.cmd_ip, interface))
1045 interface, pid_file, conf_file,
1048 self.iw_runner.wait_for_link(interface)
1050 # Assign an IP address to this interface.
1052 (self.cmd_ip, ip_addr, interface))
1054 StationInstance(ssid=ssid, interface=interface,
1078 def set_beacon_footer(self, interface, footer=''):
1079 """Sets the beacon footer (appended IE information) for this interface.
1081 @param interface string interface to set the footer on.
1082 @param footer string footer to be set on the interface.
1086 self.iw_runner.get_interface(interface).phy)
1097 Setup an DHCP server on the master interface of the virtual ethernet
1098 pair, with peer interface connected to the bridge interface. This is
1102 # Start a local server on master interface of virtual ethernet pair.
1105 # Add peer interface to the bridge.