Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2318483rwb; Fri, 9 Dec 2022 00:04:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf4UVf5Bn+0BiLRvqxsrQKtdIVqCVtteTUM41gOUUPTI4AentdcRGFqB3vDC42+HRhZgbkaK X-Received: by 2002:a05:6402:2401:b0:45c:834b:f293 with SMTP id t1-20020a056402240100b0045c834bf293mr5116151eda.16.1670573088292; Fri, 09 Dec 2022 00:04:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670573088; cv=none; d=google.com; s=arc-20160816; b=ldGk+BaPoE8X9IFPl5YY+hkV54Tb/PCznDR579dl1rmHtPhnZWG2H+9ozHboP5QbdS sbHNkaeQaVfN/xKFteT6V2inISh41u10Nm7sO/t3mWZ6uYXQFCfECQPV12A1Ea9NFTEk YTmApMLfOCuPagZoqj9T50R1pD/n2SNvRwdqhGvgDOkt+/xRNE02U8Kw5tcUiK23bUs/ z4bKwiwtZlo3gDNwYmzZKQHJ9/WhqgZP27ibdCuHOd6WpI7sQc9iPFkTHNFnqhGG1NB2 al5IX0h4Guk0ChYFaGsqqnz+NR1qSbRMFACrWnhPkf/EoYFA8CK7Pf8FNogXkwWyT5GA hAMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=WsQy7MHWwF26ec8kYQC0md3ado6SDlV9HCB6wEIK47w=; b=e8QAP4v0gBiKF+gXvm1+VIpQCZZXAxGqu22O5k3hZ+LvyNbUpaAHLdsow2IhydXiBH cKp/YNZTWe/SmNgtlGeGa39NjYefZjruJXEjtICAKIIBiHKjrLgdJcMWsaLY3cWUoUrp QZe/BDWavU6wndgqn90hnr27V/SQrWpMV1lT0kCkTds5r3qc/l3vXLM3pagEY5dSVbZx OtGO8cacgfm1pDYVtoQkTTFNc51CzhWGjR+lyUmFXAcsgPFyWypmTursGrL07j9Lu9Jw bkjcSSFngECDJj+M16XWaseAV1IOmjWevc3nJkEgKai0NcwDbSkc8YFc3pMT3nyziQeW q4xw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c30-20020a50d65e000000b00461c50013b8si1099863edj.192.2022.12.09.00.04.30; Fri, 09 Dec 2022 00:04:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230037AbiLIIDp (ORCPT + 66 others); Fri, 9 Dec 2022 03:03:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229721AbiLIIDo (ORCPT ); Fri, 9 Dec 2022 03:03:44 -0500 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7C0975AE1F for ; Fri, 9 Dec 2022 00:03:42 -0800 (PST) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 2B982oJ32002457, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 2B982oJ32002457 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Fri, 9 Dec 2022 16:02:50 +0800 Received: from RTEXDAG01.realtek.com.tw (172.21.6.100) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.9; Fri, 9 Dec 2022 16:03:38 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXDAG01.realtek.com.tw (172.21.6.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Fri, 9 Dec 2022 16:03:37 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::15b5:fc4b:72f3:424b]) by RTEXMBS04.realtek.com.tw ([fe80::15b5:fc4b:72f3:424b%5]) with mapi id 15.01.2375.007; Fri, 9 Dec 2022 16:03:37 +0800 From: Ping-Ke Shih To: Bitterblue Smith , "linux-wireless@vger.kernel.org" CC: Jes Sorensen , Andrea Merello , Taehee Yoo Subject: RE: [PATCH 2/2] wifi: rtl8xxxu: Add rate control code for RTL8188EU Thread-Topic: [PATCH 2/2] wifi: rtl8xxxu: Add rate control code for RTL8188EU Thread-Index: AQHZCbyDN81dayZcqECzxC5tK/ABJ65lMKRg Date: Fri, 9 Dec 2022 08:03:37 +0000 Message-ID: <9d717c58f61149d1ac8b4db889911316@realtek.com> References: <00c4bd4a-10e0-02e6-4e09-f450909414ac@gmail.com> In-Reply-To: Accept-Language: en-US, zh-TW Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.69.188] x-kse-serverinfo: RTEXDAG01.realtek.com.tw, 9 x-kse-attachmentfiltering-interceptor-info: no applicable attachment filtering rules found x-kse-antivirus-interceptor-info: scan successful x-kse-antivirus-info: =?utf-8?B?Q2xlYW4sIGJhc2VzOiAyMDIyLzEyLzkg5LiK5Y2IIDA3OjIzOjAw?= x-kse-bulkmessagesfiltering-scan-result: protection disabled Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQml0dGVyYmx1ZSBTbWl0 aCA8cnRsODgyMWNlcmZlMkBnbWFpbC5jb20+DQo+IFNlbnQ6IFdlZG5lc2RheSwgRGVjZW1iZXIg NywgMjAyMiA1OjQ5IEFNDQo+IFRvOiBsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmcNCj4g Q2M6IEplcyBTb3JlbnNlbiA8SmVzLlNvcmVuc2VuQGdtYWlsLmNvbT47IFBpbmctS2UgU2hpaCA8 cGtzaGloQHJlYWx0ZWsuY29tPjsgQW5kcmVhIE1lcmVsbG8NCj4gPGFuZHJlYS5tZXJlbGxvQGdt YWlsLmNvbT47IFRhZWhlZSBZb28gPGFwNDIwMDczQGdtYWlsLmNvbT4NCj4gU3ViamVjdDogW1BB VENIIDIvMl0gd2lmaTogcnRsOHh4eHU6IEFkZCByYXRlIGNvbnRyb2wgY29kZSBmb3IgUlRMODE4 OEVVDQo+IA0KPiBDb3BpZWQgZnJvbSB0aGUgbmV3ZXIgdmVuZG9yIGRyaXZlciwgdjUuMi4yLjQu DQo+IA0KPiBTaWduZWQtb2ZmLWJ5OiBCaXR0ZXJibHVlIFNtaXRoIDxydGw4ODIxY2VyZmUyQGdt YWlsLmNvbT4NCj4gLS0tDQo+IFRoaXMgcGF0Y2ggc2hvdWxkIGJlIGFwcGxpZWQgYWZ0ZXIgbXkg b2xkZXIgcGF0Y2g6DQo+ICJbUEFUQ0ggdjQgMy8zXSB3aWZpOiBydGw4eHh4dTogSW50cm9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