diff options
Diffstat (limited to 'drivers/net/wireless/wl12xx')
-rw-r--r-- | drivers/net/wireless/wl12xx/tx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/tx.c b/drivers/net/wireless/wl12xx/tx.c index a07ee8201d6d..fa518a5b7c8b 100644 --- a/drivers/net/wireless/wl12xx/tx.c +++ b/drivers/net/wireless/wl12xx/tx.c | |||
@@ -336,7 +336,9 @@ static void wl1271_tx_fill_hdr(struct wl1271 *wl, struct wl12xx_vif *wlvif, | |||
336 | /* if the packets are destined for AP (have a STA entry) | 336 | /* if the packets are destined for AP (have a STA entry) |
337 | send them with AP rate policies, otherwise use default | 337 | send them with AP rate policies, otherwise use default |
338 | basic rates */ | 338 | basic rates */ |
339 | if (control->control.sta) | 339 | if (control->flags & IEEE80211_TX_CTL_NO_CCK_RATE) |
340 | rate_idx = wlvif->sta.p2p_rate_idx; | ||
341 | else if (control->control.sta) | ||
340 | rate_idx = wlvif->sta.ap_rate_idx; | 342 | rate_idx = wlvif->sta.ap_rate_idx; |
341 | else | 343 | else |
342 | rate_idx = wlvif->sta.basic_rate_idx; | 344 | rate_idx = wlvif->sta.basic_rate_idx; |