Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2673524pxj; Mon, 10 May 2021 08:15:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgpX46dY+2HApDFKE1sG5D+XRJV0ZMOEAKh6uZtCVD0HrOE/iwRkAKNkini7cUPNcKJW+T X-Received: by 2002:a05:6602:55:: with SMTP id z21mr7483655ioz.54.1620659757474; Mon, 10 May 2021 08:15:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620659757; cv=none; d=google.com; s=arc-20160816; b=ydqdeOO23Nyn/DivQrsczKDiB3fXKoqA9+VYZrojRfcATJ529rxJSgOXRTtsQVI5e6 ph6trx1U5VmneChi3BiSnsb8fB4AFsbeMz3D62hhaQpN3htyADYYEB6DFyOGgUvNI74b hF1FFvgtOvJaWOPh4AWEtvU6lHQHAURHQ3+H4ZkGEsCKEFZmpzzfol369TOJa6/T3LTD SlT8A6C/ji4BqnPfZHLQ/mzLcuFxXj1+oWANl8cEsq/4BuP27OcVPT4ksl9qXG+lyhwL fnx0W0ogc/Q67zTBE0/jplc0IUcIgDaGDFqEEqtIp7hP+MQ0XVq7rpXLYuI/FtGkZGuc Rp2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:user-agent:date:message-id:subject:cc:from:to; bh=afUE3kdrwjGgYIYlKgvS3bz5JSz4jRwjSAjjtkBOtLQ=; b=hNZd7Cag3W3jME54TBRp2YxHqWly/iymhdngAAqHYcmQ5fTQn3R6k4OQDXwp0u3djF hqKOQtmN+aG+vn2Eepo4QYHkftBUu+wgVxmTIJ396Zm8fQV/eojh3n8tzZDyWUGgjArK A7hwrwfhWDTSMw2nzx1jip9otg/CPAK9bMrOGz/JMOU1p8v1FqWi/XZsCH8s3E4hWiSk UFKrQV9ZHXlLoTdZOP2Xf0Bu+m9BymzCkhARZWQ4DcvGYWirBXi66s9nt6seYUTh3kIE XspCOvy7JnEIHE71/HkU4RiroAyxPDFvXrBvlrzs9kb5f3yFNF33OVcp6ry7nkMdm4Rx wEhQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k6si16155327ilo.39.2021.05.10.08.15.41; Mon, 10 May 2021 08:15:57 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241347AbhEJPQ1 (ORCPT + 99 others); Mon, 10 May 2021 11:16:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240554AbhEJPOf (ORCPT ); Mon, 10 May 2021 11:14:35 -0400 X-Greylist: delayed 2626 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 10 May 2021 07:34:10 PDT Received: from mxout012.mail.hostpoint.ch (mxout012.mail.hostpoint.ch [IPv6:2a00:d70:0:e::312]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2F7CC056757 for ; Mon, 10 May 2021 07:34:10 -0700 (PDT) Received: from [10.0.2.44] (helo=asmtp014.mail.hostpoint.ch) by mxout012.mail.hostpoint.ch with esmtp (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1lg6IQ-000MKY-5m; Mon, 10 May 2021 15:50:06 +0200 Received: from [2a02:168:6182:1:606a:a23b:6802:7f10] by asmtp014.mail.hostpoint.ch with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1lg6IP-0004Ia-2b; Mon, 10 May 2021 15:50:06 +0200 X-Authenticated-Sender-Id: reto-schneider@reto-schneider.ch To: Jes Sorensen , linux-wireless@vger.kernel.org From: Reto Schneider Cc: =?UTF-8?B?6YKx5ZCN56KpIChDaHJpcyBDaGl1KQ==?= , yhchuang@realtek.com, pkshih@realtek.com, tehuang@realtek.com, Larry Finger , kuba@kernel.org, kvalo@codeaurora.org, davem@davemloft.net, Reto Schneider Subject: rtl8xxxu: Wi-Fi Alliance Certification on Realtek RTL8188CUS Message-ID: Date: Mon, 10 May 2021 15:50:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Jes, Hi all, Chris (writing code, testing) and me (testing) are working [1] on re-newing the Wi-Fi Alliance certification of an IoT gateway (STA) which uses the Realtek RTL8188CUS chip, and is (now) running Linux 5.10+ with the rtl8xxxu driver, firmware version 88.2 [2]. The existing certification [3] has been done using the RealTek-provided 8192cu driver [4] and and Linux 3.19. While the rtl8xxxu in upstream is *very* stable, it lacks some features which are needed for the certification. I tried to summarize this in the wiki [1]. The following has been implemented by Chris (on top of mainline): - STBC Receive - TX power configuration (using the iw command, not regdb) Still missing: - WMM support - A-MSDU RX support - TX power by rate WIP (See also Chris' mail from earlier today): - A-MPDU - Rate adaption - TX descriptors The motivation for writing this mail is that we we are currently blocked by an issue which we can not resolve already for some months: The re-transmission percentage of the rtl8xxxu is too high (rtl8192cu is the same) - way higher than what 8192cu achieves. According to Wireshark, the retransmission rate is always between 15-65% for the rtl8xxxu, while the realtek-provided 8192cu stays below 5%, often averaging at less than 1% in my setup. Examples with an Linksys WRT3200ACM AP (RA/TA: 24:f5:a2:c0:4e:b1, DA/SA: 00:60:6e:00:07:7d, SSID customer-testwifi) and the DUT (00:1d:43:c0:19:8a) running iperf3 (TCP, TX): rtl8xxxu: - 65% retries, many addresses reported which do not actually exists - Code: [5] - Captures: [7] 891cu: - 0.9% retries, no ghost addresses captured - Code: [6] - Captures: [8] I'd be really grateful for any kind of ideas, pointers, help. Kind regards, Reto [1] Wiki entry (slightly outdated): https://wireless.wiki.kernel.org/en/users/wi-fi-alliance-certification [2] rtl8912cu firmware v88.2, part of linux-firmware 20201118: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/rtlwifi/rtl8192cufw_TMSC.bin?id=2ea86675db1349235e9af0a9d0372b72da4db259 [3] Existing certification: https://api.cert.wi-fi.org/api/certificate/download/public?variantId=14856 [4] https://github.com/husqvarnagroup/smart-garden-gateway-seluxit-8192cu [5] Most recent rtl8xxxu development: https://github.com/husqvarnagroup/linux/commit/909f13c8fd45260a622d148882030624d492c54f [6] 8192cu for Linux 5.10+: https://github.com/husqvarnagroup/realtek-8192cu_rtl8188cus [7] pcap: https://files.reto-schneider.ch/diesunddas/rtl8xxxu/2021-05-10/rtl8xxxu-65%25-retries.pcapng.gz shell: https://files.reto-schneider.ch/diesunddas/rtl8xxxu/2021-05-10/rtl8xxxu-65%25-retries-shell.log [8] pcap: https://files.reto-schneider.ch/diesunddas/rtl8xxxu/2021-05-10/8192cu-0.9%25-retries.pcapng.gz shell: https://files.reto-schneider.ch/diesunddas/rtl8xxxu/2021-05-10/8192cu-0.9%25-retries-shell.log