From patchwork Tue Feb 19 12:24:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dundi Raviteja X-Patchwork-Id: 10819833 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-2.web.codeaurora.org (Postfix) with ESMTP id 00D081399 for ; Tue, 19 Feb 2019 12:24:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E354C2C0A1 for ; Tue, 19 Feb 2019 12:24:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D7F682C09F; Tue, 19 Feb 2019 12:24:14 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 78A652C0A0 for ; Tue, 19 Feb 2019 12:24:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727246AbfBSMYN (ORCPT ); Tue, 19 Feb 2019 07:24:13 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:32814 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725772AbfBSMYN (ORCPT ); Tue, 19 Feb 2019 07:24:13 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 0BEE660740; Tue, 19 Feb 2019 12:24:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1550579052; bh=9zsWZGcx4pJzHe2iWIDWGi4jyNq8kGeFAvJvRGaCOtk=; h=From:To:Cc:Subject:Date:From; b=W+6/ABcY15C4dNqaWU3rtERfiOkQyX0ZPynfWU7oqBdVjfaNRsreKhRe6bSBI39l3 wpPdHggwXc6CSzwuTuMNHD1shiWeLnkIRSAEMWx6ved+g3HgFaeQCKZI7ik2lLPXxQ lQ9bw6Ry5HyBkVjQccFDP4kv+8VaDWFwvDqShYzE= Received: from dundi-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dundi@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 562AC6071A; Tue, 19 Feb 2019 12:24:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1550579051; bh=9zsWZGcx4pJzHe2iWIDWGi4jyNq8kGeFAvJvRGaCOtk=; h=From:To:Cc:Subject:Date:From; b=ReQkn7fZ5wlRAp8tLzjgI5nQHszZFWGKJCb4F3Sl5VQ2T29+QhhXWScDBk9PE+9M2 TPjNz7emHLwedXOV9lJt0dXt6y9tyswBGGDUNsHk2g3fdaI48KQTlc03Fv9I5e12nd 0uDBHV2SOtCVMINANgpGBgO4hYY5abRlGHK809UQ= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 562AC6071A Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=dundi@codeaurora.org From: Dundi Raviteja To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Dundi Raviteja Subject: [PATCH v2] ath10k: Enable support for beacon interval per VAP Date: Tue, 19 Feb 2019 17:54:06 +0530 Message-Id: <1550579046-22649-1-git-send-email-dundi@codeaurora.org> X-Mailer: git-send-email 1.9.1 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 Enable support to configure different beacon interval per VAP. To support this feature, map different beacon interval service bit to wmi tlv service. Tested HW: WCN3990 Tested FW: WLAN.HL.2.0-01188-QCAHLSWMTPLZ-1 Signed-off-by: Dundi Raviteja --- This change is dependent on the below patchset ath10k: Add support for ack rssi value of management tx packets (https://patchwork.kernel.org/patch/10809631/) --- drivers/net/wireless/ath/ath10k/mac.c | 33 +++++++++++++++++++++++++++++++ drivers/net/wireless/ath/ath10k/wmi-tlv.h | 3 +++ 2 files changed, 36 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index e49b367..09c4705 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -8232,6 +8232,30 @@ void ath10k_mac_destroy(struct ath10k *ar) }, }; +static struct +ieee80211_iface_combination ath10k_tlv_qcs_bcn_int_if_comb[] = { + { + .limits = ath10k_tlv_if_limit, + .num_different_channels = 1, + .max_interfaces = 4, + .beacon_int_infra_match = true, + .beacon_int_min_gcd = 1, + .n_limits = ARRAY_SIZE(ath10k_tlv_if_limit), + }, + { + .limits = ath10k_tlv_qcs_if_limit, + .num_different_channels = 2, + .max_interfaces = 4, + .n_limits = ARRAY_SIZE(ath10k_tlv_qcs_if_limit), + }, + { + .limits = ath10k_tlv_if_limit_ibss, + .num_different_channels = 1, + .max_interfaces = 2, + .n_limits = ARRAY_SIZE(ath10k_tlv_if_limit_ibss), + }, +}; + static const struct ieee80211_iface_limit ath10k_10_4_if_limits[] = { { .max = 1, @@ -8642,6 +8666,15 @@ int ath10k_mac_register(struct ath10k *ar) ath10k_tlv_qcs_if_comb; ar->hw->wiphy->n_iface_combinations = ARRAY_SIZE(ath10k_tlv_qcs_if_comb); + + if (test_bit + (WMI_SERVICE_VDEV_DIFFERENT_BEACON_INTERVAL_SUPPORT, + ar->wmi.svc_map)) { + ar->hw->wiphy->iface_combinations = + ath10k_tlv_qcs_bcn_int_if_comb; + ar->hw->wiphy->n_iface_combinations = + ARRAY_SIZE(ath10k_tlv_qcs_bcn_int_if_comb); + } } else { ar->hw->wiphy->iface_combinations = ath10k_tlv_if_comb; ar->hw->wiphy->n_iface_combinations = diff --git a/drivers/net/wireless/ath/ath10k/wmi-tlv.h b/drivers/net/wireless/ath/ath10k/wmi-tlv.h index e07e990..9f78502 100644 --- a/drivers/net/wireless/ath/ath10k/wmi-tlv.h +++ b/drivers/net/wireless/ath/ath10k/wmi-tlv.h @@ -1567,6 +1567,9 @@ enum wmi_tlv_service { SVCMAP(WMI_TLV_SERVICE_THERM_THROT, WMI_SERVICE_THERM_THROT, WMI_TLV_MAX_SERVICE); + SVCMAP(WMI_TLV_SERVICE_VDEV_DIFFERENT_BEACON_INTERVAL_SUPPORT, + WMI_SERVICE_VDEV_DIFFERENT_BEACON_INTERVAL_SUPPORT, + WMI_TLV_MAX_SERVICE); } #undef SVCMAP