From patchwork Tue Nov 28 10:07:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: bpothuno@qti.qualcomm.com X-Patchwork-Id: 10079093 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 60237602BC for ; Tue, 28 Nov 2017 10:08:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F1B2291CF for ; Tue, 28 Nov 2017 10:08:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 43C0B29208; Tue, 28 Nov 2017 10:08:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CBED3291CF for ; Tue, 28 Nov 2017 10:08:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=J/Zln/Wy9haVNbk1SphNKRWBMc1JfE10KLsJxB9V7Xg=; b=C66IFcreFRz7XY VuqU7I8OdohZJO7lBWSh1Tt9S07chLxECAOYdMLPmQ0LhP2OYsMC5o3e/DZfc47ZmVH+8f0z7MtgY w/5YghZ/B3iThUpMLDCD6n/OvvEhgqbuYUs9nb/Ffk0UcIxNt2p1BDxBU2NniPLH2qUMLSBtQ1gcZ MBh/oTSJMl69JMwaHZoCGWqm13JoAJTdJEBX4bR2OPAm3FKWJOM65iCu1tHC/EeWB+12VsGsmqvaN thIDS4hWihgKPkHswCQOApxk80qqWBNy2RrpyKbnbxCFfEoCPkuoir9Tg5AE7L8OLiBZ4JHPPIqLa 0LSB+GYeUf02F/12O+WQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eJcoF-0001kH-Jh; Tue, 28 Nov 2017 10:08:11 +0000 Received: from alexa-out.qualcomm.com ([129.46.98.28]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eJcoB-0001iz-MC for ath10k@lists.infradead.org; Tue, 28 Nov 2017 10:08:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1511863688; x=1543399688; h=from:to:cc:subject:date:message-id:mime-version; bh=2HBp1Ubz0hCegy2Y6ahk9T9ojXf/Y8H4DiW6KzR/ToA=; b=fc5dNLP99W1iNivtOkrWE6gi3fzE6blmL2nB+1BBJulYFp5TVyPrPDCq Mm0oFaxbs/mqevTL85FjYMv75eLXEdVo3mSqHClgNKNDeVbJNEU5wVVip Fmx1IM6DdPHFggNeRGv9M8JgxQUzvPDAZO4TQvqu8T+id2lthIYZWr0yD s=; Received: from ironmsg02-l-new.qualcomm.com (HELO ironmsg02-L.qualcomm.com) ([10.53.140.109]) by alexa-out.qualcomm.com with ESMTP; 28 Nov 2017 02:07:43 -0800 X-IronPort-AV: E=McAfee;i="5900,7806,8728"; a="1045840728" X-MGA-submission: =?us-ascii?q?MDHg2MnkcHVcflzJQTbZCs1gjNsxkRkHHppytt?= =?us-ascii?q?hCOM+/X216c1Zv9/kl28HJUkvR7sqb9F295tKNJ9Aw2Qmx7LGsc9jimi?= =?us-ascii?q?AdeAECV4Pn796biVrJsTZveYjxZNq9mTDj4IKP3r5CG9VyVqTMkut8V1?= =?us-ascii?q?wP?= Received: from nasanexm03a.na.qualcomm.com ([10.85.0.103]) by ironmsg02-L.qualcomm.com with ESMTP/TLS/AES256-SHA; 28 Nov 2017 02:07:43 -0800 Received: from aptaiexm02b.ap.qualcomm.com (10.249.150.12) by nasanexm03a.na.qualcomm.com (10.85.0.103) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Tue, 28 Nov 2017 02:07:42 -0800 Received: from localhost (10.80.80.8) by aptaiexm02b.ap.qualcomm.com (10.249.150.12) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Tue, 28 Nov 2017 18:07:38 +0800 From: To: Subject: [PATCH] ath10k: handling qos at STA side based on AP WMM enable/disable Date: Tue, 28 Nov 2017 15:37:30 +0530 Message-ID: <1511863650-9419-1-git-send-email-bpothuno@qti.qualcomm.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01E.na.qualcomm.com (10.85.0.31) To aptaiexm02b.ap.qualcomm.com (10.249.150.12) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171128_020807_876719_790EA903 X-CRM114-Status: UNSURE ( 7.99 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Balaji Pothunoori , linux-wireless@vger.kernel.org Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Balaji Pothunoori Data packets are not sent by STA in case of STA joined to non QOS AP (WMM disabled AP). This is happening because of STA is sending data packets to firmware from host with qos enabled along with non qos queue value(TID = 16). Due to qos enabled, firmware is discarding the packet. This patch fixes this issue by updating the qos based on station WME capability field if WMM is disabled in AP. This patch is required by 10.4 family chipsets like QCA4019/QCA9888/QCA9884/QCA99X0. Firmware Versoin : 10.4-3.5.1-00018. For 10.2.4 family chipsets QCA988X/QCA9887 and QCA6174 this patch has no effect. Signed-off-by: Balaji Pothunoori --- drivers/net/wireless/ath/ath10k/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 0a947ee..2616b99 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -2563,7 +2563,7 @@ static void ath10k_peer_assoc_h_qos(struct ath10k *ar, } break; case WMI_VDEV_TYPE_STA: - if (vif->bss_conf.qos) + if (sta->wme) arg->peer_flags |= arvif->ar->wmi.peer_flags->qos; break; case WMI_VDEV_TYPE_IBSS: