Manual Start Wifi with a USB Dongle on Raspberry Pi 4B

My Manual Wifi notes

Note that the TP Link TL-WN823N rtl8192eu chip, has driver problems and does not connect with a Wifi Access Point using the wpa_supplicant program.

The "ifconfig wlan0 up scan"  does work to view nearby access points.

# edit 3 Files to add configuration lines into /boot/loader.conf /etc/rc.conf /etc/wpa_supplicant.conf
# for the file  /boot/loader.conf
# using Keyboard, change into the 'root' user, before editing.  on a stock FreeBSD snapshot the sudo command is not installed
su -
root_password


#use the ee or vi editor to edit the file /boot/loader.conf
ee /boot/loader.conf
if_rtwn_load="YES"
if_rtwn_usb_load="YES"
legal.realtek.license_ack=1


#/etc/rc.conf add 2 lines for TP Link TL-WN823N rtl8192eu chip
wlans_rtwn0="wlan0"
ifconfig_rtwn0="SYNC DHCP"


Bare minimum fields necessary for an encrypted Wi-Fi connection using wpa_supplicant command. Edit file /etc/wpa_supplicant.conf
network={
    #: my NetGear box
    ssid="NETGEAR59"
    psk="my_passkey_892"
    key_mgmt=WPA-PSK
}


#/etc/wpa_supplicant.conf example file for an Open Network connection to Wireless SSID name "innflux"
network={
   ssid="innflux"
   key_mgmt=NONE
}

#Manually issue the wpa_supplicant with the background Dameon option and dhclient commands
wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
dhclient wlan0

#Use the following line for testing with the Debug and Password debug printout options
wpa_supplicant -d -K -i wlan0 -c /etc/wpa_supplicant.conf
dhclient wlan0


#Problems running dhclient? Then kill the previously running dhclient.
killall dhclient
dhclient wlan0


#create rtwn0 device just one time issue this command
ifconfig wlan0 create wlandev rtwn0

Comments

  1. Here add a comment of your own, after this comment, Fred

    ReplyDelete

Post a Comment

Popular posts from this blog

FreeBSD 14.0 Compiling kernel for Raspberry Pi 4B

HDMI Audio sound patches into GhostBSD source code /usr/ghost14/ghostbsd-src SOLVED Jan20 2024

How to install GhostBSD-Arm64 into a USB Flash Drive stick February 5, 2024 edition.