aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2012-07-23 03:38:18 -0400
committerLuciano Coelho <luca@coelho.fi>2012-09-27 05:13:51 -0400
commitc3e06fc03b64c626e150c33b897ddd728c30a316 (patch)
tree2377666b4d165ffdde3ccec9d9e5ae79f2edc751 /drivers/net/wireless/ti
parent6dbc5fc2596059afca1db47eb1ac78f7095d27a1 (diff)
wlcore: AP mode - send non-data packets with basic rates
This solves interoperability issues with peer that don't seem to "hear" management packets transmitted in higher rates. Based on a previous patch by Igal Chernobelsky. Cc: Igal Chernobelsky <igalc@ti.com> Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <luca@coelho.fi>
Diffstat (limited to 'drivers/net/wireless/ti')
-rw-r--r--drivers/net/wireless/ti/wlcore/tx.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/wireless/ti/wlcore/tx.c b/drivers/net/wireless/ti/wlcore/tx.c
index 4f66e759de3..24ac8ecde86 100644
--- a/drivers/net/wireless/ti/wlcore/tx.c
+++ b/drivers/net/wireless/ti/wlcore/tx.c
@@ -319,8 +319,12 @@ static void wl1271_tx_fill_hdr(struct wl1271 *wl, struct wl12xx_vif *wlvif,
319 if (hlid == wlvif->ap.global_hlid) 319 if (hlid == wlvif->ap.global_hlid)
320 rate_idx = wlvif->ap.mgmt_rate_idx; 320 rate_idx = wlvif->ap.mgmt_rate_idx;
321 else if (hlid == wlvif->ap.bcast_hlid || 321 else if (hlid == wlvif->ap.bcast_hlid ||
322 skb->protocol == cpu_to_be16(ETH_P_PAE)) 322 skb->protocol == cpu_to_be16(ETH_P_PAE) ||
323 /* send AP bcast and EAPOLs using the min basic rate */ 323 !ieee80211_is_data(frame_control))
324 /*
325 * send non-data, bcast and EAPOLs using the
326 * min basic rate
327 */
324 rate_idx = wlvif->ap.bcast_rate_idx; 328 rate_idx = wlvif->ap.bcast_rate_idx;
325 else 329 else
326 rate_idx = wlvif->ap.ucast_rate_idx[ac]; 330 rate_idx = wlvif->ap.ucast_rate_idx[ac];