From patchwork Thu Sep 27 10:37:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Coelho X-Patchwork-Id: 1513221 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 8B858DFE80 for ; Thu, 27 Sep 2012 10:40:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756692Ab2I0KkO (ORCPT ); Thu, 27 Sep 2012 06:40:14 -0400 Received: from emh02.mail.saunalahti.fi ([62.142.5.108]:47726 "EHLO emh02.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756138Ab2I0Kik (ORCPT ); Thu, 27 Sep 2012 06:38:40 -0400 Received: from saunalahti-vams (vs3-11.mail.saunalahti.fi [62.142.5.95]) by emh02.mail.saunalahti.fi (Postfix) with SMTP id 174488182E; Thu, 27 Sep 2012 13:38:39 +0300 (EEST) Received: from emh06.mail.saunalahti.fi ([62.142.5.116]) by vs3-11.mail.saunalahti.fi ([62.142.5.95]) with SMTP (gateway) id A034850DD47; Thu, 27 Sep 2012 13:38:39 +0300 Received: from cumari.Elisa (a88-113-65-16.elisa-laajakaista.fi [88.113.65.16]) by emh06.mail.saunalahti.fi (Postfix) with ESMTP id CED3D699AE; Thu, 27 Sep 2012 13:38:38 +0300 (EEST) From: Luciano Coelho To: linux-wireless@vger.kernel.org Cc: coelho@ti.com, Arik Nemtsov , Igal Chernobelsky Subject: [PATCH 06/31] wlcore: AP mode - send non-data packets with basic rates Date: Thu, 27 Sep 2012 13:37:44 +0300 Message-Id: <1348742289-6587-7-git-send-email-luca@coelho.fi> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1348742289-6587-1-git-send-email-luca@coelho.fi> References: <1348742289-6587-1-git-send-email-luca@coelho.fi> X-Antivirus: VAMS Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Arik Nemtsov 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 Signed-off-by: Arik Nemtsov Signed-off-by: Luciano Coelho --- drivers/net/wireless/ti/wlcore/tx.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ti/wlcore/tx.c b/drivers/net/wireless/ti/wlcore/tx.c index 4f66e75..24ac8ec 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, 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];