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: 10079089 X-Patchwork-Delegate: kvalo@adurom.com 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 847B0602BC for ; Tue, 28 Nov 2017 10:07:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7470629069 for ; Tue, 28 Nov 2017 10:07:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 696E229208; Tue, 28 Nov 2017 10:07:50 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E33072920A for ; Tue, 28 Nov 2017 10:07:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752197AbdK1KHs (ORCPT ); Tue, 28 Nov 2017 05:07:48 -0500 Received: from alexa-out.qualcomm.com ([129.46.98.28]:65419 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752294AbdK1KHp (ORCPT ); Tue, 28 Nov 2017 05:07:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1511863665; x=1543399665; h=from:to:cc:subject:date:message-id:mime-version; bh=2HBp1Ubz0hCegy2Y6ahk9T9ojXf/Y8H4DiW6KzR/ToA=; b=eNuJ6FALX9JqC+x/Tj0umoA/Nvv3WdGWDQmJkOJNO7ewiUtxhDWLJ7uW ylxyDabe7SKfXREbiB3wXH14eaObDLj/CNjrtNWIn7HxghZpEL5JwgPcn 3g3EZas1Umvl0OhXq5V+Cqn9Fju9DO0J6b/W7mmanDBgGJZD+dlkiDoke E=; 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: CC: , Balaji Pothunoori 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) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.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: