Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1813382ybt; Sat, 20 Jun 2020 23:53:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhK0mLClRRJEUeNh7ov2Zwm4IX4HvjLAoOxS93dQ9+JcZi8J/kTi1aFXQtJJDymDetV5py X-Received: by 2002:a05:6402:b13:: with SMTP id bm19mr11539666edb.82.1592722424419; Sat, 20 Jun 2020 23:53:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592722424; cv=none; d=google.com; s=arc-20160816; b=PEDjYl/CtwCWIOalrRW2HoNJzB6Pfaj87RI/i8J7sFR6hZF1DPwyRpc2dPnzc4gsdz 3Vyt0PVvqrEYpwsqLiL9K8Ci7ci6vAQyseOaNTzpgIvMrFR7smu4GCA9292bZ3Q/+5Em Mcr7OdO3o5YZPm1FXeTL3pX23q56devrMCvM0VvmwVAcoy5wDwFPI5TpHouuWoQlvTmk xMGITdnQ1/ZrsUdSbE4Ysi6NUwMqrGro9vXByVonIol40m+7QJanejrMEEZXj2tuRKqg WFPO7u/64a/pVLMph1jEFxJ2Zpp46x6W6M1Kxyu1UPspKWZdAE5Re+ONzAXl4jakCoin hNlQ== 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=zTJvn/j/lwPeBJM7lskwLTnp6Bsi8Nsabh1V17UGZiI=; b=jz+00UDlBWaeRqy8/jzInDgFuAxAGBlrF5JPyJJ8Ck7MX6rFXPadYMOdie5QKL6e7x ipneC8XtdumiblQJCgOv/7VoU8mNtdAStjnph+6lZT7wWd/1QS4XMlTDsZI/FdY1qQ8Q Yy9HOIfS0/Y1S6oTnyAAyW24IKBFX6lUaoResh3EBJIb9Gks4A6CmCi2OAV1tKlYEFjQ si+s8frMU4+D2Eeb+OgRV3oSMOevmOhmx91Nug9tA+EN3Aky3qbK+tHOorzzZZX/z/tU MZ1hs+YnPu4NYvpUIayS2UYlanuHvN3sZZQV5GDNSWjacxzeKfujoyjpsLD3AJcoJ0RT hsTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=dzgcSYD5; 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 nx24si6625044ejb.615.2020.06.20.23.53.01; Sat, 20 Jun 2020 23:53:44 -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=dzgcSYD5; 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 S1729347AbgFUGwt (ORCPT + 99 others); Sun, 21 Jun 2020 02:52:49 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:16925 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729343AbgFUGws (ORCPT ); Sun, 21 Jun 2020 02:52:48 -0400 X-UUID: 1678444fb2ce4a00a1cebe0a9c206d13-20200621 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=zTJvn/j/lwPeBJM7lskwLTnp6Bsi8Nsabh1V17UGZiI=; b=dzgcSYD5JftL3jGNsqlKcpkWesE7hxnSO1W7GWlrJzX9lBYN9t3OTDgnzw/SdUwIdXQdiD4XJJ3idv/W/4dXr3i0YUr68UGUKCyJDj2MnlBv4PIWAtto9nOhcKceb0mBKRDVDMbwW8RaGTpoqoW+W7U1rGIMyTq3AQS0Ke6EQxI=; X-UUID: 1678444fb2ce4a00a1cebe0a9c206d13-20200621 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 1083166191; Sun, 21 Jun 2020 14:52:42 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 21 Jun 2020 14:52:41 +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.1497.2 via Frontend Transport; Sun, 21 Jun 2020 14:52:33 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi , Sean Wang CC: Shayne Chen , , , Ryder Lee Subject: [PATCH] mt76: mt7915: overwrite qid for non-bufferable mgmt frames Date: Sun, 21 Jun 2020 14:52:36 +0800 Message-ID: <89e56177f4df93dc617db8a5afc2b428129f93f2.1592721766.git.ryder.lee@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 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org T3ZlcndyaXRlIGh3IHF1ZXVlIGlkIGZvciBub24tYnVmZmVyYWJsZSBtYW5hZ2VtZW50IGZyYW1l cyBpZiB0aGUgaHcvZncNCnN1cHBvcnQgYWx3YXlzIHR4cSAoYWx0eHEpIGluIG9yZGVyIHRvIGJl IGluIHN5bmMgd2l0aCBtYWMgdHh3aSBjb2RlDQoNClNpZ25lZC1vZmYtYnk6IFJ5ZGVyIExlZSA8 c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