diff options
-rw-r--r-- | drivers/net/wireless/ti/wlcore/tx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ti/wlcore/tx.c b/drivers/net/wireless/ti/wlcore/tx.c index 0bdc9500068e..c1d932043f05 100644 --- a/drivers/net/wireless/ti/wlcore/tx.c +++ b/drivers/net/wireless/ti/wlcore/tx.c | |||
@@ -306,7 +306,7 @@ static void wl1271_tx_fill_hdr(struct wl1271 *wl, struct wl12xx_vif *wlvif, | |||
306 | rate_idx = 0; | 306 | rate_idx = 0; |
307 | else if (wlvif->bss_type != BSS_TYPE_AP_BSS) { | 307 | else if (wlvif->bss_type != BSS_TYPE_AP_BSS) { |
308 | /* | 308 | /* |
309 | * if the packets are destined for AP (have a STA entry) | 309 | * if the packets are data packets |
310 | * send them with AP rate policies (EAPOLs are an exception), | 310 | * send them with AP rate policies (EAPOLs are an exception), |
311 | * otherwise use default basic rates | 311 | * otherwise use default basic rates |
312 | */ | 312 | */ |
@@ -314,7 +314,7 @@ static void wl1271_tx_fill_hdr(struct wl1271 *wl, struct wl12xx_vif *wlvif, | |||
314 | rate_idx = wlvif->sta.basic_rate_idx; | 314 | rate_idx = wlvif->sta.basic_rate_idx; |
315 | else if (control->flags & IEEE80211_TX_CTL_NO_CCK_RATE) | 315 | else if (control->flags & IEEE80211_TX_CTL_NO_CCK_RATE) |
316 | rate_idx = wlvif->sta.p2p_rate_idx; | 316 | rate_idx = wlvif->sta.p2p_rate_idx; |
317 | else if (control->control.sta) | 317 | else if (ieee80211_is_data(frame_control)) |
318 | rate_idx = wlvif->sta.ap_rate_idx; | 318 | rate_idx = wlvif->sta.ap_rate_idx; |
319 | else | 319 | else |
320 | rate_idx = wlvif->sta.basic_rate_idx; | 320 | rate_idx = wlvif->sta.basic_rate_idx; |