LIST_REMOVE(ic, ic_list);
ieee80211_ifdetach(struct ifnet *ifp){	struct ieee80211com *ic = (void *)ifp;	ieee80211_proto_detach(ifp);	ieee80211_crypto_detach(ifp);	ieee80211_node_detach(ifp);#ifdef __FreeBSD__	ifmedia_removeall(&ic->ic_media);#else        ifmedia_delete_instance(&ic->ic_media, IFM_INST_ANY);#endif#if NBPFILTER > 0	BPF_DETACH(ifp);#endif	ether_ifdetach(ifp);}