struct ath_node {
        struct ieee80211_sta *sta; /* station struct we're part of */
        struct ieee80211_vif *vif; /* interface with which we're associated */
-       struct ath_atx_tid tid[WME_NUM_TID];
+       struct ath_atx_tid tid[IEEE80211_NUM_TIDS];
        struct ath_atx_ac ac[IEEE80211_NUM_ACS];
        int ps_key;
 
 
 
 /* Common header for Atheros 802.11n base driver cores */
 
-#define WME_NUM_TID             16
 #define WME_BA_BMP_SIZE         64
 #define WME_MAX_BA              WME_BA_BMP_SIZE
 #define ATH_TID_MAX_BUFS        (2 * WME_MAX_BA)
 
        int tidno;
 
        for (tidno = 0, tid = &an->tid[tidno];
-            tidno < WME_NUM_TID; tidno++, tid++) {
+            tidno < IEEE80211_NUM_TIDS; tidno++, tid++) {
 
                if (!tid->sched)
                        continue;
        int tidno;
 
        for (tidno = 0, tid = &an->tid[tidno];
-            tidno < WME_NUM_TID; tidno++, tid++) {
+            tidno < IEEE80211_NUM_TIDS; tidno++, tid++) {
 
                ac = tid->ac;
                txq = ac->txq;
        int tidno, acno;
 
        for (tidno = 0, tid = &an->tid[tidno];
-            tidno < WME_NUM_TID;
+            tidno < IEEE80211_NUM_TIDS;
             tidno++, tid++) {
                tid->an        = an;
                tid->tidno     = tidno;
        int tidno;
 
        for (tidno = 0, tid = &an->tid[tidno];
-            tidno < WME_NUM_TID; tidno++, tid++) {
+            tidno < IEEE80211_NUM_TIDS; tidno++, tid++) {
 
                ac = tid->ac;
                txq = ac->txq;