svn commit: r312607 - head/sys/dev/ath
Andriy Voskoboinyk
avos at FreeBSD.org
Sat Jan 21 21:03:28 UTC 2017
Author: avos
Date: Sat Jan 21 21:03:26 2017
New Revision: 312607
URL: https://svnweb.freebsd.org/changeset/base/312607
Log:
ath: adapt LDPC support checks
Set both IEEE80211_HTCAP_LDPC and IEEE80211_HTC_TXLDPC capability flags
if LDPC is supported + set 'do_ldpc = 1' only when it is not disabled,
not just supported.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D9277
Modified:
head/sys/dev/ath/if_ath.c
head/sys/dev/ath/if_ath_tx_ht.c
Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c Sat Jan 21 20:34:20 2017 (r312606)
+++ head/sys/dev/ath/if_ath.c Sat Jan 21 21:03:26 2017 (r312607)
@@ -1178,7 +1178,8 @@ ath_attach(u_int16_t devid, struct ath_s
sc->sc_has_ldpc = 1;
device_printf(sc->sc_dev,
"[HT] LDPC transmit/receive enabled\n");
- ic->ic_htcaps |= IEEE80211_HTCAP_LDPC;
+ ic->ic_htcaps |= IEEE80211_HTCAP_LDPC |
+ IEEE80211_HTC_TXLDPC;
}
Modified: head/sys/dev/ath/if_ath_tx_ht.c
==============================================================================
--- head/sys/dev/ath/if_ath_tx_ht.c Sat Jan 21 20:34:20 2017 (r312606)
+++ head/sys/dev/ath/if_ath_tx_ht.c Sat Jan 21 21:03:26 2017 (r312607)
@@ -239,7 +239,7 @@ ath_tx_rate_fill_rcflags(struct ath_soft
* it if any of the rate entries aren't 11n.
*/
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))
do_ldpc = 1;
More information about the svn-src-head
mailing list