Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2399616ybt; Sun, 21 Jun 2020 19:19:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzF3MqR77EJO6xC1xj7NjcMJ6gvXNqRtVJbs7KNheVuN/BVkrSlDV0JXUjMa5Z+EZWeJG2m X-Received: by 2002:a17:906:eb4b:: with SMTP id mc11mr4866018ejb.5.1592792388018; Sun, 21 Jun 2020 19:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592792388; cv=none; d=google.com; s=arc-20160816; b=Gg+F34TVsIGkEQaSfK51vX3/xuQv3MIc0yXaixqIAnvIGfHavugo8IQ15OnZTlXbs4 GqLk8xrEQc/OuP/SA0jLJpVdRRJbcbolIDRIaGfgZZBKXd28w00O2jIgwvmh07j/38Bs kj4zGM0Fv+q0KEVByuLaLnZqGGihwhdQX5x5pempYxfQY0RH6gHpXyhadBNpCavOCizA plsXQdkRvdQvHuffvbSgCWrtp9mOi0QAy0v6qNvAO/nM6WP2u6pVpFLdohKpU8na9ZPO 5jpHTuhImjpQXIR8x5UJ7HBzBzFU7wG69CexRvy7hSB7/xmOEqesdBVeyEIzVRWxjM12 QrRw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=A9h6IK0GYWOu+9gVRl0MwxTZ+MuiULEY2ZXzBbQtca8=; b=A6ma+pOL8ddmHBKBeMgacwkw5+/po8VvA74KnapOV2GjuC8rtInFPTpMCKWIFAzPsc zPaR+xMsKojCcdp/dTHZ5t0bXtgVkaDVScKLAT2Q2fcPGG5VrY08rBy4r3BHIu7WgoVN DdHGTnicva9LTLCIFjoQJ4stnDuWLDIQXX4TsZUpSP4nJW4z94+r895tkCm8n9IjUMJs X/ch7WTZhwAKHPntfOnuRtFQV4maTHjqpmHo7BS5h85EtPv3LUO7uzUQK2iJJfs2gSZH PJZqdii6loKet2mtuEsOtExwMiOPPhtz+awLikv3SP7Wav3Diyxe7VXjC/Rme1kH3JgT 73Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=VmkquC6K; 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 r4si8404188edb.585.2020.06.21.19.19.23; Sun, 21 Jun 2020 19:19:48 -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=VmkquC6K; 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 S1726947AbgFVCRE (ORCPT + 99 others); Sun, 21 Jun 2020 22:17:04 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:39351 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726685AbgFVCRD (ORCPT ); Sun, 21 Jun 2020 22:17:03 -0400 X-UUID: 6b2cc00edff6457988d0ea05ffba454b-20200622 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=A9h6IK0GYWOu+9gVRl0MwxTZ+MuiULEY2ZXzBbQtca8=; b=VmkquC6KrX0lby/07YLhxcYgfCpctvqO3dUFcuXltNpKEUtJwu1c3MoXOebchRl8BNuNXLZgwLKE2FCJiKxKvXaKOMX8iZ7cUIHi1qLFWJjGmIhOqsDFi4OAq3o+PlU/ezhypUMZmyRiv714lFyssFW2QRCbv2n2ZaqH+/1KNBk=; X-UUID: 6b2cc00edff6457988d0ea05ffba454b-20200622 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 700341391; Mon, 22 Jun 2020 10:16:58 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 22 Jun 2020 10:16:56 +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; Mon, 22 Jun 2020 10:16:46 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi , Sean Wang CC: Shayne Chen , , , Ryder Lee Subject: [PATCH v2] mt76: mt7915: overwrite qid for non-bufferable mgmt frames Date: Mon, 22 Jun 2020 10:16:55 +0800 Message-ID: <54555754349ac8912150e896e2206f1e4a0ba28d.1592791898.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 37F22BE14546FB5628292D5E79427914DB70060E5D426B0A3662BF82EE4A6BCD2000: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 T3ZlcndyaXRlIGh3IHF1ZXVlIGlkIGZvciBub24tYnVmZmVyYWJsZSBtYW5hZ2VtZW50IGZyYW1l cyBpZiB0aGUgaHcvZncNCnN1cHBvcnQgYWx3YXlzIHR4cSAoYWx0eHEpIGluIG9yZGVyIHRvIGJl IGluIHN5bmMgd2l0aCBtYWMgdHh3aSBjb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