Date: Tue, 13 Aug 2019 21:15:12 -0700 From: Adrian Chadd <adrian.chadd@gmail.com> To: "james.m.parsons" <james.m.parsons@protonmail.com> Cc: "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org> Subject: Re: rtwn driver Message-ID: <CAJ-VmomYzB7PugVNZF=-mLpCP=jDN3g1yS96Xd4-=oSx9sTg0A@mail.gmail.com> In-Reply-To: <fJB6igoJzxYzaL91JrkGQm4ynL071XnOLFQ-G8R-YRXhc726HhSlqgPehsXKv7VY-zgsTHnSKJTQA7II7EoSunP7lU7XDZn9g1EFnwFq3EA=@protonmail.com> References: <URBHrbdLhZgIUNBZUqWPCqMdYbhMqC5AeNNyTsIC7sH9HNGWa_EkpiPvwl1gPTDQLS0oVi3-8qkurvALz1-CRBYZUUAN0ilWCa-6M6IK9g0=@protonmail.com> <CAJ-Vmonrvd-37JQdfQTs696q=tzrADvPQEbSk263pJ61k0NBmg@mail.gmail.com> <fJB6igoJzxYzaL91JrkGQm4ynL071XnOLFQ-G8R-YRXhc726HhSlqgPehsXKv7VY-zgsTHnSKJTQA7II7EoSunP7lU7XDZn9g1EFnwFq3EA=@protonmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
yay! -a On Tue, 13 Aug 2019 at 21:13, james.m.parsons < james.m.parsons@protonmail.com> wrote: > Thanks! I dd end up creating a a couple days ago and it looks like it got > commited. > > > Sent from ProtonMail mobile > > > > -------- Original Message -------- > On Aug 14, 2019, 12:09 AM, Adrian Chadd < adrian.chadd@gmail.com> wrote: > > > hi! > > Thanks for doing this! if it's the same chipset but a different ID then > yes, it's literally that easy most times. :) > > Nice work! If you file a PR then we'll try to get someone to commit it to > freebsd-head. > > > -a > > > On Sun, 11 Aug 2019 at 00:34, james.m.parsons via freebsd-wireless < > freebsd-wireless@freebsd.org> wrote: > >> Good morning, >> >> A few weeks ago, I installed FreeBSD 12.0-RELEASE on a box that had an >> [Asus PCE-N15](https://www.asus.com/us/Networking/PCEN15/) wireless >> network card based on the Realtek RTL8192CE chipset. According to the man >> page for the [rtwn]( >> https://www.freebsd.org/cgi/man.cgi?query=rtwn&sektion=4&manpath=freebsd-release-ports) >> driver, this card was supported, however the driver refused to attach. >> Running pciconf -lv would show the device as none0, but had the correct >> vendor information. >> >> Later on, after [inquiring on the forums]( >> https://forums.freebsd.org/threads/issue-getting-realtek-wireless-network-card-rtwn-driver-working-on-new-freebsd-installation.71677/), >> I decided to investigate the potential of patching the driver to work with >> my card. When I finally sat down tonight to start on it, I found the fix >> surprisingly simple. Looking at the driver source code under >> /sys/dev/rtwn/pci/rtwn_pci_attach.h, I see an array containing the vendor >> id's and device id's for PCI devices: >> >> static const struct rtwn_pci_ident rtwn_pci_ident_table[] = { >> { 0x10ec, 0x8176, "Realtek RTL8188CE", RTWN_CHIP_RTL8192CE }, >> { 0, 0, NULL, RTWN_CHIP_MAX_PCI } >> }; >> >> I noticed the device id 0x8176 was different from my card, which was >> reported as 0x8178. So I added to that array: >> >> { 0x10ec, 0x8178, "Realtek RTL8192CE", RTWN_CHIP_RTL8192CE }, >> >> And after building and installing a custom kernel with all the lines >> noted in the above man page to the config, I rebooted, noticed the driver >> is now attaching to the PCI device and have since been able to connect to >> my home wifi without issue. >> >> Honestly, I'm a bit suspicious at the ease of fixing this issue, and am >> not sure if this is something that should / could be contributed to the >> kernel code. I'm also sure, there are other device id's that would need >> added to have full support, but after asking some other people, I was >> suggested to send an email to this address. >> >> Thanks, >> James Parsons >> _______________________________________________ >> freebsd-wireless@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> To unsubscribe, send any mail to " >> freebsd-wireless-unsubscribe@freebsd.org" >> >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmomYzB7PugVNZF=-mLpCP=jDN3g1yS96Xd4-=oSx9sTg0A>