Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3738044ybl; Tue, 21 Jan 2020 06:14:39 -0800 (PST) X-Google-Smtp-Source: APXvYqyzmcib2BRqrwvHjwPx+MwD8XzUXw0rjQoA+CP97f7AhPdrDDfEfqkhsKTQgQdHUp+YjxLw X-Received: by 2002:a9d:6859:: with SMTP id c25mr3753467oto.205.1579616079636; Tue, 21 Jan 2020 06:14:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579616079; cv=none; d=google.com; s=arc-20160816; b=vKrnKA3FSpnzqI61d29SCKuXb9UmyhL01u23JdNxvfscMlnUPlXiTFjJkJPoldxjqc FxNV7NAiC1n9jXiiUM3aT32Iav+EzSYMefgGxteNxW+Wup/8/ozAPGlXVE0UjE4S4Us3 mHRJUcKz3H8TFycMr1A9+nZvP1SwcDA61JUxMz/wzBBEnY4oOR8oxK+yh4vY0fkeSLiQ 4WBAby6dSGI/nHYz/QD6/4F03KgNRJL7DGp4kZDpJE6gUhenvybpZM3eDpemKTiO3M2h 62mBNYi7f7IdL2ZPHEL1LvAXjy3r8ay8ZALIclnZqBkNRWROIbudx5o+u3D+j58hYVHz w6nw== 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=v+wcGDsO7LzhLYd0t7yY8jTM7GyhTanF/p5aGuMf2uY=; b=s1nH27S2RKe2NY1jRIBCdn0SKnkYlnUtEF7jRQliIYZl+FxI/1jYO1eIh04j4EFeZO xRSwIT1g0UyaPlbRmruPuoOvYcbvs8LxGzo7aL5oT09OCoBV4RRmM0TOxQjcs0qmiOjG kGmpW2NQs40289yF5bC2FqGvbiHKYBUrgx0+mMKspRyj5+k61N588u4qlutka1K1qclB 7ASbBOeAFgsFSARxYYDV048WoSH/UXzPcPcpnM+kS2LrIVlNBq1AbQEcs+mTb9dO+nVN LeeyMvVod1r+c8B1ii4sCtrYvE6QCl5ZYOCGoNG/GyBA4gKHOCAm4Z08Cf9s0sf5cign FpRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=M7dOuynC; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id q26si18226834oij.38.2020.01.21.06.14.10; Tue, 21 Jan 2020 06:14:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=M7dOuynC; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 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 S1729342AbgAUON5 (ORCPT + 99 others); Tue, 21 Jan 2020 09:13:57 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:52943 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729300AbgAUON4 (ORCPT ); Tue, 21 Jan 2020 09:13:56 -0500 X-UUID: cc872b21e6974122a7c1faed90e62134-20200121 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=v+wcGDsO7LzhLYd0t7yY8jTM7GyhTanF/p5aGuMf2uY=; b=M7dOuynClHVnt635uLeS5o8Mfj1VwIESUyTXExnKPoaZoIA+EwCPnTJza3URKsFqOoRWwddCXI0vL60920Aiw7VCqGXRLU2HCX9yPagb5WgF29S4MVuA9iwpu1AF+QkvRdHTBJic1w6uvpuiwoH7i6qqcEWHxwq/4zb2+rJSoqM=; X-UUID: cc872b21e6974122a7c1faed90e62134-20200121 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 386455802; Tue, 21 Jan 2020 22:13:51 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 21 Jan 2020 22:12:18 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 21 Jan 2020 22:13:30 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Roy Luo , Sean Wang , , , Ryder Lee Subject: [PATCH 4/7] mt76: mt7615: adjust command flow for firmware v2 Date: Tue, 21 Jan 2020 22:13:39 +0800 Message-ID: <48e1baba8a4d87dc6c081189034f78447d65bf14.1579237414.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 2B03C0DA28A1CC07F7DDAEF4D85FBDFC6E7BE8B28A39E7767ABA05FED6B601882000:8 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 QWRkIGZ3X3ZlcnNpb24gaW4gbXQ3NjE1X2RldiB0byBhZGFwdCBuZXcgZmlybXdhcmUgdmVyc2lv bi4NCg0KU2lnbmVkLW9mZi1ieTogUnlkZXIgTGVlIDxyeWRlci5sZWVAbWVkaWF0ZWsuY29tP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