From patchwork Mon Feb 10 11:47:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eliad Peller X-Patchwork-Id: 3618311 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7C8F6BF418 for ; Mon, 10 Feb 2014 11:48:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B6433201B6 for ; Mon, 10 Feb 2014 11:48:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DFF012017D for ; Mon, 10 Feb 2014 11:48:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752716AbaBJLsD (ORCPT ); Mon, 10 Feb 2014 06:48:03 -0500 Received: from mail-we0-f174.google.com ([74.125.82.174]:34710 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752684AbaBJLr7 (ORCPT ); Mon, 10 Feb 2014 06:47:59 -0500 Received: by mail-we0-f174.google.com with SMTP id x55so4104087wes.19 for ; Mon, 10 Feb 2014 03:47:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=iRyBdCzFIPN7ZRxsr4f2Xp+sBTEzCleTubqBKR43owY=; b=IdPHSi0rSqauke8rep7bVIwrhkkxLpnEV0lfK1qHfE8eTbJGiGAzuxVrynLgIRVcE9 TpW/GaxikYljqHBea4CxsoDuSiMCI127nsXFFY3eCHpfU6q+ps7VPFmCcfaip+CgOrrQ smpCjztTcr653qG2bdcCr3ohLlK8UWF72384LzwPz+03w+T+J2YlCuRDsWxn2/WZvcnB IyHbeMIeCI8fo+/X64m+nx6RGlhQI1329P/yx1HU95GMKu3G78PJzF8mSbvjvi6ZeKjM xsHbptYdK99gVRIZs94a6Fk/Jk/MP6qlOG6osV3GLKPIu9/D0HYKtHBTC8DA/529DUS1 Gouw== X-Gm-Message-State: ALoCoQmXNKgOVZubTQAOKeSNITUVe3ItsqDjJC4QZHbsj/b9EjYLpgxGjcHDXNYUO+9prD+oiag2 X-Received: by 10.194.63.228 with SMTP id j4mr21864774wjs.34.1392032877723; Mon, 10 Feb 2014 03:47:57 -0800 (PST) Received: from muse.amr.corp.intel.com (93-173-177-113.bb.netvision.net.il. [93.173.177.113]) by mx.google.com with ESMTPSA id ju6sm34687484wjc.1.2014.02.10.03.47.56 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Feb 2014 03:47:57 -0800 (PST) From: Eliad Peller To: "John W. Linville" Cc: Subject: [PATCH 10/18] wlcore: send EAPOL frames with voice priority Date: Mon, 10 Feb 2014 13:47:26 +0200 Message-Id: <1392032854-28126-11-git-send-email-eliad@wizery.com> X-Mailer: git-send-email 1.8.5.2.229.g4448466.dirty In-Reply-To: <1392032854-28126-1-git-send-email-eliad@wizery.com> References: <1392032854-28126-1-git-send-email-eliad@wizery.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Igal Chernobelsky Send EAPOL frames with voice priority by setting (the new) TX_HW_ATTR_EAPOL_FRAME bit in tx attribute. Sending EAPOL with voice priority fixes re-key timeout issues during heavy traffic. Signed-off-by: Igal Chernobelsky Signed-off-by: Eliad Peller --- drivers/net/wireless/ti/wlcore/tx.c | 4 ++++ drivers/net/wireless/ti/wlcore/tx.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/net/wireless/ti/wlcore/tx.c b/drivers/net/wireless/ti/wlcore/tx.c index 9f7921d..38b31a0 100644 --- a/drivers/net/wireless/ti/wlcore/tx.c +++ b/drivers/net/wireless/ti/wlcore/tx.c @@ -362,6 +362,10 @@ static void wl1271_tx_fill_hdr(struct wl1271 *wl, struct wl12xx_vif *wlvif, ieee80211_has_protected(frame_control)) tx_attr |= TX_HW_ATTR_HOST_ENCRYPT; + /* send EAPOL frames as voice */ + if (control->control.flags & IEEE80211_TX_CTRL_PORT_CTRL_PROTO) + tx_attr |= TX_HW_ATTR_EAPOL_FRAME; + desc->tx_attr = cpu_to_le16(tx_attr); wlcore_hw_set_tx_desc_csum(wl, desc, skb); diff --git a/drivers/net/wireless/ti/wlcore/tx.h b/drivers/net/wireless/ti/wlcore/tx.h index 35489c3..79cb3ff 100644 --- a/drivers/net/wireless/ti/wlcore/tx.h +++ b/drivers/net/wireless/ti/wlcore/tx.h @@ -37,6 +37,7 @@ #define TX_HW_ATTR_TX_CMPLT_REQ BIT(12) #define TX_HW_ATTR_TX_DUMMY_REQ BIT(13) #define TX_HW_ATTR_HOST_ENCRYPT BIT(14) +#define TX_HW_ATTR_EAPOL_FRAME BIT(15) #define TX_HW_ATTR_OFST_SAVE_RETRIES 0 #define TX_HW_ATTR_OFST_HEADER_PAD 1