Lines Matching refs:ifp

76 ieee80211_begin_bgscan(struct ifnet *ifp)
78 struct ieee80211com *ic = (void *)ifp;
98 if (ifp->if_flags & IFF_DEBUG)
99 printf("%s: begin background scan\n", ifp->if_xname);
108 struct ifnet *ifp = arg;
110 ieee80211_begin_bgscan(ifp);
114 ieee80211_channel_init(struct ifnet *ifp)
116 struct ieee80211com *ic = (void *)ifp;
136 ifp->if_xname, c->ic_freq, c->ic_flags,
164 ieee80211_ifattach(struct ifnet *ifp)
166 struct ieee80211com *ic = (void *)ifp;
169 ether_ifattach(ifp, ic->ic_myaddr);
171 memcpy(((struct arpcom *)ifp)->ac_enaddr, ic->ic_myaddr,
173 ether_ifattach(ifp);
176 ifp->if_output = ieee80211_output;
179 bpfattach(&ic->ic_rawbpf, ifp, DLT_IEEE802_11,
182 ieee80211_crypto_attach(ifp);
184 ieee80211_channel_init(ifp);
187 ifp->if_capabilities |= IFCAP_VLAN_MTU;
197 ieee80211_node_attach(ifp);
198 ieee80211_proto_attach(ifp);
201 if_addgroup(ifp, "wlan");
202 ifp->if_priority = IF_WIRELESS_DEFAULT_PRIORITY;
208 timeout_set(&ic->ic_bgscan_timeout, ieee80211_bgscan_timeout, ifp);
212 ieee80211_ifdetach(struct ifnet *ifp)
214 struct ieee80211com *ic = (void *)ifp;
225 if_deactivate(ifp);
228 ieee80211_proto_detach(ifp);
229 ieee80211_crypto_detach(ifp);
230 ieee80211_node_detach(ifp);
234 ether_ifdetach(ifp);
269 struct ifnet *ifp = &ic->ic_if;
275 panic("%s: bogus channel pointer", ifp->if_xname);
326 ieee80211_media_init(struct ifnet *ifp,
332 struct ieee80211com *ic = (void *)ifp;
343 ieee80211_node_lateattach(ifp);
512 ieee80211_media_status(ifp, &imr);
516 ifp->if_baudrate = IF_Mbps(maxrate);
539 ieee80211_media_change(struct ifnet *ifp)
541 struct ieee80211com *ic = (void *)ifp;
764 ifp->if_baudrate = ifmedia_baudrate(ime->ifm_media);
770 ieee80211_media_status(struct ifnet *ifp, struct ifmediareq *imr)
772 struct ieee80211com *ic = (void *)ifp;
847 ieee80211_watchdog(struct ifnet *ifp)
849 struct ieee80211com *ic = (void *)ifp;
856 if (ifp->if_flags & IFF_DEBUG)
858 ifp->if_xname,
872 ifp->if_timer = 1;
1092 struct ifnet *ifp = &ic->ic_if;
1167 ieee80211_reset_scan(ifp);
1176 ieee80211_next_mode(struct ifnet *ifp)
1178 struct ieee80211com *ic = (void *)ifp;