Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp857253rwl; Wed, 5 Apr 2023 08:34:30 -0700 (PDT) X-Google-Smtp-Source: AKy350b7pAF9EF7QoDkJuLMTHWA09ZVdhAW5hwcrvbMPHOVAnypZ/B12WovSvRP1CX2hEQ22c8eT X-Received: by 2002:a17:906:edb3:b0:92b:6b6d:2daf with SMTP id sa19-20020a170906edb300b0092b6b6d2dafmr3460777ejb.77.1680708870363; Wed, 05 Apr 2023 08:34:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680708870; cv=none; d=google.com; s=arc-20160816; b=a9S1Z+QrMOB3n8jX5jR/LeE8OMUjk5HzxoyHbBscp31AXViDjHy96aNjTi0yN6AKPS AESAX6aFyDUO73YKhwpXoYzuwM7q/UAvQBnyQsqwa/+0XOVv4wL5pbGMMV9JDWgPV52Y urfCx/Obz16mJWgnoRpnWf29hfn7ooxpA6x+7NREIZqJE0GV/h2I6JI322pO1eAuGIwE 8KEESOwhFoqNHqJrp8JqG+Xf75oO/DfCQFVdR3tkVed2MtVfhHwDy54nGKXUO2ryIMh+ 0AqltTJp4+ivpbg4nmwCG4IQXzKOwHZaKQ5BUigH1bfbvZk16ZQkxR8i4qxcEh1gJ1XR 8rJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:mime-version:date :dkim-signature:dkim-signature:message-id; bh=dhMF+udcUP9FrFV9Hu4mIeidh9p+xIOR/iNotBOg3pY=; b=lXaK/nkTqKsV5tbhvOdBd1aOP0wM+retiBoGJq5nE9WIUZlZvzTvwIv7szXgoVmrOU bDl3gzx6TVeTaj12+Zgx1VWJ9hIPOS57hwVh1RNd9qbZtuzDrq0l/hbyM1rCQlZQGDm6 qcegfk4GRN5D+tO1QG06X0IzzIM7UcZBGarfRU/VupsJoIe5fPD4X3F0Pn8COvG2tOKJ Ba5PlL5hjEfpdVZIf5Rn/Ipk4MiZo8bQX722QpDSfikQBclHD9Wx8DSIizwWpePp4ZBj dps1DsQRiD+a51tXatTMiLxn4qUQfwmvCWQIbk4q3/WhtstdBUXRxGFTap8uafhKuJcd 9khQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=kXIQ7gIQ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 j4-20020aa7c0c4000000b004fd23c65267si9640757edp.569.2023.04.05.08.34.12; Wed, 05 Apr 2023 08:34:30 -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=kXIQ7gIQ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 S238792AbjDEPbq (ORCPT + 59 others); Wed, 5 Apr 2023 11:31:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238842AbjDEPbf (ORCPT ); Wed, 5 Apr 2023 11:31:35 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82B195251 for ; Wed, 5 Apr 2023 08:31:21 -0700 (PDT) Message-ID: <26840cf1-9403-3d09-a4d2-352bc198efff@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1680708678; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dhMF+udcUP9FrFV9Hu4mIeidh9p+xIOR/iNotBOg3pY=; b=kXIQ7gIQLMIimR7hoPrxQiOCttCUMVapLxPNg6PWw6pjt+G/USbufbnJygA7c2k6WliSxb +HbcVtdbTIswOpj3Z0nOuqYgjLCSlRrljWEyiliHKrv0bQqJIZU0PECUI6NXnRlXqkn1Rt d7E7IXoz1twrof691Jxw3g3M7UPZQmVX5lNfDGYRe1UVXsHUs1bk2SdQw7lKA06QuszSxn 0cZ8jU8XdW8dW1g7kHAhalxtSJNBYEP/qYMSsiRoVOfj1SJ/GwvnsjJVi0LnSqhPl1DUst LUGi17q2w0DVnhHh/DzCmQNOFVD9HHc/9xcVjlyOMFAD8l9cuI5hihpp7QuyBQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1680708678; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dhMF+udcUP9FrFV9Hu4mIeidh9p+xIOR/iNotBOg3pY=; b=qKHSkLZgjsD0PljA32EWdi9UrFWIT+MQn5hNFpxe3ydCf13fQ3Kfp+bx6iDrfemBeSkpbf jbiroAd2DQonNLBQ== Date: Wed, 5 Apr 2023 17:31:18 +0200 MIME-Version: 1.0 Subject: Re: [RFC PATCH 00/14] wifi: rtl8xxxu: Add AP mode support for 8188f To: Bitterblue Smith Cc: Jes Sorensen , Kalle Valo , Ping-Ke Shih , Sebastian Andrzej Siewior , linux-wireless@vger.kernel.org References: <20230322171905.492855-1-martin.kaistra@linutronix.de> Content-Language: de-DE From: Martin Kaistra In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 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 Am 23.03.23 um 18:12 schrieb Bitterblue Smith: > On 22/03/2023 19:18, Martin Kaistra wrote: >> 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. >> > > Hi! > > I ran into some problems while testing this. > > First, a null pointer dereference in rtl8xxxu_config_filter() when > turning on the AP. priv->vif was NULL: > > if (priv->vif->type != NL80211_IFTYPE_AP) { > > I changed it like this: > > if (priv->vif && priv->vif->type != NL80211_IFTYPE_AP) { > > Then I was able to turn on the AP and connect my phone to it. However, > the system froze after a few seconds. I had `journalctl --follow` > running. The last thing printed before the system froze was the DHCP > stuff (discover, offer, request, ack). The phone said it was connected, > but speedtest.net didn't have time to load before the freeze. Hi I could reproduce a frozen system with my hostapd setup, though it doesn't happen reliably and I don't have an error message when it happens. What I can see on the other hand, are WARNING messages which happen sometimes in include/net/mac80211.h:2936 (ieee80211_get_tx_rate()). This might be unrelated, I am not sure. Is this function even supposed to work in combination with HAS_RATE_CONTROL set? Also, why are we putting rate into txdesc for all packets (ie. also when USE_DRIVER_RATE is not set) when the firmware sets the rate based on the rate_mask? > > My system is a laptop with RTL8822CE internal wifi card connected to my > ISP's router. The connections are managed by NetworkManager 1.42.4-1, > which uses wpa_supplicant 2:2.10-8 and dnsmasq 2.89-1. The operating > system is Arch Linux running kernel 6.2.5-arch1-1. > > I used Plasma's NetworkManager applet to create a new "Wi-Fi (shared)" > connection with mode "Access Point", band 2.4 GHz, channel 1, no > encryption, and "IPv4 is required for this connection". > > > Unrelated to anything, just out of curiosity, what brand/model is your > RTL8188FU?