Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6420710rwl; Wed, 22 Mar 2023 10:20:34 -0700 (PDT) X-Google-Smtp-Source: AK7set8L54i4+HYIQd/HnTwdPXegg6ANr/m6H54b2xcU6YGk0nVJwGggbFr//QrhHAYyyrxnPMjJ X-Received: by 2002:a17:906:f56:b0:90b:53f6:fd8a with SMTP id h22-20020a1709060f5600b0090b53f6fd8amr9177312ejj.10.1679505634751; Wed, 22 Mar 2023 10:20:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679505634; cv=none; d=google.com; s=arc-20160816; b=h6Sx2YsvLDYNH4fNpvwOlB0TQ+tQ2ZqcqlF3jesd3Pid/LC1mx1J0O6n7RIh5aKGMD yCU8hBmaCjAki8PAIIaDcRpi+8+JzGTXQshqtgzpoHJ1egvVJYagLgNIWph0HspdVec+ GUTr/Gqm6RlHioMXuwd8Hc3CinQIV4PdtgOgrYcUy4/IXbo/9KtDtacxCuKkfIjaF9T7 fszNUQwqB5nFs/4LNWhKQR8eg/s2y8L2U4ydWxwTBUiZ4EVu1iL21DLQTb7R6xD01A0h EMqMBkZnHx6WIeIUmHupuPurMXnN4lSloUwViy+CsJSHvoLHGgTSokN0ckLIYN+ffvaQ RQ4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:dkim-signature:dkim-signature:from; bh=VnAwkvQsv+iR2BpWJEGJXvX03ziFlRmpzSGqQQ3X2bU=; b=fRIoq+lFayJDWTULq9SPx1oWy5pM981PRHz2RB8fHAb7f7pbAemxGn8E70MhAyqeI2 iIasSTe8t9Jq7ewOFalVF7zruUjjYLdEMumy2HAHQ8y9aXZYiC3Id67hedwTJkE20lYQ DU7fDsdioGMZ6/r/ikWCGEhiWVbE8laaMchPCpfkuKbZiP+UqUF1ugVC1RhTWq4ArY67 h2gVusris6N/l/VmRrP7LZ68p5GG388frMlbtjc6m1YMwoGDHBR7TxU4SWpWf2frPC23 bnxYPXTkGucmo8Kh9AYSoU+8l5qXM80EcY0ARtO2k8Lzx+WltdYIYRTR+laYbmnDr6X9 dvdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ALbDzjZM; dkim=neutral (no key) header.i=@linutronix.de header.b="Km/5gTg/"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bm19-20020a0564020b1300b004c1a8c104d0si15168360edb.382.2023.03.22.10.20.18; Wed, 22 Mar 2023 10:20:34 -0700 (PDT) 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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ALbDzjZM; dkim=neutral (no key) header.i=@linutronix.de header.b="Km/5gTg/"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230343AbjCVRTn (ORCPT + 60 others); Wed, 22 Mar 2023 13:19:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230350AbjCVRT2 (ORCPT ); Wed, 22 Mar 2023 13:19:28 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2675566D04 for ; Wed, 22 Mar 2023 10:19:14 -0700 (PDT) From: Martin Kaistra DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1679505550; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=VnAwkvQsv+iR2BpWJEGJXvX03ziFlRmpzSGqQQ3X2bU=; b=ALbDzjZM6aaiZt9QTnaL/pZYox4LlCnYed1jqTZ+Nnp6RwJEdODrzDBRR31qPW6PtF0jR/ vpRkKpwcZQZY2hMBPRCofV20vjUuREM1QRZnmAEJA6Wn+NJYaa0dtTrmOCI54OD9nS7lGL YWjoDIhdUt8NJOeP2eruigGVoEHyq6/2l+nfM3WNlDhFSVKMFl2JqU5hIfo5785J1/ryr1 P7QViKdw9Div+J1QG3ijZPCJvKbV/RJTUllivX1mEYG1TKlb+XGnFkIPjcoxyxKqHTpIzm gLOlqZP2O4EhwZsbxPos0Q3nlgyajDqq+I1u28dmkkOgT+FtGoaSsP19iYpVbg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1679505550; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=VnAwkvQsv+iR2BpWJEGJXvX03ziFlRmpzSGqQQ3X2bU=; b=Km/5gTg/Q79DED3f4KvUEgh5tTLHCDYh10zOGiWLaPrCYtSHJUoKkliccIOfyfgoeBqs10 nA4VisaoLHGPBdBA== To: linux-wireless@vger.kernel.org Cc: Jes Sorensen , Kalle Valo , Ping-Ke Shih , Bitterblue Smith , Sebastian Andrzej Siewior Subject: [RFC PATCH 00/14] wifi: rtl8xxxu: Add AP mode support for 8188f Date: Wed, 22 Mar 2023 18:18:51 +0100 Message-Id: <20230322171905.492855-1-martin.kaistra@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=unavailable 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 This series intends to bring AP mode support to the rtl8xxxu driver, more specifically for the 8188f, because this is the HW I have. The work is based on the vendor driver as I do not have access to datasheets. This is an RFC, so that there can be a discussion first before potentially implementing support for the other chips in this driver, if required. Also while doing some measurements with iperf3 to compare with the vendor driver, I saw, that TCP traffic from AP to STA is slower than in the vendor driver. For UDP it looks fine. I hope I can get some help to fix this. * vendor driver: without 802.11n: UDP (AP -> STA): 27 Mbits/sec UDP (STA -> AP): 33 Mbits/sec TCP (AP -> STA): 24 Mbits/sec TCP (STA -> AP): 26 Mbits/sec with 802.11n: UDP (AP -> STA): 51 Mbits/sec UDP (STA -> AP): 35 Mbits/sec TCP (AP -> STA): 40 Mbits/sec TCP (STA -> AP): 36 Mbits/sec * rtl8xxxu: without 802.11n: UDP (AP -> STA): 25 Mbits/sec UDP (STA -> AP): 31 Mbits/sec TCP (AP -> STA): 3 Mbits/sec ! TCP (STA -> AP): 25 Mbits/sec with 802.11n: UDP (AP -> STA): 41 Mbits/sec UDP (STA -> AP): 36 Mbits/sec TCP (AP -> STA): 3 Mbits/sec ! TCP (STA -> AP): 32 Mbits/sec Thanks, Martin Martin Kaistra (14): wifi: rtl8xxxu: Add start_ap() callback wifi: rtl8xxxu: Select correct queue for beacon frames wifi: rtl8xxxu: Add beacon functions wifi: rtl8xxxu: Add set_tim() callback wifi: rtl8xxxu: Allow setting rts threshold to -1 wifi: rtl8xxxu: Allow creating interface in AP mode wifi: rtl8xxxu: Add parameter macid to update_rate_mask wifi: rtl8xxxu: Actually use macid in rtl8xxxu_gen2_report_connect wifi: rtl8xxxu: Add parameter role to report_connect wifi: rtl8xxxu: Add sta_add() callback wifi: rtl8xxxu: Put the macid in txdesc wifi: rtl8xxxu: Enable hw seq for all non-qos frames wifi: rtl8xxxu: Clean up filter configuration wifi: rtl8xxxu: Declare AP mode support for 8188f .../net/wireless/realtek/rtl8xxxu/rtl8xxxu.h | 28 ++- .../realtek/rtl8xxxu/rtl8xxxu_8188e.c | 3 +- .../realtek/rtl8xxxu/rtl8xxxu_8188f.c | 1 + .../wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 226 +++++++++++++++--- .../wireless/realtek/rtl8xxxu/rtl8xxxu_regs.h | 2 + 5 files changed, 222 insertions(+), 38 deletions(-) -- 2.30.2