Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1737555pxu; Thu, 8 Oct 2020 20:59:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxONBXDqF40JjnfxoCIZV3LWnynGBwfYN3uSLDpoRtWwN5y0L172zQHEzBpKTpiZWtoiCPo X-Received: by 2002:a17:906:c18e:: with SMTP id g14mr12590458ejz.416.1602215947270; Thu, 08 Oct 2020 20:59:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602215947; cv=none; d=google.com; s=arc-20160816; b=iRghDoZgtpb3BqdNdb/x+aOJAnuHYgLhkJrj6uVPdROCHzvZAfy5CrvDtJZko/Bmi1 1/Ijx2ZfO4O/FJp6N1PnnaD+27ZZlHGasAppsRrkYHuMag36FDhG9U/NsQoS5J0ytE6k 3/fhTeizDKk250U5pQYW1TEuZh/molwWNFo4QwNoMd7tPKzhuXgnZd9ooZtabOppOUmI nOh5cmZ3aQHdCRtaWD7fleuqXfvgyQpOnrd8iDAx4vrZ9w3DsZMP6r/3wNEao5EB5Gq2 eIPVXAKq/DfI0274+GncNGTYzP3/ytomuyit4RV5j7G+fZ1C5vsyng8JVGVjqv/VHXTt tJrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dmarc-filter:sender:dkim-signature; bh=FkOCWwPURdXFHzjnCkMfUjx+hI/JNP6MMQUkAI6Q7pE=; b=RSfUO6Q5RdtdwFUGr3CTeVuFCtRsibj+pJRxONrRkdf63Gce7LcLUy4V9Jc3ASAucl Vom3cU4t/sfbAd7umtnSCBG9yZZsRkdaWaldkSsaSF97+KvzRBdf2UVtA9/kkNox3cBo yM8XIIf8onupZI46/gv+Oqarn/7UjI0TO2+6bNQXHCJlQeSBjFYOPo8jELY7Oj0j4n9B GiexkvB46xmxBDzHZchRzMCVjcaI1m5oD16AGQsGPOmuCtRxYLogfJ2v5Dkc9PfQIr0L EUU0Y6N/oWsY/3aTpMja/pRgny1DD5RBXZD93nFvMGILreOxgipasd3R1JnMcrT462ed cHqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=mENeNh8T; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j24si5144651ejb.48.2020.10.08.20.58.43; Thu, 08 Oct 2020 20:59:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=mENeNh8T; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731053AbgJICSX (ORCPT + 99 others); Thu, 8 Oct 2020 22:18:23 -0400 Received: from z5.mailgun.us ([104.130.96.5]:62727 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729724AbgJICSW (ORCPT ); Thu, 8 Oct 2020 22:18:22 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1602209902; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=FkOCWwPURdXFHzjnCkMfUjx+hI/JNP6MMQUkAI6Q7pE=; b=mENeNh8TtcBeLnqPn6S7+Z+JZiv/15bD2LrrvftSsM6yZD3xsQ6cMZloDeeTHh4DU2cy5pzo RUEiq5S48bMmLl2yduv+iuFe7VpWl0nhmRP6wp/wO8Y53m6AXPyvmg+lYpFROWJiL1VO3QnC oLnibflL8h5WLMTFcYDTY0a8Gng= X-Mailgun-Sending-Ip: 104.130.96.5 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-east-1.postgun.com with SMTP id 5f7fc86eaad2c3cd1cef5f87 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 09 Oct 2020 02:18:22 GMT Sender: pradeepc=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 9129BC43391; Fri, 9 Oct 2020 02:18:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from pradeepc2-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pradeepc) by smtp.codeaurora.org (Postfix) with ESMTPSA id E092AC433FE; Fri, 9 Oct 2020 02:18:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E092AC433FE Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=pradeepc@codeaurora.org From: Pradeep Kumar Chitrapu To: Johannes Berg , ath11k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Pradeep Kumar Chitrapu Subject: [PATCH 4/4] ath11k: mesh: add support for 256 bitmap in blockack frames in 11ax Date: Thu, 8 Oct 2020 19:18:11 -0700 Message-Id: <20201009021811.18584-5-pradeepc@codeaurora.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201009021811.18584-1-pradeepc@codeaurora.org> References: <20201009021811.18584-1-pradeepc@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Currently 256 bitmap in blockack frames is being set only for AP mode. Fix this to set whenever beacon has changed and has HE capability there by supporting mesh as well. Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.1.0.1-01228-QCAHKSWPL_SILICONZ-1 Signed-off-by: Pradeep Kumar Chitrapu --- drivers/net/wireless/ath/ath11k/mac.c | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index 77d073054ba2..7e8a4dfe49a9 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -1904,20 +1904,6 @@ static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw *hw, if (ret) ath11k_warn(ar->ab, "failed to update bcn template: %d\n", ret); - - if (vif->bss_conf.he_support) { - ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, - WMI_VDEV_PARAM_BA_MODE, - WMI_BA_MODE_BUFFER_SIZE_256); - if (ret) - ath11k_warn(ar->ab, - "failed to set BA BUFFER SIZE 256 for vdev: %d\n", - arvif->vdev_id); - else - ath11k_dbg(ar->ab, ATH11K_DBG_MAC, - "Set BA BUFFER SIZE 256 for VDEV: %d\n", - arvif->vdev_id); - } } if (changed & (BSS_CHANGED_BEACON_INFO | BSS_CHANGED_BEACON)) { @@ -1953,6 +1939,14 @@ static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw *hw, if (arvif->is_up && vif->bss_conf.he_support && vif->bss_conf.he_oper.params) { + ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, + WMI_VDEV_PARAM_BA_MODE, + WMI_BA_MODE_BUFFER_SIZE_256); + if (ret) + ath11k_warn(ar->ab, + "failed to set BA BUFFER SIZE 256 for vdev: %d\n", + arvif->vdev_id); + param_id = WMI_VDEV_PARAM_HEOPS_0_31; param_value = vif->bss_conf.he_oper.params; ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, -- 2.17.1