diff --git a/net/mac80211/wme.c b/net/mac80211/wme.c
index 34e6d02da779f89731a33261745eea8949d14490..79d887dae7381b841d6ca8ea25ddf9694e6ba768 100644
--- a/net/mac80211/wme.c
+++ b/net/mac80211/wme.c
@@ -96,7 +96,7 @@ u16 ieee80211_select_queue(struct ieee80211_sub_if_data *sdata,
 	}
 
 	if (!sta && ra && !is_multicast_ether_addr(ra)) {
-		sta = sta_info_get(sdata, ra);
+		sta = sta_info_get(local, ra);
 		if (sta)
 			sta_flags = get_sta_flags(sta);
 	}