From patchwork Sat Aug 29 03:38:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 248670 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602425ilg; Fri, 28 Aug 2020 20:38:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0VIKqrBwNXb4+3+2E0toitBCrKOcf0cTXBy1dlqTbjUG6d5AStNPPombOPTC55YT051+H X-Received: by 2002:a05:6638:1685:: with SMTP id f5mr3952780jat.48.1598672299396; Fri, 28 Aug 2020 20:38:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672299; cv=none; d=google.com; s=arc-20160816; b=j9bQwnB6Sglp4zoK7vueWrOb8zd/V+vy0v/MNvzGLANSOHIBSx4R9i/KyUzE5S4aMW w7MyzHCRMLv6mxiV1VECeJ0Qi8CG2sW5v+m9CDiUzOBlocuE24jlZyMOJOuP1TL8iido KccKEJRGx6jp7GLAGsjQAbHNrGJ6OYNQiUC37EA1EIGua5JRFRtLdxFzP7C8nqk7a1RN /ubfzxrRsZv6g5oTDb5AtjC7S1PN4Fwh3vl2onYLAC2OtvZo4G0AG2NEWiz19tssIfkK ameTNv0xYGV90uAO/MpO8BuEnxocqxinKIOcbbYgUSomYqCqTeg5qh7DkFShcNyACAk/ tR5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:dkim-signature; bh=gHqQDN5IxrvJjBLiAnLnro0T+QurMeVLyTG0lkRsIQI=; b=vPrwJY3zCFmXeG2d9R9YI/4pE67djxsbHwspO/JsnLB8JK8Zdzwk9Dl8Pebh1iPywu OdpJIXKCrUWEnCzm79Ac48oEEjP4gwrV+M05bCOFUnhu/LCmgVuu5JjyYq9I9Lnp4aJQ pVg/qzYTAz9FyFajSmM/9fplf96uBiH/c2/Q9Vp0jPgc4ZIlQVM8cTJ6hLpfBKtf/gAk DyREgZCaivtwKTAea3BCHDLJQPjqpb8udVRQqoTt4knIjqPiypXg7uDbzpz100Dhb4ZZ ZovbNrGe0ImtY+SWPvD5zPJPkZbLn1xBUNbxZc2LvjB2rDaGS2t96ciJ/BX3Imw/HoG9 G9UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=EixrOi48; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kv5UYtoW; spf=pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) smtp.mailfrom="wcn36xx-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from merlin.infradead.org (merlin.infradead.org. [2001:8b0:10b:1231::1]) by mx.google.com with ESMTPS id y8si1059895ilj.140.2020.08.28.20.38.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) client-ip=2001:8b0:10b:1231::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=EixrOi48; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kv5UYtoW; spf=pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) smtp.mailfrom="wcn36xx-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=gHqQDN5IxrvJjBLiAnLnro0T+QurMeVLyTG0lkRsIQI=; b=EixrOi48NqlzCeSD8VrvCd65F SvL/PFAS37G7QZ070ZKG+ah3LOV7JpG5kxz8g3FA2L9FcGO0ZebCidtNNb8w2ltNz9UyKYiJtympY gXQrK8NqQqagw5iACYBQjLcU2+QZawBVttze+LAzUWByexol7DJY2DoruTTyWSBBt14TzQVGsXb0d SV/H5x5Q0hvsvoyd0aqvSQSCWtZiH53IOR2KdlSky7fX2g/o6UE+kghcaCkk+JjgnKKhj7PV6qTrc dYFradXwV23mJWSr1CoSyNBwQXOVdThHRyENaMTqrFLQewfRnzel4DJzCYmococ4c5xx3g4ELqikQ HnEYNckBQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrh2-0002BV-48; Sat, 29 Aug 2020 03:38:16 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrgy-00028C-IU for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:13 +0000 Received: by mail-wr1-x442.google.com with SMTP id b18so872111wrs.7 for ; Fri, 28 Aug 2020 20:38:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OrUSz+1vWHM3urmxg+gRDOL5sDh0IwWl1lMxkmx+/w8=; b=kv5UYtoW73TpFJamx3FmTdr9yf22LZNZwnNzYkMmBwJTDzwSmbUuqAWF4t0seCeyIa qILTgixj8EVNwAIyIZ9kQJuW2uKUnx6oH4KChF/ude7m79fvzPzgSiIQxyJfhFnw+amh 4drFrrVFXTgru/A88Tdf773cW7usGhnDbln2JQv1+T5lhwJjMMsGDvdeZymBIyHNqzCR f6IRRndbGe98Zo0/yprgfwXcB73xcID0UV4gRLMjlZ49V54TsZzZeJzo+XVXctl2A61u RdGZQkzR/36FB6x/FXiHcN87nYj9yKxXoCVhQCF3KfEUNBLRdVnvtb9Nb2HwiCE0uMYJ UXJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OrUSz+1vWHM3urmxg+gRDOL5sDh0IwWl1lMxkmx+/w8=; b=WvLjs+BnpyA69zENdyGwi225DyZVpXq5rtSebB8t7AneA+iciwwNKEtoB83R595op3 jE/jQU6081oA02rRebpeg1J1IBUh9zee0dahZSLLfqqKe3i0bZmGSd4036ufZLEkaND8 rVW73+VjCzi+oooUGn0fOiS4m3fq+x3pKLNZN8phqTXKZBT3HxL76RsjHuz0xeLh33w6 jd+JWefri81HNx4aBkVBabljWmS9EgfAAtlqrAf5GqIgylslhbohIvIWjEnn6GSue3Bs 1IYrO1Hyzr/pbfjoDfTNUvp1ZFRPSuORooP3NHDCjCyaqQcYa81VPvqKFdJIaHWe+3Nb YTYQ== X-Gm-Message-State: AOAM53236tTQ8Gv+QNuRi8O9muGxGC3IANNohN4oZ+ThENainwxe/Ah1 fENsfrtY2LGUmvvaIFnTIbEr/Q== X-Received: by 2002:a5d:4352:: with SMTP id u18mr1752280wrr.239.1598672291473; Fri, 28 Aug 2020 20:38:11 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id v29sm1827545wrv.51.2020.08.28.20.38.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:11 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 08/10] wcn36xx: Add Supported rates V1 structure Date: Sat, 29 Aug 2020 04:38:44 +0100 Message-Id: <20200829033846.2167619-9-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033846.2167619-1-bryan.odonoghue@linaro.org> References: <20200829033846.2167619-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200828_233812_714435_DB826A7F X-CRM114-Status: GOOD ( 15.69 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:442 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: wcn36xx@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bryan.odonoghue@linaro.org, shawn.guo@linaro.org, loic.poulain@linaro.org Sender: "wcn36xx" Errors-To: wcn36xx-bounces+patch=linaro.org@lists.infradead.org This commit adds the supported rates V1 structure as defined in Prima riva/inc/wlan_hal_msg.h Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/hal.h | 70 ++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) -- 2.27.0 _______________________________________________ wcn36xx mailing list wcn36xx@lists.infradead.org http://lists.infradead.org/mailman/listinfo/wcn36xx diff --git a/drivers/net/wireless/ath/wcn36xx/hal.h b/drivers/net/wireless/ath/wcn36xx/hal.h index c7661fb50c10..573799274a02 100644 --- a/drivers/net/wireless/ath/wcn36xx/hal.h +++ b/drivers/net/wireless/ath/wcn36xx/hal.h @@ -1413,6 +1413,76 @@ struct wcn36xx_hal_config_sta_req_msg { struct wcn36xx_hal_config_sta_params sta_params; } __packed; +struct wcn36xx_hal_supported_rates_v1 { + /* For Self STA Entry: this represents Self Mode. + * For Peer Stations, this represents the mode of the peer. + * On Station: + * + * --this mode is updated when PE adds the Self Entry. + * + * -- OR when PE sends 'ADD_BSS' message and station context in BSS + * is used to indicate the mode of the AP. + * + * ON AP: + * + * -- this mode is updated when PE sends 'ADD_BSS' and Sta entry + * for that BSS is used to indicate the self mode of the AP. + * + * -- OR when a station is associated, PE sends 'ADD_STA' message + * with this mode updated. + */ + + enum sta_rate_mode op_rate_mode; + + /* 11b, 11a and aniLegacyRates are IE rates which gives rate in + * unit of 500Kbps + */ + u16 dsss_rates[WCN36XX_HAL_NUM_DSSS_RATES]; + u16 ofdm_rates[WCN36XX_HAL_NUM_OFDM_RATES]; + u16 legacy_rates[WCN36XX_HAL_NUM_POLARIS_RATES]; + u16 reserved; + + /* Taurus only supports 26 Titan Rates(no ESF/concat Rates will be + * supported) First 26 bits are reserved for those Titan rates and + * the last 4 bits(bit28-31) for Taurus, 2(bit26-27) bits are + * reserved + * Titan and Taurus Rates + */ + u32 enhanced_rate_bitmap; + + /* 0-76 bits used, remaining reserved + * bits 0-15 and 32 should be set. + */ + u8 supported_mcs_set[WCN36XX_HAL_MAC_MAX_SUPPORTED_MCS_SET]; + + /* RX Highest Supported Data Rate defines the highest data + * rate that the STA is able to receive, in unites of 1Mbps. + * This value is derived from "Supported MCS Set field" inside + * the HT capability element. + */ + u16 rx_highest_data_rate; + + /* Indicates the Maximum MCS that can be received for each spatial + * stream. + */ + u16 vht_rx_mcs_map; + + /* Indicates the highest VHT data rate that the STA is able to + * receive. + */ + u16 vht_rx_highest_data_rate; + + /* Indicates the Maximum MCS that can be transmitted for each spatial + * stream. + */ + u16 vht_tx_mcs_map; + + /* Indicates the highest VHT data rate that the STA is able to + * transmit. + */ + u16 vht_tx_highest_data_rate; +} __packed; + struct wcn36xx_hal_config_sta_params_v1 { /* BSSID of STA */ u8 bssid[ETH_ALEN];