wl12xx: use p2p rate index when the skb has the NO_CCK flag
authorEliad Peller <eliad@wizery.com>
Tue, 1 Nov 2011 07:23:52 +0000 (09:23 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 8 Nov 2011 13:50:09 +0000 (15:50 +0200)
If the skb contains the NO_CCK flag, use the p2p rate index
(which contains only the OFDM rates)

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/tx.c

index a07ee8201d6dcc83381ac66decd2ce289227f6b7..fa518a5b7c8b39e4b3c27c28bd38e84d7016990e 100644 (file)
@@ -336,7 +336,9 @@ static void wl1271_tx_fill_hdr(struct wl1271 *wl, struct wl12xx_vif *wlvif,
                /* if the packets are destined for AP (have a STA entry)
                   send them with AP rate policies, otherwise use default
                   basic rates */
-               if (control->control.sta)
+               if (control->flags & IEEE80211_TX_CTL_NO_CCK_RATE)
+                       rate_idx = wlvif->sta.p2p_rate_idx;
+               else if (control->control.sta)
                        rate_idx = wlvif->sta.ap_rate_idx;
                else
                        rate_idx = wlvif->sta.basic_rate_idx;
This page took 0.032344 seconds and 5 git commands to generate.