SirDice, Phishfry, Grahamperrin Thank you for your support to other FreeBSD users. I am working to follow in your foot steps to also help others with their wireless questions.
Howto setup RTWN driver for RTL8821cu card,from a future Post :>)
As a new user myself a few years back using GhostBSD working to get wifi operational, I read lots of web posts, gleaning bits and pieces of information from them and from reading the FreeBSD handbook, yet I found nothing to show a new user to FreeBSD (or GhostBSD) how to start from NO KNOWLEDGE, what commands to begin with to know what wifi device was hidden inside that Dell Laptop. I distilled them to a set of howto commands useful for a
USB device RTL8192cu Edimax EW7811un 150 mbits wifi usb nano dongle working and a second post for
PCI device RTL8188CE internal to a Dell Inspiron Laptop.
Hope this collected information helps you out today, whichever year it is in the future. Please have a read and see if you can follow it down the happy trail to a working Wifi connection to your favorite access point. It is really hard being a newbie to an operating system, and not knowing what command to type at a command line, what command comes first and what sequence of commands follow to give you the information for the next input question asked. Finally what files do you have to edit and what information do you need to place in those files?
3 Files to add configuration lines into
/boot/loader.conf /etc/rc.conf /etc/wpa_supplicant.conf
You will need to install 2 or 3 wifi driver kernel modules with kldload command. Start with 2 comands,
Know what version of FreeBSD you are running with "uname -a" command. Then "kldstat" command to see what kernel modules .ko file have already been loaded from this directory
/boot/kernel.
See what pci and usb devices are attached to your computer. Look for the wireless wifi device name.
Code:
pciconf -lv
usbconfig list
usbconfig dump_device_desc
Load these 3 kernel modules, as an example for a Realtek wifi driver, either USB or PCI
Code:
kldload rtwn if_rtwn_usb if_rtwn_pci
kldstat
create rtwn0 device
Code:
ifconfig wlan0 create wlandev rtwn0
Bringing up the Wi-Fi device, will load the device firmware automatically. Then will scan for local WiFi access points that you could connect to.
i
See the 2 url links at the start of this post to get more details for connecting to a Wifi Access Point.
Github MorrownR RTL8821cu Linux Device Driver source code. He adds a lot of good sound information that may be useful to read about that is the same suggestions for a FreeBSD wifi checklist.