Edimax EW-7811un Version 1 USB nano dongle works with rtwn driver. Uses the RealTek RTL8192cu chipset USB Vendor/Product Ids 7392:7811. Edimax EW-7811un Version2 uses the RTL8188EU RealTek chipset USB Vendor/Product Ids 7392:b811
Reference these 2 GhostBSD forum posts, that I wrote to manually get a driver installed and working with GhostBSD to have Wifi operational. I share some brief FreeBSD commands below, yet read the 2 posts referenced below for greater details and explanation
GhostBSD uses the same terminal (CLI) commands as FreeBSD. Find what devices are connected on the PCI bus and the USB bus with the following terminal commands. See if your Wi-Fi device is listed there in the output from the following commands.
You need to know your installed networking hardware and installed kernel modules and your version and revision of freebsd.
uname -a
or
uname -k
command and look for the revision number like r310386 and the Kernel version FreeBSD 12.0-CURRENT #1 The separate usb and pci drivers were combined into one rtwn driver module, with 2 interface kernel modules if_rtwn_usb.ko & if_rtwn_pci.ko after Release r310386 ( Verify Release number )
Then check the PCI bus devices and the USB bus devices to see what you have for WiFi hardware in your computer.
pciconf -lv
usbconfig list
or
usbconfig dump_device_desc
Now edit 3 Files to add configuration lines into them. This will make Wi-Fi operational
/boot/loader.conf /etc/rc.conf /etc/wpa_supplicant.conf
Create rtwn0 device. Only needed the first time when installing Wi-Fi. This is persistent over future use and reboots.
ifconfig wlan0 create wlandev rtwn0
Check operation of wlan0 device. Scan for Wi-Fi access points
ifconfig wlan0
ifconfig wlan0 up scan
ifconfig wlan0 down
ifconfig wlan0
ifconfig wlan0 up
Kill any previous instances of dhclient running.
killall dhclient
Then issue the wpa_supplicant command to configure the details of the Wi-Fi device. A Debug version of wpa_supplicant is
wpa_supplicant -d -K -i wlan0 -c /etc/wpa_supplicant.conf
Now kill the dhclient and issue the wpa_supplicant command again in the background. Networking should come up and your ping commands should work
killall dhclient
wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
dhclient wlan0
Check operation of network statistics or socket statistics
netstat -r
netstat -i
sockstat -4
When you make changes to the network, you might have to restart the network and routing processes. This should bring up the network and connect again.
service netif restart
service routing restart
ifconfig wlan0
ifconfig wlan0 up
Check if we can ping localhost first using just IP numbers,\; then 2nd time using DNS lookup
ping -c 3 127.0.0.1
ping -c 3 localhost
Check if we can ping through external internet connection to Google.com
ping -c 3 8.8.8.8
ping -c 3 he.net
ping IPS backbone provider Hurricane Electric in Fremont California, simple to type
he.net
Edimax EW-7811un Wifi setup for GhostBSD / FreeBSD This is helpful reading to understand manual commands
RealTek RTL8188CE PCI card Wifi setup uses RTWN device driver This is helpful reading to understand manual commands.
Optional idea is to use a cell phone cable connected to your cell phone, for a tethered internet connection.
https://forums.ghostbsd.org/ USB cellphone tethering for Network connection This is helpful using a USB Tethering from your cellphone data via USB cable
EDIMAX EW-7811un details from manufacture website with a picture
RaspberryPi USB Wi-Fi Adapters listing with detail comments Some more reading to find usable Wifi Dongles for FreeBSD use by chipset number and User ID, this document references usage in a Linux Environment.