Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp176611ybz; Wed, 15 Apr 2020 06:44:27 -0700 (PDT) X-Google-Smtp-Source: APiQypLpgKeEEoXUKNWiWhKGeRKG17l0WJF92dwxq3460HbEU0ogcnRO7R8P/WBt9Sq2+Qpaj6Nq X-Received: by 2002:a17:906:6d95:: with SMTP id h21mr5083189ejt.66.1586958267303; Wed, 15 Apr 2020 06:44:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586958267; cv=none; d=google.com; s=arc-20160816; b=NOTaKhUYyJ9H522AttesSuEIzjoMJ5js51ZmkCOGNRqe/ZxnIfJsOC39UVGWSwIny9 UbK3xx9xIETQE0raqUbD6sI/Us/NU1YWsYAwAPYHpQE0dhi7+KVOZO8mUQNMJ9oFJd6+ lYeUwwmHLbDkEHxD2A1aqmXgYPwRzql6Z2MNvwIOa16EIeYN5T78IPco0BS6vbSDeY1Z jmbYqo0wtO7w3ooxDI9uAElcqNZPWj2oyezmiyOfJgNubGsRtwAYgTkhT7ogHR9BEaee txL0XeRfK96UppyOs0xIozOzPA/mIhN6S2lladw0EkUYf5en8gitEIr+1JjvcrdnAxfE eUTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PrMrGQUfXMNhRG58H8+GNHeDRKweulvlAJdxD1OYkqE=; b=mwDAKX2ln399j9Mx+qvDPKVGkQeDejPDYkPKM0Gj/owmXJyP3f7y2fg5+NYSRfELso apga8r2XoV3sBaH/5sN0H1NEbt3vuX/8afjPrsnBnha9ZQFqthgvAStzidSPRkVhPpo+ 2milb8bpwUAvZwkqRqyIm6KcI7evXmQlcSsDCGgVDCMOHKwdaqMmzBqRyuk0Zdxfph3L aczt/Qutt1UjXfK5HMgwT55N6fUueGSGipRhQas+jb98p5u+2sbNszSiOOiKHlKfNZJj gZuGvKwhzc7TPokFSsANvdUSc4UJQA92D+RZ95rNBu6eirTQssNXJg9GqZRKSOGPB5/1 0rcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ot7CvZsE; spf=pass (google.com: best guess record for 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 94si10822184edk.562.2020.04.15.06.44.03; Wed, 15 Apr 2020 06:44:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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=ot7CvZsE; spf=pass (google.com: best guess record for 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 S2633614AbgDNVDd (ORCPT + 99 others); Tue, 14 Apr 2020 17:03:33 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:3408 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2633581AbgDNVCB (ORCPT ); Tue, 14 Apr 2020 17:02:01 -0400 X-UUID: acba19abd5544550a07864ad417d02e9-20200415 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:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=PrMrGQUfXMNhRG58H8+GNHeDRKweulvlAJdxD1OYkqE=; b=ot7CvZsEmPT07XGAlM9EYs1Yu76ule+skpRiVtR9530o6AT93oI4bQwwgK+D4yewaEl5134VU7b0MqwDNyIxFiMB0Z7JLNaRfE5BTOVl/UBB/+91oJ/zfDmN1YpcRhGk+QLSPjMRBLPLg0hPUJby3u9iHpoa/KPp0zL6hXTZauA=; X-UUID: acba19abd5544550a07864ad417d02e9-20200415 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 488875829; Wed, 15 Apr 2020 05:01:40 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 15 Apr 2020 05:01:38 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 15 Apr 2020 05:01:37 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , YF Luo , Yiwei Chung , Chih-Min Chen , Evelyn Tsai , Sean Wang , , , Ryder Lee Subject: [PATCH v2 16/18] mt76: mt7915: add tsf related callbacks Date: Wed, 15 Apr 2020 05:01:14 +0800 Message-ID: X-Mailer: git-send-email 2.18.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org SXQgaXMgdXNlZnVsIGZvciBJQlNTIE1lc2ggdG8gYWRqdXN0IHRfY2xvY2tkcmlmdC4NCg0KU2ln bmVkLW9mZi1ieTogUnlkZXIgTGVlIDxyeWRlci5sZWVAbWVkaWF0ZWsuY29tPg0KUmVwb3J0ZWQt Ynk6IFNoYXluZSBDaGVuIDxzaGF5bmUuY2hlbkBtZWRpYXRlay5jb20+DQpUZXN0ZWQtYnk6IEV2 ZWx5biBUc2FpIDx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