Lines Matching refs:iface

55 	struct hostap_interface *iface;  in hostap_add_interface()  local
62 iface = netdev_priv(dev); in hostap_add_interface()
63 iface->dev = dev; in hostap_add_interface()
64 iface->local = local; in hostap_add_interface()
65 iface->type = type; in hostap_add_interface()
66 list_add(&iface->list, &local->hostap_interfaces); in hostap_add_interface()
105 struct hostap_interface *iface; in hostap_remove_interface() local
110 iface = netdev_priv(dev); in hostap_remove_interface()
113 list_del(&iface->list); in hostap_remove_interface()
116 if (dev == iface->local->ddev) in hostap_remove_interface()
117 iface->local->ddev = NULL; in hostap_remove_interface()
118 else if (dev == iface->local->apdev) in hostap_remove_interface()
119 iface->local->apdev = NULL; in hostap_remove_interface()
120 else if (dev == iface->local->stadev) in hostap_remove_interface()
121 iface->local->stadev = NULL; in hostap_remove_interface()
147 struct hostap_interface *iface, *empty, *match; in prism2_wds_add() local
152 iface = list_entry(ptr, struct hostap_interface, list); in prism2_wds_add()
153 if (iface->type != HOSTAP_INTERFACE_WDS) in prism2_wds_add()
156 if (prism2_wds_special_addr(iface->u.wds.remote_addr)) in prism2_wds_add()
157 empty = iface; in prism2_wds_add()
158 else if (ether_addr_equal(iface->u.wds.remote_addr, remote_addr)) { in prism2_wds_add()
159 match = iface; in prism2_wds_add()
194 iface = netdev_priv(dev); in prism2_wds_add()
195 memcpy(iface->u.wds.remote_addr, remote_addr, ETH_ALEN); in prism2_wds_add()
208 struct hostap_interface *iface, *selected = NULL; in prism2_wds_del() local
212 iface = list_entry(ptr, struct hostap_interface, list); in prism2_wds_del()
213 if (iface->type != HOSTAP_INTERFACE_WDS) in prism2_wds_del()
216 if (ether_addr_equal(iface->u.wds.remote_addr, remote_addr)) { in prism2_wds_del()
217 selected = iface; in prism2_wds_del()
289 struct hostap_interface *iface; in hostap_set_word() local
291 iface = netdev_priv(dev); in hostap_set_word()
292 return iface->local->func->set_rid(dev, rid, &tmp, 2); in hostap_set_word()
298 struct hostap_interface *iface; in hostap_set_string() local
302 iface = netdev_priv(dev); in hostap_set_string()
310 return iface->local->func->set_rid(dev, rid, &buf, MAX_SSID_LEN + 2); in hostap_set_string()
604 struct hostap_interface *iface; in prism2_close() local
609 iface = netdev_priv(dev); in prism2_close()
610 local = iface->local; in prism2_close()
657 struct hostap_interface *iface; in prism2_open() local
662 iface = netdev_priv(dev); in prism2_open()
663 local = iface->local; in prism2_open()
705 struct hostap_interface *iface; in prism2_set_mac_address() local
710 iface = netdev_priv(dev); in prism2_set_mac_address()
711 local = iface->local; in prism2_set_mac_address()
719 iface = list_entry(ptr, struct hostap_interface, list); in prism2_set_mac_address()
720 memcpy(iface->dev->dev_addr, addr->sa_data, ETH_ALEN); in prism2_set_mac_address()
752 struct hostap_interface *iface; in hostap_set_multicast_list()
755 iface = netdev_priv(dev); in hostap_set_multicast_list()
756 local = iface->local; in hostap_set_multicast_list()
780 struct hostap_interface *iface; in prism2_tx_timeout() local
784 iface = netdev_priv(dev); in prism2_tx_timeout()
785 local = iface->local; in prism2_tx_timeout()
850 struct hostap_interface *iface; in hostap_setup_dev() local
852 iface = netdev_priv(dev); in hostap_setup_dev()
857 if (iface) { in hostap_setup_dev()
860 iface->wireless_data.spy_data = &iface->spy_data; in hostap_setup_dev()
861 dev->wireless_data = &iface->wireless_data; in hostap_setup_dev()
1005 struct hostap_interface *iface; in prism2_update_comms_qual() local
1010 iface = netdev_priv(dev); in prism2_update_comms_qual()
1011 local = iface->local; in prism2_update_comms_qual()
1066 meta->iface = netdev_priv(dev); in prism2_sta_send_mgmt()