Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ath/if_ath_tx_ht.c
Show First 20 Lines • Show All 233 Lines • ▼ Show 20 Lines | ath_tx_rate_fill_rcflags(struct ath_softc *sc, struct ath_buf *bf) | ||||
/* | /* | ||||
* We only do LDPC if the rate is 11n, both we and the | * We only do LDPC if the rate is 11n, both we and the | ||||
* receiver support LDPC and it's enabled. | * receiver support LDPC and it's enabled. | ||||
* | * | ||||
* It's a global flag, not a per-try flag, so we clear | * It's a global flag, not a per-try flag, so we clear | ||||
* it if any of the rate entries aren't 11n. | * it if any of the rate entries aren't 11n. | ||||
*/ | */ | ||||
do_ldpc = 0; | do_ldpc = 0; | ||||
if ((ni->ni_vap->iv_htcaps & IEEE80211_HTCAP_LDPC) && | if ((ni->ni_vap->iv_flags_ht & IEEE80211_FHT_LDPC_TX) && | ||||
(ni->ni_htcap & IEEE80211_HTCAP_LDPC)) | (ni->ni_htcap & IEEE80211_HTCAP_LDPC)) | ||||
do_ldpc = 1; | do_ldpc = 1; | ||||
/* | /* | ||||
* The 11n duration calculation doesn't know about LDPC, | * The 11n duration calculation doesn't know about LDPC, | ||||
* so don't enable it for positioning. | * so don't enable it for positioning. | ||||
*/ | */ | ||||
if (bf->bf_flags & ATH_BUF_TOA_PROBE) | if (bf->bf_flags & ATH_BUF_TOA_PROBE) | ||||
▲ Show 20 Lines • Show All 770 Lines • Show Last 20 Lines |