From patchwork Thu Jul 30 11:09:47 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: 247275 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp2304356ilg; Thu, 30 Jul 2020 04:09:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCRpzWWrDP/mcG971a7hqev6iTrU5xkI+KfVWnO5A6QN3tLS8J70nPW4Qx0aITNBJQ7ENe X-Received: by 2002:ac8:777a:: with SMTP id h26mr2224671qtu.141.1596107348589; Thu, 30 Jul 2020 04:09:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596107348; cv=none; d=google.com; s=arc-20160816; b=UiIeaqki7OqldIMPoTEB9g0jmcHualMZPTOdENoMX/dvPdhao0/M4eyEfGQ75Lqdv7 tkC2pMhYONbjyRRZils5IX4KeOBhtUQeTVGCSUNzffXIG3sEycvfs9mmrz1AiwTXgEy3 ZQ5fx2GlVBvFtesttVb72zaLkL3gcVtNDXQvnpscRqX2UuZwxqzsWiDIT/8d9KVuPs0G Nsvk+6Nc5UThtYuiYuQ2GXTLX35XyYww+pXyhuo9PAPjhOVHKFWOIhMv/+tG9FC/iJaT ffRHpOlW6/UukpHa+cmipmx8lb3jWknnXVVR4mrBEa1yqU9kMAG7PktADCrPM/XjdjWy EolA== 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:message-id:date:subject:to:from :dkim-signature:dkim-signature; bh=BFvkLjbaLszEef+J4PdHCmbX2gQAEtj4UCWg8OvRvTk=; b=AjhrMRd7qEezhDLsnHmr9BGkoissczxFDul55IGPJZBx3Fmm0MjI73DryIYusMX152 3GDgr9IHvL3/5+Ss8YnvtCmjcU10jXUKCtUmVXHhOnVAdCRNjsQn8Yz22csKcthaaK7L cTX3upWQWD8hKJh3AWnPrcF6zlFpRoeFisgyIvbw1wrhO2MPth4x0cnJ7nSjKv88A97L muOgeE0KVdGWSooVqu+8D7Sj9sdaSRM7IDjwvNMldhL7xz5PPcxWFC8bFVKijSzqMAhw Xh84nw8kcZujgHZ8QcMi7TkVClBmiuhdAEBoFA79sd8u7GRJPALXQc3CTwIcC9tIi2MK g+LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=U0RVi+Ui; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=y1dxP5nI; 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 p18si2672284qvt.125.2020.07.30.04.09.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jul 2020 04:09:08 -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=U0RVi+Ui; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=y1dxP5nI; 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: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:In-Reply-To:References:List-Owner; bh=BFvkLjbaLszEef+J4PdHCmbX2gQAEtj4UCWg8OvRvTk=; b=U0RVi+Ui7a/AUVZbgPZEVX/Pu/ evJJQ3ZIq8uOy58Wc1CbaKEQFCODzkpMxjKQ10YUxkuMSxxSgvzera+IbUfC1au9SJ2nF4tJqbds9 JqTxVza8lFb8M1SPH8/aNgJQHgEyldrfA2wo4A8L0OkjxqtYJ6fGVi6HhQBFEe/Nc3sq6CdAJwWsA 6LEHXgXaLxI7V2jf/ZMNn5xFSRu94DxV16JzXWxJWxMI03GsWi6VlTPPG6F8K8IeHMN5p4PYw1pqS 6KxNvWL34d7bJBWqxvOiCzHjAkvnjrgMWdLFM4OBZ1BNBdMUrBkL5UKrjQ0py/XONXV6i/GTzDpKx 5gCPgFWQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k16Qr-0002a5-Go; Thu, 30 Jul 2020 11:09:05 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k16Qp-0002Zd-JS for wcn36xx@lists.infradead.org; Thu, 30 Jul 2020 11:09:04 +0000 Received: by mail-wr1-x444.google.com with SMTP id r4so21529174wrx.9 for ; Thu, 30 Jul 2020 04:09:02 -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:mime-version :content-transfer-encoding; bh=P/DhgxnH5WfBH2hYybEl9iDSMfSqU98CakpV78w/xJE=; b=y1dxP5nIcz+aRNfTOMHFpVmPNh2aNNZ3LKFuec+rmNKUr020AhzmHZdSDjFT8I78c6 jYoImuI2nHnOQ3UQc9CBwOqeOrM7WJd+AQovazT8NWQmhp427BKbTuDzkR2lvQGTfltT KOBje+lpmFhu/Wo9ZYREwSTewCQ2i8Fqs5KOIvMWClgFjwqoxth2RmeXnG6dRzFoHIR9 CC6xzVO98gtYsj8Br7pEZAmWcXj6eW35VO9cKVPelWM+NP8ZRm+YZgoQ4lUN3W/FCcyd QTxOFwcDDv3qskv4wR6ck49Ate19JmSoP2VcZxbcNT0lUA599MkqkeoCJ717hYPDYBsz 3VHg== 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:mime-version :content-transfer-encoding; bh=P/DhgxnH5WfBH2hYybEl9iDSMfSqU98CakpV78w/xJE=; b=TQj5r8M0iYeA3X3nNPqe5uzBWXgg01KMd27KG+t0HCwOmECy3oyrudE0Zus37mHJtW HuULLz2bdD4byD1SlrkQlx7gKF9GMcU88+f94ZSLZnEqdbvXoRExietJT6TfJX56GV+9 xAe0iLf9L+SwUd7+o3tF7j9gGowQ4H7c9+ca8BA67BB+DucqQN0g+uq6gYRTH8MiYrU5 MnoiObLX/v9LrBtSeUDGZmXotGdoEwS8t6U53+hQDJSuvLaI4OynGU5J4el8vjNsY8bj ajqF4UrWqQEr0AsFuWAkadNfAGja7r065vLJC/j/KYUY3Uc47SPteS5ryLtrxr0Wdeo2 kVTg== X-Gm-Message-State: AOAM53010MTkJOijqNGYYLNueBULgeJJvxIZiNe1NwkqPm6V5TQC3Eul igojz6FqW+AxP6w02hmKrv8BJw== X-Received: by 2002:adf:e7c3:: with SMTP id e3mr2386469wrn.356.1596107342119; Thu, 30 Jul 2020 04:09:02 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id b129sm8645758wmb.29.2020.07.30.04.09.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jul 2020 04:09:01 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, loic.poulain@linaro.org Subject: [PATCH] wcn36xx: Set operational channel to 0 on disassociation Date: Thu, 30 Jul 2020 12:09:47 +0100 Message-Id: <20200730110947.57979-1-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200730_070903_688129_E2ACD903 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:444 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_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's 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: wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, bryan.odonoghue@linaro.org Sender: "wcn36xx" Errors-To: wcn36xx-bounces+patch=linaro.org@lists.infradead.org After a disassociated event we need to make sure we reset the operational channel so that subsequent channel scans will not exclude the channel we were using. Doing a software scan on a wcn3680 showed that if we disassociated from an AP we would never see it re-appear in a scan - unless we shifted the AP to a different channel. Setting the operational channel to zero on disassociation ensures that this situation will not arise in the wild. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/main.c | 1 + 1 file changed, 1 insertion(+) -- 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 fb8978a3c11e..4681d085b683 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -908,6 +908,7 @@ static void wcn36xx_bss_info_changed(struct ieee80211_hw *hw, bss_conf->bssid, vif->addr, WCN36XX_HAL_LINK_IDLE_STATE); + wcn36xx_smd_switch_channel(wcn, vif, 0); } }