Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/usb/wlan/if_rsu.c
Show First 20 Lines • Show All 773 Lines • ▼ Show 20 Lines | rsu_getradiocaps(struct ieee80211com *ic, | ||||
/* Set supported .11b and .11g rates. */ | /* Set supported .11b and .11g rates. */ | ||||
memset(bands, 0, sizeof(bands)); | memset(bands, 0, sizeof(bands)); | ||||
setbit(bands, IEEE80211_MODE_11B); | setbit(bands, IEEE80211_MODE_11B); | ||||
setbit(bands, IEEE80211_MODE_11G); | setbit(bands, IEEE80211_MODE_11G); | ||||
if (sc->sc_ht) | if (sc->sc_ht) | ||||
setbit(bands, IEEE80211_MODE_11NG); | setbit(bands, IEEE80211_MODE_11NG); | ||||
ieee80211_add_channels_default_2ghz(chans, maxchans, nchans, | ieee80211_add_channels_default_2ghz(chans, maxchans, nchans, | ||||
bands, (ic->ic_htcaps & IEEE80211_HTCAP_CHWIDTH40) != 0); | bands, (ic->ic_htcaps & IEEE80211_HTCAP_CHWIDTH40) ? | ||||
NET80211_CBW_FLAG_HT40 : 0); | |||||
} | } | ||||
static void | static void | ||||
rsu_set_channel(struct ieee80211com *ic) | rsu_set_channel(struct ieee80211com *ic) | ||||
{ | { | ||||
struct rsu_softc *sc = ic->ic_softc; | struct rsu_softc *sc = ic->ic_softc; | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 2,976 Lines • Show Last 20 Lines |