From patchwork Sat Aug 29 03:39:24 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: 248689 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602700ilg; Fri, 28 Aug 2020 20:38:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEaHgkkvXEGxl+xEdsfhIMYi0+Pd7jT0+qMXxe6wY5y/Sr8U8/4clV3+jInpCCvbh0Q4sO X-Received: by 2002:a92:99d4:: with SMTP id t81mr1492156ilk.95.1598672333916; Fri, 28 Aug 2020 20:38:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672333; cv=none; d=google.com; s=arc-20160816; b=dgJJ4tLLS5QjBN7BXRlYAf7dGjTKasSwtJ7K0jw3xQ5w5sZ1zCqK72z3GViKdhXvgp SNSlI79tYy6TcYOk2178agqwmrllYcxGok+kjIfQoD6SzTA6BxgECOHYabXsXzFehsON TEEksXUhrH66Kg+/dN4PnjHeD1LpzDISNWXmUQXfumqe4MhxfQLaQpyQHYrTYG1XVZa3 zXaDQFWhmORy0IUFwUThgaC82v31XoUbgNSWXxJySbDfjEJYSnjFGjOdx5V7KtN1kPR+ G+BzxAeG/hLKeAfJdLYu+JbY8JeNdLHD8t3hsK40AUKw/Ue3SGgbo6bZq+kCTBU9bG8R l07Q== 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=J7EY3GfVg5uOnD1aXipjVNEV87LaCVOGVwTZI5k5OO8=; b=vFdqtmCZfydSWf0kZ0ZClQoYaNPug5czMH5naBfG3pkTRfrqNYhemtnJvUNO8kyTO+ ZF4gxb0gb4V49sUd73Ex8WxwyefqOSPbF4QWvBUmsBldIhR5QY2X1WW3y0ZIrV/x49Eo xZY9znEHWubhHyTd0Wo8s2VGgqCABzhFHx0y8MZqs6Cq+dZV9j/tgeyMOfNN+GFkNnTM we/Cc3UNko4+2Y8jYG54NFe+YInX+fG3T+hQ7q3uTlu2xSVJAp+/h0KQ3R7+bOA6PHc6 30g7k6WWGI1NqUaf2v8LDxGmb5WdyH0sDzRsLGxNEsTP71HYcphr5zsrPmxawFqxAeVk BOpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=DT0hFHQG; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="HxsSo/PZ"; 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 b14si1154718ilo.0.2020.08.28.20.38.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:53 -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=DT0hFHQG; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="HxsSo/PZ"; 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=J7EY3GfVg5uOnD1aXipjVNEV87LaCVOGVwTZI5k5OO8=; b=DT0hFHQGzirWVSJFXN2vh3WE7 lwRECeWAUO6h3/xj1LY0mnC9IpgXQV9P1dHyoP5/EF3FJrS06Et1hFESDduEU8vWU4AeWB8yDG2/V MNVSsgvXRyqu5eus33HRWyylobli2ZB4nrKA1UnfNYqzhZK4CP5Zu+PrTocE+6QiBDO+rJS4UH9Q6 t1e+OaHlb1I68kL6MZT+rTnGJ1exi+EbJtMX2j0eADX6zMosUbwGyH3T4b/vA0hj04FALFmAHESO2 9103zV49xZORzKCnkqvH77fqleZHjSDjVNVV6zNLieHg6CQJqiNmzIh+QF2x9MXZXmuFXXob//Wxf uYliJqVSA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrha-0002UI-UC; Sat, 29 Aug 2020 03:38:50 +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 1kBrhW-0002Ra-Nj for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:47 +0000 Received: by mail-wr1-x443.google.com with SMTP id a17so21894wrn.6 for ; Fri, 28 Aug 2020 20:38:46 -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=or2dbECxnpurnyDMf3aY/pIgT+JTIa/EycsL2GtCXSY=; b=HxsSo/PZu+qfet4lp+lRj+AN0WRVaaZGoaTTcBrC4XMvC3ENptwieaP1VAvMzbCdHB 1y56MxnkH2i9BkW1k7STYaLxHOhCHCFt55FqItCENYDX7l85DSBO9uQYJr48HsTNGDPl q4l6/8pxqehmhZKlXWjHMowSGU486uKlh33rE0vA/p/NYes+4XcX1XSUpY+9Zn+CjFBr Pnxh4ry5j6V2MMKqtVZM+/IBD948IwNopgZbQwQS10JJcvfe0LPqAoHagEYnKa88nvTz wMLOQK8t/zeYDvMSeiKxasvkOUKwjCrs2alg2v1jlBGaRaxq5iIrRM7Ohx7l+qUSg+Wp +Oqw== 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=or2dbECxnpurnyDMf3aY/pIgT+JTIa/EycsL2GtCXSY=; b=RJRmjVZNcNXNezZHpZ3lFmGr6i4rL2L0ATNMI2DvfLCGu/gyDvy8aGqb02lF7F/CHU iPrseWPU0ng2uvwsXNYsubaKcs4j7gkJQ2GtC7J9FUGvTPuKdYPFZndKyfxjcj5/B+u8 xDwjc1wT2x9rl9vxao1a0c+z04lXtXBpr0R690VFDUgAkJiewgcoZEio2tykI6sHgSne wqwbjjxVLzBOW5gQWggA5otL29BA2VvH09ziR7pv4uFZZoz6LJkz9CfodOWignTvEAQT mvr8KDukAPHpEcBZYAQR87nogm1I/p66cilkX6zRfIKnUMiA/dl87OkzfW60WaDClHpT uWKA== X-Gm-Message-State: AOAM531sgspjsKkx6F1GQ4MvqsGJUkM3htdUmmZ1jnj6Z/ZHtAoEWLJ7 3TAfiR6JN30ha4FC48hyPnZbLg== X-Received: by 2002:a5d:5273:: with SMTP id l19mr1832129wrc.64.1598672325876; Fri, 28 Aug 2020 20:38:45 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id s20sm1691700wmh.21.2020.08.28.20.38.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:45 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 2/7] wcn36xx: Move wcn36xx_smd_set_sta_params() inside wcn36xx_smd_config_bss() Date: Sat, 29 Aug 2020 04:39:24 +0100 Message-Id: <20200829033929.2167761-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033929.2167761-1-bryan.odonoghue@linaro.org> References: <20200829033929.2167761-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_233846_831950_C2FC7638 X-CRM114-Status: GOOD ( 12.18 ) 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_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 In order to facilitate functional decomposition of wcn36xx_smd_config_bss() we need to move wcn36xx_smd_set_sta_params() later in function. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 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 e8c2f4a152b4..654ef074b1eb 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -1618,7 +1618,6 @@ int wcn36xx_smd_config_bss(struct wcn36xx *wcn, struct ieee80211_vif *vif, bss->ext_channel = IEEE80211_HT_PARAM_CHA_SEC_NONE; bss->reserved = 0; - wcn36xx_smd_set_sta_params(wcn, vif, sta, sta_params); /* wcn->ssid is only valid in AP and IBSS mode */ bss->ssid.length = vif_priv->ssid.length; @@ -1644,6 +1643,8 @@ int wcn36xx_smd_config_bss(struct wcn36xx *wcn, struct ieee80211_vif *vif, vif_priv->bss_type = bss->bss_type; + wcn36xx_smd_set_sta_params(wcn, vif, sta, sta_params); + wcn36xx_dbg(WCN36XX_DBG_HAL, "hal config bss bssid %pM self_mac_addr %pM bss_type %d oper_mode %d nw_type %d\n", bss->bssid, bss->self_mac_addr, bss->bss_type,