Merge "ath9k: fix DMA stop sequence for AR9003+"
diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h
index 72ecb20..04b10d1 100644
--- a/net/mac80211/driver-ops.h
+++ b/net/mac80211/driver-ops.h
@@ -609,6 +609,7 @@
 				     struct ieee80211_sub_if_data *sdata,
 				     struct ieee80211_sta *sta, u32 changed)
 {
+	struct sta_info *sta_info = container_of(sta, struct sta_info, sta);
 	sdata = get_bss_sdata(sdata);
 	if (!check_sdata_in_driver(sdata))
 		return;
@@ -618,7 +619,7 @@
 		 sdata->vif.type != NL80211_IFTYPE_MESH_POINT));
 
 	trace_drv_sta_rc_update(local, sdata, sta, changed);
-	if (local->ops->sta_rc_update)
+	if (local->ops->sta_rc_update && sta_info->uploaded)
 		local->ops->sta_rc_update(&local->hw, &sdata->vif,
 					  sta, changed);