13.1 full install; RTL8192eu not working

Hello all.

I'm a BSD newbie but been using Linux for years (various distributions)
so I know my way around UNIX in a general way.

I've just installed 13.1 via 'FreeBSD-13.1-RELEASE-amd64-memstick.img' and am
eager to test drive it.

Problem: cannot get wifi to work.

Did a full install with all defaults accepted.
USB wifi dongle: TPLink WN821N (RTL8192eu realtek)
CPU: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
MEM: 4GiB

Followed chapter 33 of handbook and did the following:
% sysctl net.wlan.devices
rtwn0


% vi /etc/wpa_supplicant.conf:
network={
ssid="<real ssid>"
psk="<real psk>"
}


% vi /etc/rc.conf:
wlans_rtwn0="wlan0"
ifconfig_wlan0="WPA DHCP"

create_args_wlan0="country CA regdomain FCC"

% service netif restart
displays data for lo0, em0, and wlan0 correctly but never returns;
ctrl-c doesn't kill it; have to use kill pid from ttyv1

On reboot bootup text shows rtwn0 is detected ok

wifi connection fails with message:
Waiting 30s for the default route interface:...(no carrier)

% ifconfig
displays data for lo0, em0, and wlan0 correctly

% ping 8.8.8.8 returns no route to host.

% ifconfig wlan0 list scan displays data correctly

If I do 'kldstat' only two modules related to wifi are shown:
'if_rtwn_usb.ko' and 'rtwn.ko'

but 'wlan_cpp' and 'wlan_tkip' are not being loaded (should they be?)

Is rtwn the correct module? /boot/kernel contains a rtwn-rtl8192eufw.ko' module.

So I read these posts for rtl8192eu but don't understand them at this point.
https://forums.freebsd.org/threads/...-rtl8192eu-realtek-802-11n.88055/#post-599373
https://forums.freebsd.org/threads/freebsd-13-d-link-dwa-182-tplink-wn821n-work.82664/

The dongle works on Linux which is what I'm using to post this.

Any help/tips to get this solved would be really appreciated.

TIA
 
Sirdice: thanks for reply. I had read that post and tried the instructions but had no luck. Kept getting message about dhclient timing out.
I have used the handbook as a guide and got to the point where I could connect to SSID. But no route to host so could not connect to internet.

I did some searches and came across something that worked for me! So am ending this thread with some info for other newbies if they read this.

I found a script at:
https://github.com/vermaden/scripts/blob/master/network.sh

I studied this and learnt a lot! From this script I created a simple
rough script for me to test and it worked. I can connect with FreeBSD. I will have more questions to post later as I learn but for now thanks.

P.S. and thanks very much to "Vermaden''.
P.S. how do I mark this thread as solved?
 
But no route to host so could not connect to internet.
If DHCP fails then you have no IP address, no DNS and no routing information (default gateway). And as a result no network connection. You wouldn't even be able to connect to a local LAN address.
 
Back
Top