From patchwork Thu Sep 10 15:05:51 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: 249635 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp825366ilk; Thu, 10 Sep 2020 08:05:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxd5xedUwn3KMMCQzlEuJJK2dmckxW3GT6OQSwf235KuzM3oT1O59gpd+tPheu0ohoDsR8s X-Received: by 2002:a1f:a905:: with SMTP id s5mr4318770vke.10.1599750318228; Thu, 10 Sep 2020 08:05:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599750318; cv=none; d=google.com; s=arc-20160816; b=SW+kgLJEdtrA21tmLkGQiAG/7qDRfuv8pBDnB+CQZKFlA/X+79zNu1qv7nzvwhEMnS 59AluInkRxpmszFYhl2YtUZLFnw5pdaE1L0w+CaRIB5KDlu46qRc/oYVVQSr8QVqwHM/ cBhZuPUY4Z4zix7LiPiQrwZF+YoYDAWYhjFGZ4kPwX1rBRwjLFZLELStllF6YBIQn04v 5QDmJ2uZnlx6xzdQcBkgyVDum7vToR/pssrii/WAauplP7GKNc5cskNO5mSXmIs1Y3i1 NvNeoZkFHCWG916zOlWQ4lYu5KTVcweev+BKb8hSqsFp+3KfFzLMPpQKNoLdBpE7WTeA dg2g== 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=jE0/mk11w4Yl70k6d5fUSSd45scIk/uOuMLMu8j9gpM=; b=o30+siJDGdgnl4HTBGvcuVSw/i2TAjnin9qCgeBVYlGzJvjlTytWVBhWBMx6UA45lO A4R6LAnN3rPqMwJajOCj6C3rYPsGpbtHeIxjPEgOapnPrb/ZNcB0+SOPK7yaZehKXp3b bIhyZD+IVOIfZKrwpu+Fiv7LTNNhGJStWEtDEYWK7Uh0/nn1A0BJnzmVcsGOEAsSJmyb kc0BwHk68J7oDGD8znJT673PGVICen0VIKLvaQ/ucGiiJVIg4xGFTvQJS5d4JUOdIGJh IAlsOflFmQlnllgG4/tO5nN6UnMO9pnBJw/89oowc/wAQh4Xz2fbEJJ2mtFa47mciLAh 49pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b="S/q3lcSN"; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=IZI9RjLP; 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 d7si218059uaf.118.2020.09.10.08.05.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:05:18 -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="S/q3lcSN"; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=IZI9RjLP; 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=jE0/mk11w4Yl70k6d5fUSSd45scIk/uOuMLMu8j9gpM=; b=S/q3lcSNsI1peLoBmsUT4tDhn Pvoc1WzajYb6DWprYzAgV4+Sm7YC1ipTJjaA2ftIZADrkwIogVu+X8L08UQoIjR1MnTR4Ai+mh8Gi tr82m6yJzg7EUaoSHfzAjUTkMGUf7HVgZQ3Q9gdtZUhs5srZpjdHocwKGivtC0N+p11jtgbmSygvG F7YfGwC7IAaHF7krc+2TYDoo6RB57nYdH0H9CRf4Pag1WbgXDyr5lXFQedOVeyhdHNUclUt6FhJi8 RSZYoUZiPGvF80Vi3efGdsOcTqWu7UEcizHs0h6QO0yjvYX0FAhE5QKuYxW3dtw2AwjRlKJGnD9cx C+5e0Mc/w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGO8Q-0007XC-SY; Thu, 10 Sep 2020 15:05:14 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGO8N-0007UY-LA for wcn36xx@lists.infradead.org; Thu, 10 Sep 2020 15:05:12 +0000 Received: by mail-wr1-x443.google.com with SMTP id g4so7086099wrs.5 for ; Thu, 10 Sep 2020 08:05:11 -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=HqHLp1msqI2btcU80XmiahuTU9fQPQhG4xjHOmh9N3E=; b=IZI9RjLPsZtDmR1K6FXBEjSuD+Nn8XBfF2l44tXm0qvaW8Cf+ijXJauAxJgho2bJzI qklqQzKv/SLavr7ry8CIIZ8NUzpOIgzoah8yBgFHfIkFFBAl5FqSESxmZZOvAKvotj9q DiAfgr4fi3MNWc5Socz04euqF0bVEx9+ycSDimrQHbtPr5QUygJZPob2CGmdK42jb/ij kFMw/3RdSNVe/Ou0WMrjwKDDelzkltWR1anyntKVyVbRgksFTzovPWkVM1K5u+HhkMqB ynFJWe0AddxwePCeBeGHeG33/cwbxGWXl+7dG9naBmkfRNB5PgR2XUJ4QxSAvH4tI4dk 9d5Q== 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=HqHLp1msqI2btcU80XmiahuTU9fQPQhG4xjHOmh9N3E=; b=LoRc/eJPWPSwryEoVrNnAS51ZZJOF79ontVUKt2QVDWVOE7W/hqAAamswjrMFzMA8J YFmOZtI2bz+c2+J03MpjhYDFHAXps5vwz8885mSoYdFYwKQec01W0nZqgI80KXQltMHQ gIRzQTiHtLM1U0zetwIoS4/LO0mQNt5s+yN4jwo0tsXcoe+qtGPBpn4QTJogwXJpy6VJ DFC4DFGN+8CoHEEaKtZJ8D+qao16yzBff6A1q2K/TOenNw1DIe9y9laeCaP8R6jm+Bhw NZoutPpk4V7Jl0ZxnoXmXmZO3KT5r4g6fenNrA0mi5tudDHq4G5Wx/DQQwGQOkhQGPgq xsag== X-Gm-Message-State: AOAM532YWai+ymFWwBb+tKAA6Y0VJI0g/nWhm0k41y+et1CAimEGbmBh DYVKRDqJqoS+grUPvgkSlAgBBw== X-Received: by 2002:a05:6000:1184:: with SMTP id g4mr9551476wrx.20.1599750310677; Thu, 10 Sep 2020 08:05:10 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id g8sm3852620wmd.12.2020.09.10.08.05.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:05:10 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v5 6/7] wcn36xx: Add wcn36xx_smd_set_bss_vht_params() Date: Thu, 10 Sep 2020 16:05:51 +0100 Message-Id: <20200910150552.2178882-7-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200910150552.2178882-1-bryan.odonoghue@linaro.org> References: <20200910150552.2178882-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-20200910_110511_723678_CB45F746 X-CRM114-Status: GOOD ( 11.62 ) 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:443 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 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 -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 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 wcn36xx_smd_set_bss_vht_params(). The job of this function is to decide if the BSS is VHT capable and if so set the appropriate bit in the BSS parameter structure for passing to the firmware. VHT Channel width set is not set since we don't support 160MHz. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 13 +++++++++++++ 1 file changed, 13 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/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index ab9b6116cc75..d5089aa382bd 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -146,6 +146,19 @@ static void wcn36xx_smd_set_bss_ht_params(struct ieee80211_vif *vif, } } +void +wcn36xx_smd_set_bss_vht_params(struct ieee80211_vif *vif, + struct ieee80211_sta *sta, + struct wcn36xx_hal_config_bss_params_v1 *bss); +void +wcn36xx_smd_set_bss_vht_params(struct ieee80211_vif *vif, + struct ieee80211_sta *sta, + struct wcn36xx_hal_config_bss_params_v1 *bss) +{ + if (sta && sta->vht_cap.vht_supported) + bss->vht_capable = 1; +} + static void wcn36xx_smd_set_sta_ht_params(struct ieee80211_sta *sta, struct wcn36xx_hal_config_sta_params *sta_params) {