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:
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to