* [PATCH] wlcore: send EAPOLs with basic rate policy
@ 2012-06-11 15:01 Eyal Shapira
2012-06-11 15:08 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Eyal Shapira @ 2012-06-11 15:01 UTC (permalink / raw)
To: Luciano Coelho; +Cc: linux-wireless
EAPOLs are sent at high rates as they are considered
data packets. Some APs don't respond well to these rates
and don't respond with EAPOL 3/4.
Send EAPOLs with basic rate policy in order to avoid that.
Signed-off-by: Eyal Shapira <eyal@wizery.com>
---
drivers/net/wireless/ti/wlcore/tx.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/drivers/net/wireless/ti/wlcore/tx.c b/drivers/net/wireless/ti/wlcore/tx.c
index 6983e7a..8ee82b9 100644
--- a/drivers/net/wireless/ti/wlcore/tx.c
+++ b/drivers/net/wireless/ti/wlcore/tx.c
@@ -305,11 +305,15 @@ static void wl1271_tx_fill_hdr(struct wl1271 *wl, struct wl12xx_vif *wlvif,
if (is_dummy || !wlvif)
rate_idx = 0;
else if (wlvif->bss_type != BSS_TYPE_AP_BSS) {
- /* if the packets are destined for AP (have a STA entry)
- send them with AP rate policies, otherwise use default
- basic rates */
+ /*
+ * if the packets are destined for AP (have a STA entry)
+ * send them with AP rate policies (EAPOLs are an exception),
+ * otherwise use default basic rates
+ */
if (control->flags & IEEE80211_TX_CTL_NO_CCK_RATE)
rate_idx = wlvif->sta.p2p_rate_idx;
+ else if (skb->protocol == cpu_to_be16(ETH_P_PAE))
+ rate_idx = wlvif->sta.basic_rate_idx;
else if (control->control.sta)
rate_idx = wlvif->sta.ap_rate_idx;
else
--
1.7.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] wlcore: send EAPOLs with basic rate policy
2012-06-11 15:01 [PATCH] wlcore: send EAPOLs with basic rate policy Eyal Shapira
@ 2012-06-11 15:08 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2012-06-11 15:08 UTC (permalink / raw)
To: Eyal Shapira; +Cc: Luciano Coelho, linux-wireless
On Mon, 2012-06-11 at 18:01 +0300, Eyal Shapira wrote:
> EAPOLs are sent at high rates as they are considered
> data packets. Some APs don't respond well to these rates
> and don't respond with EAPOL 3/4.
> Send EAPOLs with basic rate policy in order to avoid that.
>
> Signed-off-by: Eyal Shapira <eyal@wizery.com>
> ---
> drivers/net/wireless/ti/wlcore/tx.c | 10 +++++++---
> 1 files changed, 7 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/wireless/ti/wlcore/tx.c b/drivers/net/wireless/ti/wlcore/tx.c
> index 6983e7a..8ee82b9 100644
> --- a/drivers/net/wireless/ti/wlcore/tx.c
> +++ b/drivers/net/wireless/ti/wlcore/tx.c
> @@ -305,11 +305,15 @@ static void wl1271_tx_fill_hdr(struct wl1271 *wl, struct wl12xx_vif *wlvif,
> if (is_dummy || !wlvif)
> rate_idx = 0;
> else if (wlvif->bss_type != BSS_TYPE_AP_BSS) {
> - /* if the packets are destined for AP (have a STA entry)
> - send them with AP rate policies, otherwise use default
> - basic rates */
> + /*
> + * if the packets are destined for AP (have a STA entry)
> + * send them with AP rate policies (EAPOLs are an exception),
> + * otherwise use default basic rates
> + */
Might be worth indicating what APs have this bug, and possibly putting
something like this into mac80211 (as well)?
johannes
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-06-11 15:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-11 15:01 [PATCH] wlcore: send EAPOLs with basic rate policy Eyal Shapira
2012-06-11 15:08 ` Johannes Berg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.