From patchwork Wed Sep 9 15:37:52 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: 249504 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp525102ilg; Wed, 9 Sep 2020 08:37:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyTPqKOfpgeEFgPo0psBKwiozU3a3ygZ8rregttJtlVWC4Uzg661e/auCpPOmHmBKty2ZQ X-Received: by 2002:a92:9646:: with SMTP id g67mr4277250ilh.116.1599665833441; Wed, 09 Sep 2020 08:37:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599665833; cv=none; d=google.com; s=arc-20160816; b=uQfBmUOMH7HwGpsH/xgdosK6qHIepba6k8kGCSKGa9Yx9ItIZGLmuIHrY84yYiMJ61 sKoFXY9QPGY98eeAbERueTuhYrWeAe18adc5mfru6JqX//JbNWIqE8athADsz6zVWlog crAJE8fgtg+WoXEBEJRMJzUSOGvh1/kFsfCip/5EJ+GFp17VTd4F6b5tmM7YmhU7/D73 u9jJvYZIFa0gcdhPeXBiD525gS0kfP7GzGotMdRvKHw0UEcoHjeF2a3VF7+RYyROHl6J 3RuCVyjlzr27NsDhGPpN4zG3TgTjwoWLj6KBWx39lef/723d7lnotE+u1HI9eMvoAyxp YA1A== 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=LjdB+S4LEnt5bGoRCmlvVuHUL37VvEE+2IBeNlBO47w=; b=OAgoDk+XuTP9hfrZ9ZtHVZSKG193u/bj2IxGE9yRXMMW8s3LO6Xp985z5CsrWBs3Ja qUXeEv0hl0SPv6GueJDTWCEelPUK1D0LisCdUuy50vtI2v2gyOUyO67vZevwWiBp6Djx TN6Y3r+oYzb7bY4Md5/El/4n6ZXhWbQceM/S1ozR0i1lzMC/izR2txENRYv+jNX3uC89 mYGbBRvbeiST5qtJUHp3xdsDTzrLgLINPCt5y5U1Ds1kUp84B5x1QBl2R2Z+Dr5xagcr yhKVE2yH4pEURZAoGrU6R+KQ5IX68wIMACeb34+CSo4XE+/tcRZV5W0X+BGMQHdw7Ryb 2bjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=airSSWyJ; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="lxcfZku/"; 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 e13si3507316jaq.72.2020.09.09.08.37.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:37:13 -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=airSSWyJ; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="lxcfZku/"; 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=LjdB+S4LEnt5bGoRCmlvVuHUL37VvEE+2IBeNlBO47w=; b=airSSWyJep1DvF9W7VT69JjoL NF/aXRZ7wePT/AI/U9Y90M7eiaNiTmVj8Lyg32/RO9OFVWBg+seKsF+ZynoYqwynmRB6YlzmUPyHt q7y3hAtXxaR0NwJEwotWQ3kftC3mUK35rTJ/BSJhCBxixGRTkgPrtujbWg2nSZqsTUvg0rXoKfprJ bxJwD1de8hgXEHDXM34TaI2jU4dWxsbQ4AHZKOWxUwgOoWEnPM499AQJJgZlIdSy3muGBzHZj8MZt 4qoCJ4xHUFqGno09mTRaDkN6aB2CsAWri4m4N5JDjKNUWY8pmh8EqY5hEmICWMp7E462H4MuqExi+ 4lyCYaj3w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG29m-0006pm-41; Wed, 09 Sep 2020 15:37:10 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG29j-0006oU-Ah for wcn36xx@lists.infradead.org; Wed, 09 Sep 2020 15:37:08 +0000 Received: by mail-wm1-x341.google.com with SMTP id q9so2736433wmj.2 for ; Wed, 09 Sep 2020 08:37:07 -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=YTwsOssKLuWm0RN1XuxIWtatvqfRvgRgu4IUBKS+A1E=; b=lxcfZku/uhGuk8yokqH2WaZ+jloQ85lqillMPiqaXSgPvhWT5/qCvOt/LB29RZcYHg mIllMij6oOC4gS/aTj1qiiXjdL6xxeAEE3MUZEpbx8v1iaA9JBC6Dg9RUtHPUWXgueFH xzqsnItJ6S25o8nyjQDZNzAFI5B+qjU4kTckRFaZ7kKf+9F0Bnvz2Aie0Bi6+vVKctLM JjDtMFe0a9Vh+HASj4sW3YcwGueVpy1UN6KAf9YpbHZLI/u8zkOQzQejW8XcmVwttZfE knPSyLxE+CBsvyi5OCbyRRV55R+SUHGqaRNhDzgwIpsbpxSfe9yzxSKHN+xdQSuRRoC3 Jx5g== 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=YTwsOssKLuWm0RN1XuxIWtatvqfRvgRgu4IUBKS+A1E=; b=rKNkgwO+g+Ykj7fLOiK6nfYxvMF9Jp/OybkCpcelXFGL+bc+Y/bctISLm/2hxVBmpw XcGHykESaVrTXBtq8johmqRK7YjtZMiMerEP1201+aOELh+tRyC4ANr0WIr4a36dA+5K qpKmlWgG5G4/2Wp7mahoUK2tMmq7GKUP05yRCgojLC9MVerhpQvokb4c3MvOXgyH362D ds4HVvrsTk2bihzRG5c6bzvml2ZXSxY9bff6QJRq+AKAuw+jwcKmwGgyWeLOQfKSM9VX 3BG3PqZ0W1j3pis9qOOtgYcK1ErFsHMSymqfrJtjY0KrHNSu2TQiMj56qpSd6gaX5c9K xlmw== X-Gm-Message-State: AOAM530DFpTNZsPbbX/OgE6MPlhTJMwPSB0GAwGiHs0NPY2glsVXgEia SdN2pWuqP7sm04g+7OUgcda2zQ== X-Received: by 2002:a7b:c753:: with SMTP id w19mr4009720wmk.157.1599665826371; Wed, 09 Sep 2020 08:37:06 -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 a83sm4424122wmh.48.2020.09.09.08.37.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:37:05 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v4 1/2] wcn36xx: Mark internal smd functions static Date: Wed, 9 Sep 2020 16:37:52 +0100 Message-Id: <20200909153753.2905176-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200909153753.2905176-1-bryan.odonoghue@linaro.org> References: <20200909153753.2905176-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-20200909_113707_401520_4079F072 X-CRM114-Status: GOOD ( 14.47 ) 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:341 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 marks all smd.c functions that are only used inside of smd.c as static. Previous commits added some VHT specific setup functions non-static which is the right thing to do in terms of having granular git commits that compile warning free. What we really want is for local not global scope on those functions. This patch makes the conversion from global to local scope. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 34 ++++++++++++++------------ 1 file changed, 18 insertions(+), 16 deletions(-) -- 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 18507b4d3681..61d9834b080d 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -80,7 +80,7 @@ static struct wcn36xx_cfg_val wcn36xx_cfg_vals[] = { WCN36XX_CFG_VAL(ENABLE_DYNAMIC_RA_START_RATE, 133), /* MCS 5 */ }; -struct wcn36xx_cfg_val wcn3680_cfg_vals[] = { +static struct wcn36xx_cfg_val wcn3680_cfg_vals[] = { WCN36XX_CFG_VAL(CURRENT_TX_ANTENNA, 1), WCN36XX_CFG_VAL(CURRENT_RX_ANTENNA, 1), WCN36XX_CFG_VAL(LOW_GAIN_OVERRIDE, 0), @@ -242,7 +242,7 @@ static void wcn36xx_smd_set_bss_ht_params(struct ieee80211_vif *vif, } } -void +static void wcn36xx_smd_set_bss_vht_params(struct ieee80211_vif *vif, struct ieee80211_sta *sta, struct wcn36xx_hal_config_bss_params_v1 *bss) @@ -279,7 +279,7 @@ static void wcn36xx_smd_set_sta_ht_params(struct ieee80211_sta *sta, } } -void wcn36xx_smd_set_sta_vht_params(struct wcn36xx *wcn, +static void wcn36xx_smd_set_sta_vht_params(struct wcn36xx *wcn, struct ieee80211_sta *sta, struct wcn36xx_hal_config_sta_params_v1 *sta_params) { @@ -301,7 +301,7 @@ void wcn36xx_smd_set_sta_vht_params(struct wcn36xx *wcn, } } -void wcn36xx_smd_set_sta_ht_ldpc_params(struct ieee80211_sta *sta, +static void wcn36xx_smd_set_sta_ht_ldpc_params(struct ieee80211_sta *sta, struct wcn36xx_hal_config_sta_params_v1 *sta_params) { if (sta->ht_cap.ht_supported) { @@ -326,7 +326,7 @@ static void wcn36xx_smd_set_sta_default_ht_params( sta_params->dsss_cck_mode_40mhz = 1; } -void wcn36xx_smd_set_sta_default_vht_params(struct wcn36xx *wcn, +static void wcn36xx_smd_set_sta_default_vht_params(struct wcn36xx *wcn, struct wcn36xx_hal_config_sta_params_v1 *sta_params) { if (wcn->rf_id == RF_IRIS_WCN3680) { @@ -342,7 +342,7 @@ void wcn36xx_smd_set_sta_default_vht_params(struct wcn36xx *wcn, sta_params->vht_tx_bf_enabled = 0; } -void wcn36xx_smd_set_sta_default_ht_ldpc_params(struct wcn36xx *wcn, +static void wcn36xx_smd_set_sta_default_ht_ldpc_params(struct wcn36xx *wcn, struct wcn36xx_hal_config_sta_params_v1 *sta_params) { if (wcn->rf_id == RF_IRIS_WCN3680) @@ -1363,7 +1363,7 @@ static void wcn36xx_smd_convert_sta_to_v1(struct wcn36xx *wcn, v1->p2p = orig->p2p; } -void +static void wcn36xx_smd_set_sta_params_v1(struct wcn36xx *wcn, struct ieee80211_vif *vif, struct ieee80211_sta *sta, @@ -1502,12 +1502,12 @@ int wcn36xx_smd_config_sta(struct wcn36xx *wcn, struct ieee80211_vif *vif, return ret; } -void wcn36xx_smd_set_bss_params(struct wcn36xx *wcn, - struct ieee80211_vif *vif, - struct ieee80211_sta *sta, - const u8 *bssid, - bool update, - struct wcn36xx_hal_config_bss_params *bss) +static void wcn36xx_smd_set_bss_params(struct wcn36xx *wcn, + struct ieee80211_vif *vif, + struct ieee80211_sta *sta, + const u8 *bssid, + bool update, + struct wcn36xx_hal_config_bss_params *bss) { struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif); struct wcn36xx_hal_config_sta_params *sta_params; @@ -1715,9 +1715,11 @@ static int wcn36xx_smd_config_bss_v1(struct wcn36xx *wcn, return ret; } -int wcn36xx_smd_config_bss_v0(struct wcn36xx *wcn, struct ieee80211_vif *vif, - struct ieee80211_sta *sta, const u8 *bssid, - bool update) +static int wcn36xx_smd_config_bss_v0(struct wcn36xx *wcn, + struct ieee80211_vif *vif, + struct ieee80211_sta *sta, + const u8 *bssid, + bool update) { struct wcn36xx_hal_config_bss_req_msg *msg; struct wcn36xx_hal_config_bss_params *bss; From patchwork Wed Sep 9 15:37:53 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: 249505 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp525139ilg; Wed, 9 Sep 2020 08:37:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDwrCDpATrnIPoBzrHUPnHIiC0nys9wKKpkELT7eVv6NnUVBayVOgxAQSmWaOU3mvL3OLB X-Received: by 2002:a02:c045:: with SMTP id u5mr4725927jam.125.1599665836291; Wed, 09 Sep 2020 08:37:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599665836; cv=none; d=google.com; s=arc-20160816; b=hJuj5CCr+t+U6EIZDHjv2pBvOyQoPI00642YcQecqdOwCYKlFWKFqo4VKuSZfSEcvb rBY9RVpln8Bw8G4MHAoqCeXh7r1J9Pph9bATr/+qudlmMZp2418zhWZqV5S3Rwni7Bql DCrSIPwNoFkO83t9K46iLAhl9P4s5gKiFdllHM9F34hzCYuCAbBu7Egqs/XD+QmIrsPw UXqtyfr4MI9pEsMaQG0Z7m3iPwozsNzyoDqmRKmhqFCF3wif+4YzIW1jKBajE3vMdog0 VC7fqdbPRgZ1OQt8uKd7FsxtYOHbJOXX8dlx0ciNB3zVNS4KYja+1nareSRbkRvbGxgy LYdw== 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=LwD/7zCW/YnizGpBfre3IBqDXEWaKar9Z8HSSj2JKSk=; b=I9+az5xH6i8bHXp+RCzDoEpHMaRwvwAE7xoP882BjHejH08D1arWp8IkPODt8gQuo6 7oAa9+QXcQXKg5NlojGb3RTyTnJImaEwuMknx97X6l/jiFc2Okwg7fpXW/h2ggEUgjxq DUb+H9KATyIC4XqHmXuvhUZZviUaCRl18qpJc/ScRb73INaFd8wilDoXhCOSpj1qnbE0 QjLdtcprj+tFZv+QO121UDFKHRCLT8mxb2UgBZhX4/FG1lGlpPjn8iKgrmWzzRySCK5M HSmhfde9Phf1SWXJDArfUfFpyPIBKulcTYvHUel1n7FaEIYHNXykINf3o4q6XrvnNSqu skdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=cKMfXCE7; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=O6f2xHhI; 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 16si1344539ilz.32.2020.09.09.08.37.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:37:16 -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=cKMfXCE7; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=O6f2xHhI; 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=LwD/7zCW/YnizGpBfre3IBqDXEWaKar9Z8HSSj2JKSk=; b=cKMfXCE7aYro2Otq9KU9DaziO z5Y7CgCT9eFUALq55sUedFpPu4VdV+qku6+zI+g9eZ5bTWAXPB4PrYvj4hz0QES3W9mIEzcBbY7DI NFyKKmNYvLzAkzl3Gi0SVlICSM55k2PaSvluGFs1EJfQTqZqpE2gd22CTpOzKS8gz2sqp56ZJz7sv eyKmJbRYRosnFA7LrBGGNLb/5b5pG69RJ3sb4nMFlP2vKY4fgjkhnHrKLWqkbRIgMXJhv/RdBLA+j iD/co4dWGIl7WayAKq9wMUfJAJQJQzUYh2KATVrNus1/ODH+CGo7P53A5o63w0eQNFGUp7Hnao0k2 3+cYWh/ig==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG29p-0006qI-D8; Wed, 09 Sep 2020 15:37:13 +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 1kG29l-0006pP-86 for wcn36xx@lists.infradead.org; Wed, 09 Sep 2020 15:37:11 +0000 Received: by mail-wr1-x442.google.com with SMTP id z4so3484397wrr.4 for ; Wed, 09 Sep 2020 08:37:09 -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=Qir4TYRC59wb4Iq2ZGJgB2PzB7fCjBhXW6Ruce9uYLI=; b=O6f2xHhI8TDqRXtwMuzZonh8355rfk4tgipDXSC6q4VEZ9xjXWirQuYN53wUxy/miO qVY84BNeZq6C5l1x7LRWC18imlWrA43Do0vVNOboCzc+2ZX0R0VydiNBNfrldD+Ntzat At8iFe3hHDk6+f/g6QUmZLAOxAbv7jw0rl9Vcz3VSVnlz5ZB24kERu5MB6FZbjq698B+ yC8972OAiKd2h13W6h8qOa/dFzaE20LmLuaiPaduF+GtlTbMtIifeDgA1JEBsExtCaJG i4Ot0sMDLXRBW4YLkMGimisb5waDZXd2S6n55nfLW05brHeOLI9AXTtEACx8fpJ1Xp5A SzXA== 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=Qir4TYRC59wb4Iq2ZGJgB2PzB7fCjBhXW6Ruce9uYLI=; b=Bllctu8pSiJzcZFeUx0ZtLzA8Hl3fzPzM5AdIvtqQ2fS8leB52l9UQ/IDfWnk/vbnd XLnTpapi0DMCIsdfPOLaiatKFv5ituQimP52apA+5/6gQDToGgY3zFdS5duOZxpMXs0U GurAneGZIIRG0+bO+5FOZNu83bdvZTZCv1qZG/CS981Gnx+kRvsX+LtA5vBj1LT8gLhI +reCDJ58616tKKhFISlPsXqZjxYC92OkKfAPzT0ZKDoQOvP9PgF7rg76GIQ4VaDwz7uT S/nyXU1lGg///8/e1PYnHDWCFdsw1gdRCEaThZ5Hl4gxOLVqwiPbehmKFqw7b5T4YE85 128w== X-Gm-Message-State: AOAM531/AeMqq9nKcTQ3WzJxammUN2/4gV/ltAW7LmPhEXktCdbInZU0 B0XhKTkRkitXgbWbZEUb3Pf9XA== X-Received: by 2002:a5d:460c:: with SMTP id t12mr4442764wrq.225.1599665828327; Wed, 09 Sep 2020 08:37:08 -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 a83sm4424122wmh.48.2020.09.09.08.37.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:37:07 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v4 2/2] wcn36xx: Ensure spaces between functions Date: Wed, 9 Sep 2020 16:37:53 +0100 Message-Id: <20200909153753.2905176-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200909153753.2905176-1-bryan.odonoghue@linaro.org> References: <20200909153753.2905176-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-20200909_113709_324516_88EA5F35 X-CRM114-Status: GOOD ( 12.95 ) 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_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 is a small update to fix an error I saw where a few functions do not have a blank line in between them. Affects smd.c and main.c - no logic is affected by this change. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/main.c | 1 + drivers/net/wireless/ath/wcn36xx/smd.c | 4 ++++ 2 files changed, 5 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/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index 43596b919ed7..706728fba72d 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -775,6 +775,7 @@ static void wcn36xx_update_allowed_rates(struct ieee80211_sta *sta, sta->vht_cap.vht_mcs.tx_mcs_map; } } + void wcn36xx_set_default_rates(struct wcn36xx_hal_supported_rates *rates) { u16 ofdm_rates[WCN36XX_HAL_NUM_OFDM_RATES] = { diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index 61d9834b080d..0bf286659b44 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -218,6 +218,7 @@ static inline u8 is_cap_supported(unsigned long caps, unsigned long flag) { return caps & flag ? 1 : 0; } + static void wcn36xx_smd_set_bss_ht_params(struct ieee80211_vif *vif, struct ieee80211_sta *sta, struct wcn36xx_hal_config_bss_params *bss_params) @@ -2194,6 +2195,7 @@ int wcn36xx_smd_exit_bmps(struct wcn36xx *wcn, struct ieee80211_vif *vif) mutex_unlock(&wcn->hal_mutex); return ret; } + int wcn36xx_smd_set_power_params(struct wcn36xx *wcn, bool ignore_dtim) { struct wcn36xx_hal_set_power_params_req_msg msg_body; @@ -2223,6 +2225,7 @@ int wcn36xx_smd_set_power_params(struct wcn36xx *wcn, bool ignore_dtim) mutex_unlock(&wcn->hal_mutex); return ret; } + /* Notice: This function should be called after associated, or else it * will be invalid */ @@ -2902,6 +2905,7 @@ static void wcn36xx_ind_smd_work(struct work_struct *work) kfree(hal_ind_msg); } } + int wcn36xx_smd_open(struct wcn36xx *wcn) { wcn->hal_ind_wq = create_freezable_workqueue("wcn36xx_smd_ind");