Date: Fri, 1 Sep 2017 23:45:01 -0400 From: Farhan Khan <khanzf@gmail.com> To: Thomas Mueller <mueller6722@twc.com> Cc: freebsd-wireless@freebsd.org Subject: Re: Adding wifi source code Message-ID: <CAFd4kYCXGzF8AzyBhPbMnEqK9QxdfTMf3PqXzG7wJwvb00txNA@mail.gmail.com> In-Reply-To: <68.D0.25924.050D9A95@dnvrco-omsmta02> References: <CAFg2nZZRgenQOua4uhx_mPr1qUd9f3dt_2=ztfyjOBks7A3Ycg@mail.gmail.com> <68.D0.25924.050D9A95@dnvrco-omsmta02>
next in thread | previous in thread | raw e-mail | index | archive | help
Thomas, I was planning on also porting over the Atheros AR9271 driver from NetBSD (athn(4) /usr/src/sys/dev/usb/if_athn_usb.c), but not until I finish the current device I am working on. It might not be for a while though. There is likely a lot of shared code with ath(4) on FreeBSD (/usr/src/sys/dev/athn). NetBSD seems to separate all code between USB and PCI, whereas FreeBSD combines drivers. Let me know if I can help out, as I already own this device and would be willing to test out code or troubleshoot with you. I am currently working on another driver from Linux to FreeBSD. The core concepts are the same, but a lot of code is in different order. FreeBSD drivers have an attach function that assign function pointers to the softc struct. The Linux equivalent is in DRIVERNAME_ops. In my case, this: http://src.illumos.org/source/xref/linux-master/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/sw.c#224 . Hope this helps. But yes, would love to work on AR9271! -- Farhan Khan PGP Fingerprint: 782F 342B 5B08 0D2F F4E8 82C3 FFA1 CAE1 6536 51CA On Fri, Sep 1, 2017 at 5:25 PM, Thomas Mueller <mueller6722@twc.com> wrote: > from Tecno Linux: > > > Hello, I have the source code of my wireless driver i extract it from the > > linux kernel how can i compile that source code or i have another option > my > > wireless driver is a realtek rtl8723be wifi > > I have similar question, but the source code is from NetBSD and the > wireless chip is Atheros AR9271. > > I also have similar question regarding Ethernet Realtek 8111E re driver, > works in NetBSD but not FreeBSD (11.1-STABLE and HEAD) on computer in > question. > > Is there online handbook/documentation on writing device drivers or > porting from Linux or NetBSD? > > Tom > > _______________________________________________ > 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?CAFd4kYCXGzF8AzyBhPbMnEqK9QxdfTMf3PqXzG7wJwvb00txNA>