Set ic_softc in all 802.11 drivers. Not required right now, but will be
used quite soon. Sponsored by: Netflix Sponsored by: Nginx, Inc.
This commit is contained in:
parent
b66af287ad
commit
59686fe935
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283537
@ -592,6 +592,7 @@ ath_attach(u_int16_t devid, struct ath_softc *sc)
|
||||
goto bad;
|
||||
}
|
||||
ic = ifp->if_l2com;
|
||||
ic->ic_softc = sc;
|
||||
ic->ic_name = device_get_nameunit(sc->sc_dev);
|
||||
|
||||
/* set these up early for if_printf use */
|
||||
|
@ -507,6 +507,7 @@ bwi_attach(struct bwi_softc *sc)
|
||||
ieee80211_init_channels(ic, NULL, &bands);
|
||||
|
||||
ic->ic_ifp = ifp;
|
||||
ic->ic_softc = sc;
|
||||
ic->ic_name = device_get_nameunit(dev);
|
||||
ic->ic_caps = IEEE80211_C_STA |
|
||||
IEEE80211_C_SHSLOT |
|
||||
|
@ -1058,6 +1058,7 @@ bwn_attach_post(struct bwn_softc *sc)
|
||||
|
||||
ic = ifp->if_l2com;
|
||||
ic->ic_ifp = ifp;
|
||||
ic->ic_softc = sc;
|
||||
ic->ic_name = device_get_nameunit(sc->sc_dev);
|
||||
/* XXX not right but it's not used anywhere important */
|
||||
ic->ic_phytype = IEEE80211_T_OFDM;
|
||||
|
@ -738,6 +738,7 @@ ndis_attach(dev)
|
||||
|
||||
ifp->if_ioctl = ndis_ioctl_80211;
|
||||
ic->ic_ifp = ifp;
|
||||
ic->ic_softc = sc;
|
||||
ic->ic_name = device_get_nameunit(dev);
|
||||
ic->ic_opmode = IEEE80211_M_STA;
|
||||
ic->ic_phytype = IEEE80211_T_DS;
|
||||
|
@ -286,6 +286,7 @@ ipw_attach(device_t dev)
|
||||
IFQ_SET_READY(&ifp->if_snd);
|
||||
|
||||
ic->ic_ifp = ifp;
|
||||
ic->ic_softc = sc;
|
||||
ic->ic_name = device_get_nameunit(dev);
|
||||
ic->ic_opmode = IEEE80211_M_STA;
|
||||
ic->ic_phytype = IEEE80211_T_DS;
|
||||
|
@ -364,6 +364,7 @@ iwi_attach(device_t dev)
|
||||
IFQ_SET_READY(&ifp->if_snd);
|
||||
|
||||
ic->ic_ifp = ifp;
|
||||
ic->ic_softc = sc;
|
||||
ic->ic_name = device_get_nameunit(dev);
|
||||
ic->ic_opmode = IEEE80211_M_STA;
|
||||
ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */
|
||||
|
@ -276,6 +276,7 @@ malo_attach(uint16_t devid, struct malo_softc *sc)
|
||||
IFQ_SET_READY(&ifp->if_snd);
|
||||
|
||||
ic->ic_ifp = ifp;
|
||||
ic->ic_softc = sc;
|
||||
ic->ic_name = device_get_nameunit(sc->malo_dev);
|
||||
/* XXX not right but it's not used anywhere important */
|
||||
ic->ic_phytype = IEEE80211_T_OFDM;
|
||||
|
@ -413,6 +413,7 @@ mwl_attach(uint16_t devid, struct mwl_softc *sc)
|
||||
IFQ_SET_READY(&ifp->if_snd);
|
||||
|
||||
ic->ic_ifp = ifp;
|
||||
ic->ic_softc = sc;
|
||||
ic->ic_name = device_get_nameunit(sc->sc_dev);
|
||||
/* XXX not right but it's not used anywhere important */
|
||||
ic->ic_phytype = IEEE80211_T_OFDM;
|
||||
|
@ -273,6 +273,7 @@ rt2560_attach(device_t dev, int id)
|
||||
IFQ_SET_READY(&ifp->if_snd);
|
||||
|
||||
ic->ic_ifp = ifp;
|
||||
ic->ic_softc = sc;
|
||||
ic->ic_name = device_get_nameunit(dev);
|
||||
ic->ic_opmode = IEEE80211_M_STA;
|
||||
ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */
|
||||
|
@ -274,6 +274,7 @@ rt2661_attach(device_t dev, int id)
|
||||
IFQ_SET_READY(&ifp->if_snd);
|
||||
|
||||
ic->ic_ifp = ifp;
|
||||
ic->ic_softc = sc;
|
||||
ic->ic_name = device_get_nameunit(dev);
|
||||
ic->ic_opmode = IEEE80211_M_STA;
|
||||
ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */
|
||||
|
@ -315,6 +315,7 @@ rt2860_attach(device_t dev, int id)
|
||||
IFQ_SET_READY(&ifp->if_snd);
|
||||
|
||||
ic->ic_ifp = ifp;
|
||||
ic->ic_softc = sc;
|
||||
ic->ic_name = device_get_nameunit(dev);
|
||||
ic->ic_opmode = IEEE80211_M_STA;
|
||||
ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */
|
||||
|
@ -355,6 +355,7 @@ rsu_attach(device_t self)
|
||||
ifp->if_hwassist = CSUM_TCP;
|
||||
|
||||
ic->ic_ifp = ifp;
|
||||
ic->ic_softc = sc;
|
||||
ic->ic_name = device_get_nameunit(self);
|
||||
ic->ic_phytype = IEEE80211_T_OFDM; /* Not only, but not used. */
|
||||
ic->ic_opmode = IEEE80211_M_STA; /* Default to BSS mode. */
|
||||
|
@ -488,6 +488,7 @@ rum_attach(device_t self)
|
||||
IFQ_SET_READY(&ifp->if_snd);
|
||||
|
||||
ic->ic_ifp = ifp;
|
||||
ic->ic_softc = sc;
|
||||
ic->ic_name = device_get_nameunit(self);
|
||||
ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */
|
||||
|
||||
|
@ -776,6 +776,7 @@ run_attach(device_t self)
|
||||
IFQ_SET_READY(&ifp->if_snd);
|
||||
|
||||
ic->ic_ifp = ifp;
|
||||
ic->ic_softc = sc;
|
||||
ic->ic_name = device_get_nameunit(self);
|
||||
ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */
|
||||
ic->ic_opmode = IEEE80211_M_STA; /* default to BSS mode */
|
||||
|
@ -442,6 +442,7 @@ uath_attach(device_t dev)
|
||||
|
||||
ic = ifp->if_l2com;
|
||||
ic->ic_ifp = ifp;
|
||||
ic->ic_softc = sc;
|
||||
ic->ic_name = device_get_nameunit(dev);
|
||||
ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */
|
||||
ic->ic_opmode = IEEE80211_M_STA; /* default to BSS mode */
|
||||
|
@ -341,6 +341,7 @@ upgt_attach(device_t dev)
|
||||
|
||||
ic = ifp->if_l2com;
|
||||
ic->ic_ifp = ifp;
|
||||
ic->ic_softc = sc;
|
||||
ic->ic_name = device_get_nameunit(dev);
|
||||
ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */
|
||||
ic->ic_opmode = IEEE80211_M_STA;
|
||||
|
@ -473,6 +473,7 @@ ural_attach(device_t self)
|
||||
IFQ_SET_READY(&ifp->if_snd);
|
||||
|
||||
ic->ic_ifp = ifp;
|
||||
ic->ic_softc = sc;
|
||||
ic->ic_name = device_get_nameunit(self);
|
||||
ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */
|
||||
|
||||
|
@ -881,6 +881,7 @@ urtw_attach(device_t dev)
|
||||
|
||||
ic = ifp->if_l2com;
|
||||
ic->ic_ifp = ifp;
|
||||
ic->ic_softc = sc;
|
||||
ic->ic_name = device_get_nameunit(dev);
|
||||
ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */
|
||||
ic->ic_opmode = IEEE80211_M_STA; /* default to BSS mode */
|
||||
|
@ -442,6 +442,7 @@ urtwn_attach(device_t self)
|
||||
IFQ_SET_READY(&ifp->if_snd);
|
||||
|
||||
ic->ic_ifp = ifp;
|
||||
ic->ic_softc = sc;
|
||||
ic->ic_name = device_get_nameunit(self);
|
||||
ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */
|
||||
ic->ic_opmode = IEEE80211_M_STA; /* default to BSS mode */
|
||||
|
@ -388,6 +388,7 @@ zyd_attach(device_t dev)
|
||||
|
||||
ic = ifp->if_l2com;
|
||||
ic->ic_ifp = ifp;
|
||||
ic->ic_softc = sc;
|
||||
ic->ic_name = device_get_nameunit(dev);
|
||||
ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */
|
||||
ic->ic_opmode = IEEE80211_M_STA;
|
||||
|
@ -345,6 +345,7 @@ wi_attach(device_t dev)
|
||||
IFQ_SET_READY(&ifp->if_snd);
|
||||
|
||||
ic->ic_ifp = ifp;
|
||||
ic->ic_softc = sc;
|
||||
ic->ic_name = device_get_nameunit(dev);
|
||||
ic->ic_phytype = IEEE80211_T_DS;
|
||||
ic->ic_opmode = IEEE80211_M_STA;
|
||||
|
@ -453,6 +453,7 @@ wpi_attach(device_t dev)
|
||||
|
||||
ic = ifp->if_l2com;
|
||||
ic->ic_ifp = ifp;
|
||||
ic->ic_softc = sc;
|
||||
ic->ic_name = device_get_nameunit(dev);
|
||||
ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */
|
||||
ic->ic_opmode = IEEE80211_M_STA; /* default to BSS mode */
|
||||
|
@ -797,6 +797,7 @@ wtap_attach(struct wtap_softc *sc, const uint8_t *macaddr)
|
||||
IFQ_SET_READY(&ifp->if_snd);
|
||||
|
||||
ic->ic_ifp = ifp;
|
||||
ic->ic_softc = sc;
|
||||
ic->ic_name = sc->name;
|
||||
ic->ic_phytype = IEEE80211_T_DS;
|
||||
ic->ic_opmode = IEEE80211_M_MBSS;
|
||||
|
Loading…
Reference in New Issue
Block a user