From nobody Sun Mar 29 15:55:16 2026 X-Original-To: freebsd-wireless@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fkJqv4SMPz6WbDQ for ; Sun, 29 Mar 2026 15:55:23 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fkJqv39Qnz4Kbx; Sun, 29 Mar 2026 15:55:23 +0000 (UTC) (envelope-from bz@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1774799723; 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: in-reply-to:in-reply-to:references:references; bh=x/N0yALM0BlQ5tj5QE6EDu0YCN23utnYRk5aWzuyzac=; b=CP83c5Oa/8sQKq4oMuZwx0s9gMzfOe8AJI4iOBymgS8W2aNXlFpFH+E3HlcXjxEezgYJpx W6yYtF8u1O4FUQ57rcSc16AJwMGV/ELuAxFkbDUuhuzHqy8q3yQ764iWhm6GNAUlTOZUK3 jB+T5VIWITsmTlegWLDfscwzXVRZB9fyQjF46cCaA4WiyzPF/W1LZzW1q8yZyBYaezXrXq yDyl3KnR7rdD0IFONDU0kOw169pLfAB7gc6zdyiU8eNd7b9ozEhUan8d/zeFyn5SPOTogO 3xVUDSU8hsoEELvtP6/s26byi9KLveE7OCi00qYVyvW/5a4F9zF03tqpLNHMeg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1774799723; a=rsa-sha256; cv=none; b=JmUNurA3rYItvxlOzIDYZbLaqcoqDzfAwJVg6tWCUzTFSS5WBM2/hue+iuczXkHC7/Ez1P 2OZy0/BPEDVBc6PI3BCFhkvdDapZl89evvZ3mnKEVaNEpImheYOBwjEM3JcNZLHITa5SHA HsXrVWpFmhhx1N+gxdz5Fl+0xvloki8iwb0lAdX0r4vIO8Q7gJodswfSrLCItlIhAZogFk DOMRwk0dy75nefrpzoFlW7Q3811zxvyvI1K7i49f+2Q8Ph+IuJHVVYQ2VK5m1c3yoH/CP4 KBWtehEsuF/ulRV5R7panNzFG6xp5b8fbzd5bb2RyDSw7oGVm/NsE/lvJVSaJg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1774799723; 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: in-reply-to:in-reply-to:references:references; bh=x/N0yALM0BlQ5tj5QE6EDu0YCN23utnYRk5aWzuyzac=; b=ZHM2gjs8E2IblzxDierdPWFMCquvrUHnmg/BfzWPMDSWCrPcSbqHwJxDGqwx8UebbRMrw9 lLb2klIEmnpfehkmHhbeqWGvnH1K7jOlmhcNWGR/czAT51nVqua6r5Y5Hzn9ubgAQSl9GB hiHFx/sld/rHVZaEBNlC5jbDG32Ia21rvqdP1qCD3xrrJiW8RYh1cU/zo2Hjxn/kipqZvu 2qg3Jr8rCa/3sqnx9r4tmIlc+Werdrr3/sErMDQzt5f7mBQBVU/ACKvfhT4VLlbTRtZ6wK Sck7eHA7YyLJ1s1r0tPm+KN82yQjo/sl+3kSlvHvQrVTyLB+aV1d7MjHKlWYGQ== Received: from mx-01.divo.sbone.de (mx-01.divo.sbone.de [IPv6:2003:a:140a:2200:6:594:fffe:19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (prime256v1) client-digest SHA256) (Client CN "mx-01.divo.sbone.de", Issuer "E7" (not verified)) (Authenticated sender: bz/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4fkJqv1fjLz14qY; Sun, 29 Mar 2026 15:55:23 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mx-01.divo.sbone.de (Postfix) with ESMTPS id 26964A64805; Sun, 29 Mar 2026 15:54:58 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id E30DD2D029E9; Sun, 29 Mar 2026 15:55:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id 91PWjWJk12T0; Sun, 29 Mar 2026 15:55:18 +0000 (UTC) Received: from nv.t4-02.sbone.de (nv.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id CCE6A2D029D8; Sun, 29 Mar 2026 15:55:17 +0000 (UTC) Date: Sun, 29 Mar 2026 15:55:16 +0000 (UTC) From: "Bjoern A. Zeeb" To: Nuno Teixeira cc: freebsd-wireless@freebsd.org Subject: porting bwfm from N/OBSD [was Re: Rebuilding brcmfmac Wi-Fi driver with the help of AI] In-Reply-To: Message-ID: References: <75f56507-49e8-4f43-987f-7025d62b0bd9@gmail.com> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-wireless List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-wireless@freebsd.org Sender: owner-freebsd-wireless@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed On Sun, 29 Mar 2026, Nuno Teixeira wrote: Hi Nuno, > It seems that OpenBSD and NetBSD have drivers for BCM43455. Could those > drivers be imported fo FreeBSD? There's been like at least 3 or 4 people I know off, if not more, who started porting bwfm over the course of the last years; everyone went silent. That's the reason we now do have a compiling brcmfmac driver for LinuxKPI in the tree; it laods firmware on PCIe on X86 (and with a workaround on arm64) (and in theory on USB in my dev tree). In another dev tree sits a 85% finished SDIO implementation mostly tested on rtw88, where I already create wlan interfaces and have scanning results, etc. The one thing which is missing for brcmfmac really is a cfg80211/netdev compat shim to drive this, of which we porbably have half as well already in LinuxKPI. But that's kind-of disruptive to the other ongoing work for all the other mac80211-based drivers and so I have not really had a good look. It could boil down to three functions, it could boil down to a lot more. Preliminary LinuxKPI USB support is blocked on cleaning up some older compiler options in the tree, which we currently do not yet understand. Getting SDIO out as-is simply "need time to sit down", rebase and open reviews. In other words I need to finish the rtw8x (and mt76) work before I can find free time to look at it. rtw8x/LinuxKPI I really want in 15.1-R and the time for that is ticking. /bz -- Bjoern A. Zeeb r15:7