Lines Matching refs:ifp

122 	struct ifnet* ifp = get_ifnet(device, i);
123 if (ifp == NULL)
134 struct ieee80211com* ic = (ieee80211com*)ifp->if_l2com;
141 IF_LLADDR(ifp)); // MAC address
144 gDevices[i] = ifp;
167 struct ifnet* ifp = get_ifnet(device, i);
168 if (ifp == NULL)
171 if (ifp->if_type == IFT_IEEE80211) {
177 delete_sem(ifp->scan_done_sem);
179 struct ieee80211vap* vap = (ieee80211vap*)ifp->if_softc;
187 // assign the base device ifp again
197 struct ifnet* ifp = (struct ifnet*)cookie;
208 if_printf(ifp, "%s: BOSII_DETECT_NETWORKS\n", __func__);
221 ifp->if_ioctl(ifp, SIOCS80211, (caddr_t)&request);
223 acquire_sem_etc(ifp->scan_done_sem, 1, B_RELATIVE_TIMEOUT,
235 if_printf(ifp, "%s: BOSII_GET_DETECTED_NETWORKS\n", __func__);
250 if (ifp->if_ioctl(ifp, SIOCG80211, (caddr_t)&request) < B_OK)
269 if_printf(ifp, "%s: BOSII_JOIN_NETWORK\n", __func__);
286 if (ifp->if_ioctl(ifp, SIOCS80211, (caddr_t)&request) < B_OK)
300 if_printf(ifp, "%s: BOSII_GET_ASSOCIATED_NETWORK\n", __func__);
314 if (ifp->if_ioctl(ifp, SIOCG80211, (caddr_t)&request) < B_OK)
323 if (ifp->if_ioctl(ifp, SIOCG80211, (caddr_t)&request) < B_OK)
348 status_t status = ifp->if_ioctl(ifp, op, (caddr_t)&request);
363 return ifp->if_ioctl(ifp, op, (caddr_t)arg);
373 struct ifnet* ifp = (struct ifnet*)cookie;
375 ifp->if_flags &= ~IFF_UP;
376 ifp->if_ioctl(ifp, SIOCSIFFLAGS, NULL);
378 return release_sem_etc(ifp->scan_done_sem, 1, B_RELEASE_ALL);
385 struct ifnet* ifp = (struct ifnet*)data;
387 ifp->if_l2com = _kernel_malloc(sizeof(struct ieee80211com), M_ZERO);
388 if (ifp->if_l2com == NULL)
390 ((struct ieee80211com*)(ifp->if_l2com))->ic_ifp = ifp;
580 struct ifnet* ifp = vap->iv_ifp;
583 if_link_state_change(ifp, LINK_STATE_UP);
592 message.AddString("interface", ifp->device_name);
604 struct ifnet* ifp = vap->iv_ifp;
607 if_link_state_change(ifp, LINK_STATE_DOWN);
616 message.AddString("interface", ifp->device_name);