wlcore: AP mode - send non-data packets with basic rates
authorArik Nemtsov <arik@wizery.com>
Mon, 23 Jul 2012 07:38:18 +0000 (10:38 +0300)
committerLuciano Coelho <luca@coelho.fi>
Thu, 27 Sep 2012 09:13:51 +0000 (12:13 +0300)
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>
drivers/net/wireless/ti/wlcore/tx.c

index 4f66e759de37091822d8ee76a9dfa6b4db7602aa..24ac8ecde867a1a7f9cbe3df488c7e5bdb2d2319 100644 (file)
@@ -319,8 +319,12 @@ static void wl1271_tx_fill_hdr(struct wl1271 *wl, struct wl12xx_vif *wlvif,
                if (hlid == wlvif->ap.global_hlid)
                        rate_idx = wlvif->ap.mgmt_rate_idx;
                else if (hlid == wlvif->ap.bcast_hlid ||
-                        skb->protocol == cpu_to_be16(ETH_P_PAE))
-                       /* send AP bcast and EAPOLs using the min basic rate */
+                        skb->protocol == cpu_to_be16(ETH_P_PAE) ||
+                        !ieee80211_is_data(frame_control))
+                       /*
+                        * send non-data, bcast and EAPOLs using the
+                        * min basic rate
+                        */
                        rate_idx = wlvif->ap.bcast_rate_idx;
                else
                        rate_idx = wlvif->ap.ucast_rate_idx[ac];