  
  	ath_node_attach(sc, sta, vif);
  
-@@ -1366,10 +1398,28 @@ static int ath9k_sta_remove(struct ieee80211_hw *hw,
+@@ -1366,10 +1396,28 @@ static int ath9k_sta_remove(struct ieee80211_hw *hw,
  			    struct ieee80211_vif *vif,
  			    struct ieee80211_sta *sta)
  {
 +    
-+#ifdef TID_SLEEPING
++#ifdef CPTCFG_ATH9K_TID_SLEEPING
 +	struct tid_sleep_sta_sleep_ctl *sta_pos, *sta_n;
 +#endif	
 +    

+	list_for_each_entry_safe(sta_pos, sta_n, 
+        &tid_sleep_sta_sleep_ctl_list, list) 
+	{
+#ifdef TID_SLEEPING_DEBUG   
+        printk("ath_tx_aggr_sleep: MAC searched: %pM \n", sta->addr);
+        printk("ath_tx_aggr_sleep: MAC saved: %pM \n", sta_pos->sta->addr);
+#endif

+    
+    tid_sleep_data_len = 0;
+    tid_sleep_data_ptr = 0;
+	if (info->attrs[NL80211_ATTR_TID_SLEEP]) {
+		tid_sleep_data_ptr =
+			nla_data(info->attrs[NL80211_ATTR_TID_SLEEP]);
+		tid_sleep_data_len =
+			nla_len(info->attrs[NL80211_ATTR_TID_SLEEP]);
+	}
+    else
+    {
+        printk("No data supplied for NL80211_ATTR_TID_SLEEP\n");
+    }
+
+	switch (dev->ieee80211_ptr->iftype) {
