Lines Matching refs:iface

51 	struct hostap_interface *iface;  in hostap_add_interface()  local
58 iface = netdev_priv(dev); in hostap_add_interface()
59 iface->dev = dev; in hostap_add_interface()
60 iface->local = local; in hostap_add_interface()
61 iface->type = type; in hostap_add_interface()
62 list_add(&iface->list, &local->hostap_interfaces); in hostap_add_interface()
101 struct hostap_interface *iface; in hostap_remove_interface() local
106 iface = netdev_priv(dev); in hostap_remove_interface()
109 list_del(&iface->list); in hostap_remove_interface()
112 if (dev == iface->local->ddev) in hostap_remove_interface()
113 iface->local->ddev = NULL; in hostap_remove_interface()
114 else if (dev == iface->local->apdev) in hostap_remove_interface()
115 iface->local->apdev = NULL; in hostap_remove_interface()
116 else if (dev == iface->local->stadev) in hostap_remove_interface()
117 iface->local->stadev = NULL; in hostap_remove_interface()
143 struct hostap_interface *iface, *empty, *match; in prism2_wds_add() local
148 iface = list_entry(ptr, struct hostap_interface, list); in prism2_wds_add()
149 if (iface->type != HOSTAP_INTERFACE_WDS) in prism2_wds_add()
152 if (prism2_wds_special_addr(iface->u.wds.remote_addr)) in prism2_wds_add()
153 empty = iface; in prism2_wds_add()
154 else if (ether_addr_equal(iface->u.wds.remote_addr, remote_addr)) { in prism2_wds_add()
155 match = iface; in prism2_wds_add()
190 iface = netdev_priv(dev); in prism2_wds_add()
191 memcpy(iface->u.wds.remote_addr, remote_addr, ETH_ALEN); in prism2_wds_add()
204 struct hostap_interface *iface, *selected = NULL; in prism2_wds_del() local
208 iface = list_entry(ptr, struct hostap_interface, list); in prism2_wds_del()
209 if (iface->type != HOSTAP_INTERFACE_WDS) in prism2_wds_del()
212 if (ether_addr_equal(iface->u.wds.remote_addr, remote_addr)) { in prism2_wds_del()
213 selected = iface; in prism2_wds_del()
285 struct hostap_interface *iface; in hostap_set_word() local
287 iface = netdev_priv(dev); in hostap_set_word()
288 return iface->local->func->set_rid(dev, rid, &tmp, 2); in hostap_set_word()
294 struct hostap_interface *iface; in hostap_set_string() local
298 iface = netdev_priv(dev); in hostap_set_string()
306 return iface->local->func->set_rid(dev, rid, &buf, MAX_SSID_LEN + 2); in hostap_set_string()
600 struct hostap_interface *iface; in prism2_close() local
605 iface = netdev_priv(dev); in prism2_close()
606 local = iface->local; in prism2_close()
653 struct hostap_interface *iface; in prism2_open() local
658 iface = netdev_priv(dev); in prism2_open()
659 local = iface->local; in prism2_open()
701 struct hostap_interface *iface; in prism2_set_mac_address() local
706 iface = netdev_priv(dev); in prism2_set_mac_address()
707 local = iface->local; in prism2_set_mac_address()
715 iface = list_entry(ptr, struct hostap_interface, list); in prism2_set_mac_address()
716 eth_hw_addr_set(iface->dev, addr->sa_data); in prism2_set_mac_address()
748 struct hostap_interface *iface; in hostap_set_multicast_list()
751 iface = netdev_priv(dev); in hostap_set_multicast_list()
752 local = iface->local; in hostap_set_multicast_list()
766 struct hostap_interface *iface; in prism2_tx_timeout() local
770 iface = netdev_priv(dev); in prism2_tx_timeout()
771 local = iface->local; in prism2_tx_timeout()
836 struct hostap_interface *iface; in hostap_setup_dev() local
838 iface = netdev_priv(dev); in hostap_setup_dev()
845 if (iface) { in hostap_setup_dev()
848 iface->wireless_data.spy_data = &iface->spy_data; in hostap_setup_dev()
849 dev->wireless_data = &iface->wireless_data; in hostap_setup_dev()
993 struct hostap_interface *iface; in prism2_update_comms_qual() local
998 iface = netdev_priv(dev); in prism2_update_comms_qual()
999 local = iface->local; in prism2_update_comms_qual()
1052 meta->iface = netdev_priv(dev); in prism2_sta_send_mgmt()