Changeset View
Changeset View
Standalone View
Standalone View
sys/net80211/ieee80211_vht.c
Show First 20 Lines • Show All 216 Lines • ▼ Show 20 Lines | if (MS(ic->ic_vhtcaps, IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_MASK) >= 1) | ||||
printf(" 160MHz"); | printf(" 160MHz"); | ||||
printf("\n"); | printf("\n"); | ||||
/* Features */ | /* Features */ | ||||
ic_printf(ic, "[VHT] Features: %b\n", ic->ic_vhtcaps, | ic_printf(ic, "[VHT] Features: %b\n", ic->ic_vhtcaps, | ||||
IEEE80211_VHTCAP_BITS); | IEEE80211_VHTCAP_BITS); | ||||
/* For now, just 5GHz VHT. Worry about 2GHz VHT later */ | /* For now, just 5GHz VHT. Worry about 2GHz VHT later */ | ||||
for (i = 0; i < 7; i++) { | for (i = 0; i < 8; i++) { | ||||
/* Each stream is 2 bits */ | /* Each stream is 2 bits */ | ||||
tx = (ic->ic_vht_mcsinfo.tx_mcs_map >> (2*i)) & 0x3; | tx = (ic->ic_vht_mcsinfo.tx_mcs_map >> (2*i)) & 0x3; | ||||
rx = (ic->ic_vht_mcsinfo.rx_mcs_map >> (2*i)) & 0x3; | rx = (ic->ic_vht_mcsinfo.rx_mcs_map >> (2*i)) & 0x3; | ||||
if (tx == 3 && rx == 3) | if (tx == 3 && rx == 3) | ||||
continue; | continue; | ||||
ic_printf(ic, "[VHT] NSS %d: TX MCS 0..%d, RX MCS 0..%d\n", | ic_printf(ic, "[VHT] NSS %d: TX MCS 0..%d, RX MCS 0..%d\n", | ||||
i + 1, | i + 1, | ||||
vht_mcs_to_num(tx), | vht_mcs_to_num(tx), | ||||
▲ Show 20 Lines • Show All 626 Lines • Show Last 20 Lines |