Lines Matching full:ic
280 struct ieee80211com *ic = vap->iv_ic; in wtap_newstate() local
281 struct wtap_softc *sc = ic->ic_softc; in wtap_newstate()
359 wtap_vap_create(struct ieee80211com *ic, const char name[IFNAMSIZ], in wtap_vap_create() argument
364 struct wtap_softc *sc = ic->ic_softc; in wtap_vap_create()
377 error = ieee80211_vap_setup(ic, vap, name, unit, opmode, in wtap_vap_create()
422 wtap_parent(struct ieee80211com *ic) in wtap_parent() argument
424 struct wtap_softc *sc = ic->ic_softc; in wtap_parent()
426 if (ic->ic_nrunning > 0) { in wtap_parent()
428 ieee80211_start_all(ic); in wtap_parent()
434 wtap_scan_start(struct ieee80211com *ic) in wtap_scan_start() argument
443 wtap_scan_end(struct ieee80211com *ic) in wtap_scan_end() argument
452 wtap_set_channel(struct ieee80211com *ic) in wtap_set_channel() argument
497 struct ieee80211com *ic = &sc->sc_ic; in wtap_rx_proc() local
519 ic_printf(ic, "%s: no mbuf!\n", __func__); in wtap_rx_proc()
527 * the ic does not supports 11n HT. in wtap_rx_proc()
531 ieee80211_dump_pkt(ic, mtod(m, caddr_t), 0,0,0); in wtap_rx_proc()
539 ni = ieee80211_find_rxnode_withkey(ic, in wtap_rx_proc()
549 ieee80211_input_all(ic, m, 1<<7, 10); in wtap_rx_proc()
568 wtap_wme_update(struct ieee80211com *ic) in wtap_wme_update() argument
576 wtap_update_mcast(struct ieee80211com *ic) in wtap_update_mcast() argument
583 wtap_update_promisc(struct ieee80211com *ic) in wtap_update_promisc() argument
590 wtap_transmit(struct ieee80211com *ic, struct mbuf *m) in wtap_transmit() argument
627 struct ieee80211com *ic = ni->ni_ic; in wtap_node_free() local
628 struct wtap_softc *sc = ic->ic_softc; in wtap_node_free()
637 struct ieee80211com *ic = &sc->sc_ic; in wtap_attach() local
648 ic->ic_softc = sc; in wtap_attach()
649 ic->ic_name = sc->name; in wtap_attach()
650 ic->ic_phytype = IEEE80211_T_DS; in wtap_attach()
651 ic->ic_opmode = IEEE80211_M_MBSS; in wtap_attach()
652 ic->ic_caps = IEEE80211_C_MBSS | IEEE80211_C_IBSS; in wtap_attach()
654 ic->ic_max_keyix = 128; /* A value read from Atheros ATH_KEYMAX */ in wtap_attach()
656 ic->ic_regdomain.regdomain = SKU_ETSI; in wtap_attach()
657 ic->ic_regdomain.country = CTRY_SWEDEN; in wtap_attach()
658 ic->ic_regdomain.location = 1; /* Indoors */ in wtap_attach()
659 ic->ic_regdomain.isocc[0] = 'S'; in wtap_attach()
660 ic->ic_regdomain.isocc[1] = 'E'; in wtap_attach()
662 ic->ic_nchans = 1; in wtap_attach()
663 ic->ic_channels[0].ic_flags = IEEE80211_CHAN_B; in wtap_attach()
664 ic->ic_channels[0].ic_freq = 2412; in wtap_attach()
666 IEEE80211_ADDR_COPY(ic->ic_macaddr, macaddr); in wtap_attach()
667 ieee80211_ifattach(ic); in wtap_attach()
670 ic->ic_newassoc = wtap_newassoc; in wtap_attach()
671 ic->ic_wme.wme_update = wtap_wme_update; in wtap_attach()
672 ic->ic_vap_create = wtap_vap_create; in wtap_attach()
673 ic->ic_vap_delete = wtap_vap_delete; in wtap_attach()
674 ic->ic_raw_xmit = wtap_raw_xmit; in wtap_attach()
675 ic->ic_update_mcast = wtap_update_mcast; in wtap_attach()
676 ic->ic_update_promisc = wtap_update_promisc; in wtap_attach()
677 ic->ic_transmit = wtap_transmit; in wtap_attach()
678 ic->ic_parent = wtap_parent; in wtap_attach()
680 sc->sc_node_alloc = ic->ic_node_alloc; in wtap_attach()
681 ic->ic_node_alloc = wtap_node_alloc; in wtap_attach()
682 sc->sc_node_free = ic->ic_node_free; in wtap_attach()
683 ic->ic_node_free = wtap_node_free; in wtap_attach()
685 ic->ic_scan_start = wtap_scan_start; in wtap_attach()
686 ic->ic_scan_end = wtap_scan_end; in wtap_attach()
687 ic->ic_set_channel = wtap_set_channel; in wtap_attach()
689 ieee80211_radiotap_attach(ic, in wtap_attach()
697 if(ic->ic_rt == NULL){ in wtap_attach()
699 ic->ic_rt = ieee80211_get_ratetable(&ic->ic_channels[0]); in wtap_attach()
701 printf("ic->ic_rt =%p\n", ic->ic_rt); in wtap_attach()
702 printf("rate count %d\n", ic->ic_rt->rateCount); in wtap_attach()
704 uint8_t code = ic->ic_rt->info[0].dot11Rate; in wtap_attach()
705 uint8_t cix = ic->ic_rt->info[0].ctlRateIndex; in wtap_attach()
706 uint8_t ctl_rate = ic->ic_rt->info[cix].dot11Rate; in wtap_attach()
709 uint8_t rix0 = ic->ic_rt->rateCodeToIndex[130]; in wtap_attach()
710 uint8_t rix1 = ic->ic_rt->rateCodeToIndex[132]; in wtap_attach()
711 uint8_t rix2 = ic->ic_rt->rateCodeToIndex[139]; in wtap_attach()
712 uint8_t rix3 = ic->ic_rt->rateCodeToIndex[150]; in wtap_attach()
714 printf("lpAckDuration=%u\n", ic->ic_rt->info[0].lpAckDuration); in wtap_attach()
715 printf("rate=%d\n", ic->ic_rt->info[0].rateKbps); in wtap_attach()
723 struct ieee80211com *ic = &sc->sc_ic; in wtap_detach() local
726 ieee80211_ageq_drain(&ic->ic_stageq); in wtap_detach()
727 ieee80211_ifdetach(ic); in wtap_detach()