Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3857295pxk; Tue, 22 Sep 2020 04:37:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0ed6vzqzRwJC7beY0F5tzflxLVDTY7JjH1+LSt1v+pWmfbRXjKwaS4h3jRt7CyDEFF+IS X-Received: by 2002:aa7:c98d:: with SMTP id c13mr3505067edt.199.1600774652317; Tue, 22 Sep 2020 04:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600774652; cv=none; d=google.com; s=arc-20160816; b=QMiOEVSiANJpnirRB//JT8fbTF7a2T4s8Yzs87UUpR8ZcIKJEGBg8hBvNToTCq6d7J So0+WdjwCOQV49wXyw+mbvw+ZVzKcxQ7xzWVtUs79aiLTX6xL8/OAlkDEnnrly14MeSn emGpcXRuKjw8d5NPQ7ck82fNh9r1J1aANP0YKvfE7qyKcP/WeFN/8N/P3RN3vmk50MYc mlbLnnM8vL+QjjvClLOiUgltZyqyODLpd/qghqhod/2AD643HPYExcxHiaTLO3wRxc4Q HUj5/VCbFSraaq/rE5+N6rBkQc1GN/qlv7t2VW20ueS9NeFOR9apoBqY7+nzVJRVua6s 7IMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=QiRB9b6QFX/n3VwaIGIkzGNyJgGwq+YynWOJjCc5ZTM=; b=qDhZ5/nMFnAxJI2lB0r6hG/cXN31vTXRTJUHno5d9v+Pj2fZsuWYIrnDb31RRJ0e0L WIiLocjQ9gCOPs522Ovr8b9w1IumKNsNhetBuglKH8JsNd1QGdlr4DffEIRNwUbYDQ+e vlsc4yYOxM04G8D8O5dIkQgiIwA+LiZxwj5wSSrywUQEQTeaGwOF+Zjujx4oZ+e0hLf9 2+6ero4U72GmSfj3/f6SCfJpR6EuMYRoyx8r92eVEcwOwp91oh1DdugHMPwQX+Du0O8a ltkJe+xTNwnQB9tUM64l8pxPlq1iZmJJLpitJIcLHTUCcBk2Ho3nTzBf1guSCDPZhWpz ntSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="VK0RV/ah"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i16si10841371edb.134.2020.09.22.04.37.07; Tue, 22 Sep 2020 04:37:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="VK0RV/ah"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726552AbgIVLgY (ORCPT + 99 others); Tue, 22 Sep 2020 07:36:24 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:57309 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726651AbgIVLgY (ORCPT ); Tue, 22 Sep 2020 07:36:24 -0400 X-UUID: 75d9772af6594ae5bda9c5c79365aaae-20200922 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=QiRB9b6QFX/n3VwaIGIkzGNyJgGwq+YynWOJjCc5ZTM=; b=VK0RV/ahrGJ1tNgRG4RfrLlodZ1iA+DSqgB/ZIlfYXnRiAJusRFX4XTukYYK/Sxqlvrp5gPw8d08jBm3y0vB/izkDpSZmJVLCeQye5L5U9VEun4DwLz9QJfcDAWYP2mDWmCd86II3/WSqLFVV1xqlwAbsnEoItgW11kF4JkmRGw=; X-UUID: 75d9772af6594ae5bda9c5c79365aaae-20200922 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 401991970; Tue, 22 Sep 2020 19:36:19 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 22 Sep 2020 19:36:18 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 22 Sep 2020 19:36:16 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , linux-mediatek , Shayne Chen Subject: [PATCH] mt76: mt7915: add offchannel condition in switch channel command Date: Tue, 22 Sep 2020 19:36:01 +0800 Message-ID: <20200922113601.5276-1-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org QWRkIGEgbWlzc2luZyBvZmZjaGFubmVsIGNvbmRpdGlvbiBmb3IgY2hhbm5lbCBzd2l0Y2ggcmVh c29uLCB3aGljaA0KYnlwYXNzZXMgRFBEIGNhbGlicmF0aW9uIHRvIHJlZHVjZSBzY2FubmluZyB0 aW1lLg0KDQpTaWduZWQtb2ZmLWJ5OiBTaGF5bmUgQ2hlbiA8c2hheW5lLmNoZW5AbWVkaWF0ZWsu Y29tPg0KLS0tDQogZHJpdmVycy9uZXQ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