Date: Tue, 22 Mar 2011 22:59:09 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r219891 - head/sys/dev/ath Message-ID: <201103222259.p2MMx9i3073884@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Tue Mar 22 22:59:09 2011 New Revision: 219891 URL: http://svn.freebsd.org/changeset/base/219891 Log: Enable setting the MCS rate bit for ast_tx_rate. This allows ath_stats to print the MCS rate when TX'ing. Modified: head/sys/dev/ath/if_ath.c Modified: head/sys/dev/ath/if_ath.c ============================================================================== --- head/sys/dev/ath/if_ath.c Tue Mar 22 22:39:42 2011 (r219890) +++ head/sys/dev/ath/if_ath.c Tue Mar 22 22:59:09 2011 (r219891) @@ -5151,9 +5151,10 @@ ath_ioctl(struct ifnet *ifp, u_long cmd, sc->sc_stats.ast_tdma_tsfadjm = TDMA_AVG(sc->sc_avgtsfdeltam); #endif rt = sc->sc_currates; - /* XXX HT rates */ sc->sc_stats.ast_tx_rate = rt->info[sc->sc_txrix].dot11Rate &~ IEEE80211_RATE_BASIC; + if (rt->info[sc->sc_txrix].phy & IEEE80211_T_HT) + sc->sc_stats.ast_tx_rate |= IEEE80211_RATE_MCS; return copyout(&sc->sc_stats, ifr->ifr_data, sizeof (sc->sc_stats)); case SIOCZATHSTATS:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103222259.p2MMx9i3073884>