Received: by 10.223.185.116 with SMTP id b49csp5966336wrg; Wed, 7 Mar 2018 22:50:30 -0800 (PST) X-Google-Smtp-Source: AG47ELs8tJWIu6N62cFS/2ACDsuKMTzT98djay17yTB715k/fmqo1BtituzxsklqDQLQawFdNEtd X-Received: by 2002:a17:902:4545:: with SMTP id m63-v6mr22517000pld.15.1520491830223; Wed, 07 Mar 2018 22:50:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520491830; cv=none; d=google.com; s=arc-20160816; b=AoPmQ1PuSzZbSSneqaIu5KA47GJR0cqM7YDRi96BYM8MDxy0BWzTfgQ9m9+5C5ZwGn K0v+UzWy+LxIb4ZuDWsplDzeONUZp5DQOQHYV1e9ifRvv2QqkUH6k1WdKwreX+SIyZKZ ClBQUbvqiiRrOevEe6+bW6wsS6Za0bD8Oj16Fh+JGZALem37E7S9B8jpo63lW+qLiGv6 O+/L9esKIHvdXMI0rSqnwITrPqqsNH14IO84jMe7x79lUHdL3GQo4htdp27Ckh8EEkk6 F3Js3NFzG7uKhhthoBq0J+gMZtVOopB2pr47a8nxIHQtRFnTsNCsOZhdOJruuvl43lVc CgoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=WYxw6kKMZ4b9lLbAWH80njtJYyKJXUYXB8CfINQI5qY=; b=owER2xZAFawERRlnzl7NN5p3jgKqpajYSTBXrVRxrIj6yLZ2zAZ5MqWSWVPLJklKve VsA/KYcimKQUM3zz4zDQoGBW4Ds4Smd+kOsAvVWXvPQTOjAd1lxB2W3EnrzMW9LYoCDq wUvXHWJJZoyUliB9P5EG4YGiA55tAtVaUtk6mLOBsYl2N3qCUwx9CrpUQPE8b7mWV7BS 4HQt9RVgBPs1LH8lTgOrOx8i5JPwSJNWEmwNv9Olq74hU5oMqZzwqotrlxrtIlQKFvno RD7fSDARYxFbaEITjSrBEk1FsXBLiGxvTt9xbkbMIP4rPDZgqvUUrjxyFccQufk70ly2 pBHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Xawc3S6m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y11-v6si3537423plg.689.2018.03.07.22.50.15; Wed, 07 Mar 2018 22:50:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Xawc3S6m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965371AbeCHGtZ (ORCPT + 99 others); Thu, 8 Mar 2018 01:49:25 -0500 Received: from mail-by2nam03on0101.outbound.protection.outlook.com ([104.47.42.101]:17968 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965073AbeCHE6P (ORCPT ); Wed, 7 Mar 2018 23:58:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=WYxw6kKMZ4b9lLbAWH80njtJYyKJXUYXB8CfINQI5qY=; b=Xawc3S6mRaltmWohHyWZslWWmWBw4HxEDRmFXF8z3ALthNAYoK+Xjr1LMae3GMLTbsGIpl0yUVE0kMDqpoxXsmSxHB9DFaGxg25Rhx0BK2wXNADdXbDoUQv93W6tlotJ/TPK6C2Qj0Ic+RdJk5WsI+g5UI8TF41gWwm3QXCpetQ= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0808.namprd21.prod.outlook.com (10.167.110.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.588.1; Thu, 8 Mar 2018 04:58:12 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8063:c68a:b210:7446]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8063:c68a:b210:7446%2]) with mapi id 15.20.0588.008; Thu, 8 Mar 2018 04:58:12 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Balaji Pothunoori , Kalle Valo , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 17/67] ath10k: handling qos at STA side based on AP WMM enable/disable Thread-Topic: [PATCH AUTOSEL for 4.14 17/67] ath10k: handling qos at STA side based on AP WMM enable/disable Thread-Index: AQHTtpn71+H4OyCZqkKgcG5jLad7Sg== Date: Thu, 8 Mar 2018 04:57:38 +0000 Message-ID: <20180308045641.7814-17-alexander.levin@microsoft.com> References: <20180308045641.7814-1-alexander.levin@microsoft.com> In-Reply-To: <20180308045641.7814-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0808;20:9Kpik1vAFuoiHeDL3BDCNc9/LlCbcKiq9LuMOehMsjjBcF+iVeOwflxDgv9Sp87+Y7EfudsRkVcTTDKEMV4Pp/zoDITWfpmPQ6xoSeljTtdw1t+q6z53F5YmuzLNiIbkm8u/9HmMrj6IbuiB3smFsH0iBOife038aAc29ANGaXY= x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: be5641a9-c420-4a4b-a784-08d584b131d8 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0808; x-ms-traffictypediagnostic: DM5PR2101MB0808: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040501)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231220)(944501244)(52105095)(10201501046)(3002001)(6055026)(61426038)(61427038)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123562045)(20161123558120)(6072148)(201708071742011);SRVR:DM5PR2101MB0808;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0808; x-forefront-prvs: 060503E79B x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(396003)(39860400002)(366004)(376002)(346002)(199004)(189003)(22452003)(99286004)(76176011)(2906002)(105586002)(3846002)(86612001)(478600001)(72206003)(14454004)(2900100001)(8676002)(102836004)(68736007)(5660300001)(316002)(6116002)(54906003)(26005)(6506007)(59450400001)(1076002)(86362001)(36756003)(186003)(10090500001)(110136005)(106356001)(4326008)(6512007)(6486002)(7736002)(5250100002)(3280700002)(3660700001)(2501003)(6666003)(81166006)(2950100002)(305945005)(53936002)(107886003)(8936002)(6436002)(81156014)(66066001)(25786009)(10290500003)(97736004)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0808;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: B9mbFyZuyPirMK/S4TalpT/RNwxPzBsZfgGYk8HMBeF6NJL21Lg/MniFx2qJyhS84JUcGLavoKcYsIOZwsYCO3V1qbJXHBIfUMhRBArainU+uSM36G6UWfPKIltH0vU1vv0XMXbReBeCwNtdItVOppoIApFYZ0tOoeDBdBbM+aEgSelChYlPlxPLtdiBRoDXja4VsbnuBpxaDbqVP8NHOSUToCzBbOxb0XZJ1bo23TtQfzUGh4zP+/DMlQ+u4XS5t4kajjusu51I55zCFPIs5RLXQmfeymcoNONJn4FoCiJdn/DKTm3j77BXSAK9GEKYZZ6XalikrUA+zQ3EaJ4umg== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: be5641a9-c420-4a4b-a784-08d584b131d8 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Mar 2018 04:57:38.9780 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0808 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Balaji Pothunoori [ Upstream commit 07ffb4497360ae8789f05555fec8171ee952304d ] 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 =3D 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 Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin --- 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/a= th/ath10k/mac.c index 5683f1a5330e..ab2da84dfe02 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -2553,7 +2553,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 |=3D arvif->ar->wmi.peer_flags->qos; break; case WMI_VDEV_TYPE_IBSS: --=20 2.14.1