Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2866584ybk; Mon, 18 May 2020 09:48:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRMtCstEp/gOA5mVfMF+f+/4VVqd1ffhw32oX/IW4uIyes64Rha0aQiBsZOSs8ciff48/+ X-Received: by 2002:a50:a7e3:: with SMTP id i90mr14941522edc.6.1589820517056; Mon, 18 May 2020 09:48:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589820517; cv=none; d=google.com; s=arc-20160816; b=rUpF6HGQLUnKkCXNptP+XdMdg2+m2r/EhhjmSQCCiSJW0CgclU8Lk7/tx8RilPwnZZ Q77aMT1IQXiZt44z+mUx6P157GKwB5LlAspY7sr5m8F33C8WyHSOkl1a4mV80PURdbS5 1V0Q995TQedNSQExm/WdLenh9MANQQUOa9Fqa/Byt0F3P1HC1Nbynv/eltxYBjrFq4T+ SJbVQvNHYC5KA2aKYKM2o7+nj0AlBn+sCvYbBOnF5zF2Zz2VDKoD3DxM4X2fbDLMHaNa rzvKSch/oddipmqXXOJd62FYo0lA1c9AgFpuJv0BwB8d5/TemDHbFmFSupWo31KQ2G4z csiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature; bh=e/h3UxJUqeFIgrhuE3QEGpXyb5lgfcCUY+gHR63w/jE=; b=lh4eUjOi19BukwiKU1lXP57w8kX3yNQ68zWbo4mnTOzw+1Rzx864lrZhOgQnRD6Q/A sy5pnTqhNlP0BMjc+ZWR7XMIAAvd2qMS7ctAfTX1Tb8mCtuWmqW4qt8DBRUCuYUaUbS5 OebvElc9iEBfbuDDDkzkE5bXv09zzRLbQYk9kKsSRb0a/4lRfmmvbkICD7I55M8jjWtS MYIF2ymWbBAEBWZDdG3o3AsLnfwvDtXGHgaKWwfXpYKx6OIKjnh1vT8sCVJmKBSr3bC9 byZIUbWqxNy8Ytf9lbmbodnkLAhB0C1ACmL2zAaqYPX4ql3Xnhv8g0BjPQqP6g+NeRgm Ztyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=YMRW4vsX; 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 uz8si6828041ejb.67.2020.05.18.09.48.13; Mon, 18 May 2020 09:48:37 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=YMRW4vsX; 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 S1728366AbgERQou (ORCPT + 99 others); Mon, 18 May 2020 12:44:50 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:30946 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728231AbgERQot (ORCPT ); Mon, 18 May 2020 12:44:49 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1589820289; h=Content-Transfer-Encoding: Content-Type: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=e/h3UxJUqeFIgrhuE3QEGpXyb5lgfcCUY+gHR63w/jE=; b=YMRW4vsXFkxDYOCFSAkapXe9SrxvBdbhRn28xwfhY22WJws1dweJT69OU/WPt+HywJnSeq1a 2OIE4ep6uJdERJzAIhkDzNyE/vQZ/Sk8PkfVeKKHvVpt2QaxwggvoHBSZhPTwZQhqJHTtYGZ 0ZQm+eSJM1vdIRvelSktxTwf4Tc= X-Mailgun-Sending-Ip: 104.130.122.26 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 mxa.mailgun.org with ESMTP id 5ec2bb74.7fd5867b7228-smtp-out-n01; Mon, 18 May 2020 16:44:36 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 0DDD4C44795; Mon, 18 May 2020 16:44:36 +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=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable 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 75557C43637; Mon, 18 May 2020 16:44:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 75557C43637 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=none 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 5/9] ath11k: extend peer_assoc_cmd for 6GHz band Date: Mon, 18 May 2020 09:44:20 -0700 Message-Id: <20200518164424.29497-6-pradeepc@codeaurora.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200518164424.29497-1-pradeepc@codeaurora.org> References: <20200518164424.29497-1-pradeepc@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This adds support required for configuring min_data_rate of 6GHz oper IE and peer_he_caps_6ghz in peer assoc command. The Minimum Rate field indicates the minimum rate, in units of 1 Mb/s, that the non-AP STA is allowed to use for sending PPDUs as defined in IEEE P802.11ax™/D6.0. Signed-off-by: Pradeep Kumar Chitrapu --- drivers/net/wireless/ath/ath11k/wmi.c | 2 ++ drivers/net/wireless/ath/ath11k/wmi.h | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c index c299ad0936f5..c2e3a4d6f07e 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.c +++ b/drivers/net/wireless/ath/ath11k/wmi.c @@ -1789,6 +1789,7 @@ int ath11k_wmi_send_peer_assoc_cmd(struct ath11k *ar, cmd->peer_he_cap_info = param->peer_he_cap_macinfo[0]; cmd->peer_he_cap_info_ext = param->peer_he_cap_macinfo[1]; cmd->peer_he_cap_info_internal = param->peer_he_cap_macinfo_internal; + cmd->peer_he_caps_6ghz = param->peer_he_caps_6ghz; cmd->peer_he_ops = param->peer_he_ops; memcpy(&cmd->peer_he_cap_phy, ¶m->peer_he_cap_phyinfo, sizeof(param->peer_he_cap_phyinfo)); @@ -1842,6 +1843,7 @@ int ath11k_wmi_send_peer_assoc_cmd(struct ath11k *ar, /* HE Rates */ cmd->peer_he_mcs = param->peer_he_mcs_count; + cmd->min_data_rate = param->min_data_rate; ptr += sizeof(*mcs); diff --git a/drivers/net/wireless/ath/ath11k/wmi.h b/drivers/net/wireless/ath/ath11k/wmi.h index afa3c4cf90e9..fd82cff7537b 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.h +++ b/drivers/net/wireless/ath/ath11k/wmi.h @@ -1011,6 +1011,7 @@ enum wmi_tlv_vdev_param { WMI_VDEV_PARAM_FILS_MAX_CHANNEL_GUARD_TIME, WMI_VDEV_PARAM_BA_MODE = 0x7e, WMI_VDEV_PARAM_SET_HE_SOUNDING_MODE = 0x87, + WMI_VDEV_PARAM_6GHZ_PARAMS = 0x99, WMI_VDEV_PARAM_PROTOTYPE = 0x8000, WMI_VDEV_PARAM_BSS_COLOR, WMI_VDEV_PARAM_SET_HEMU_MODE, @@ -3444,6 +3445,7 @@ struct peer_assoc_params { u32 tx_max_rate; u32 tx_mcs_set; u8 vht_capable; + u8 min_data_rate; u32 tx_max_mcs_nss; u32 peer_bw_rxnss_override; bool is_pmf_enabled; @@ -3472,6 +3474,7 @@ struct peer_assoc_params { bool he_flag; u32 peer_he_cap_macinfo[2]; u32 peer_he_cap_macinfo_internal; + u32 peer_he_caps_6ghz; u32 peer_he_ops; u32 peer_he_cap_phyinfo[WMI_HOST_MAX_HECAP_PHY_SIZE]; u32 peer_he_mcs_count; @@ -3509,6 +3512,8 @@ struct wmi_peer_assoc_complete_cmd { u32 peer_he_mcs; u32 peer_he_cap_info_ext; u32 peer_he_cap_info_internal; + u32 min_data_rate; + u32 peer_he_caps_6ghz; } __packed; struct wmi_stop_scan_cmd { -- 2.17.1