Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4669199pxu; Wed, 21 Oct 2020 02:09:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbwwAGH4kAZMKv+W0FXVOQpNI7gyX8jIC3bdGsqJknBzlZrIzd91xpPEfQ8gedg2EANZgV X-Received: by 2002:a17:906:ca54:: with SMTP id jx20mr2545566ejb.541.1603271355231; Wed, 21 Oct 2020 02:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603271355; cv=none; d=google.com; s=arc-20160816; b=kOkWYZFhT+8LsyKe9SR7pxVyM/TixBi+PgZV71q6pTXTCs85qfcnu5FaqvauV7J55S QATo1dCwjSkziZrwTlsNMEMaLpNZQBCjPw6sPd+VcKPxuENbPyJ0uvYhgKlRVkKc54AS Y+6cqD2Ae07FSTkvojv9RuS/pyl38R3e9+V8hK8s4M3FPRSPCmZL+JZFSzzMDJa1jp6o 6j2hlJqQPlkVmqFnZ95jPRXEBHFftH0NO55mKNKVyE6y13UFqp6042c50WCU8euRTb0/ iJ6BVshcY3/BZRmlY7rUer8OxGsOtRxNB4dyOrJyZKjWikQ9H7UuLAdK1J6Pc4iLMCiJ gV4g== 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=milswLlX8kOIsL5yi1bY3WdEFJnmCXaz1dDrwAoh4gM=; b=J2udV2PhkH9UbClcoFUZI8QQMwjKB2NCJXMZHgUJRq2K1xjEP6U6pJ4NZR5DW3vc3/ ffwL2FLQ04JEfOC42IoC/48mt3WqdDf/uOnylfakpfRnfm9uWKxigoJpMGhBiJZ7OVtr ctxPOPC0W17zhY6B/Q3ZSMi+QGeQ26ZjRLQdRiE0iBcQjA3nR0Cji7H5Rg7mPzMjmbuw FSHEtW8bP9W4bumk+IAxdunIlYpIcyUgFcFoQ7Rz7T2C+n4HxVhYBhyaJzHOxzv14QWf /c6tU9GLn3qMKOeJBX3Ig2ZcFUcuKGShDjlZ7Q/fco9vv9w1s+/mQUmrZPm1v2AYl5ig mnVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="WRvsnT/8"; 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 n14si883533eja.99.2020.10.21.02.08.51; Wed, 21 Oct 2020 02:09:15 -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="WRvsnT/8"; 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 S2390258AbgJTSbi (ORCPT + 99 others); Tue, 20 Oct 2020 14:31:38 -0400 Received: from z5.mailgun.us ([104.130.96.5]:56211 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390270AbgJTSbh (ORCPT ); Tue, 20 Oct 2020 14:31:37 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1603218697; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=milswLlX8kOIsL5yi1bY3WdEFJnmCXaz1dDrwAoh4gM=; b=WRvsnT/87b9LnuQ6yp14xuugRWYLp8oUeRihAbiOK5sD0fXeAIfvx4O7hdHgWq/YHkiTDeio Jji0jw2QGUj+H2MBQB2RH+ErFLqUAS4ltq38Pm+xT0rXG/SPg4n/ip8Szc75HYcqwrSR42bE cHlfdaZXraH4PRlpGxp1hQRUjKg= 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-n06.prod.us-west-2.postgun.com with SMTP id 5f8f2cfaa03b63d673d1651a (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 20 Oct 2020 18:31:22 GMT Sender: pradeepc=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id BD681C433FE; Tue, 20 Oct 2020 18:31:22 +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 1CD29C433C9; Tue, 20 Oct 2020 18:31:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1CD29C433C9 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 v2 4/4] ath11k: mesh: add support for 256 bitmap in blockack frames in 11ax Date: Tue, 20 Oct 2020 11:31:11 -0700 Message-Id: <20201020183111.25458-5-pradeepc@codeaurora.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201020183111.25458-1-pradeepc@codeaurora.org> References: <20201020183111.25458-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 b44b67760e02..ecb6cd05efe9 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