Wireless USB Driver reddit / freebsd ---------------------------------------------------------------------- BlatantMediocrity · 2020-07-26 21:01 I have a wireless USB dongle (D-Link DWA-171) that I want to get working on an x86 desktop. I found this driver and followed the instructions here: https://www.freebsd.org/cgi/man.cgi?query=rtwn&sektion=4&manpath=freeb sd-release-ports I know the device is supported because it’s on the device list here: https://www.freebsd.org/cgi/man.cgi?query=rtwn_usb&sektion=4&manpath=f reebsd-release-ports I added these lines to ‘/boot/loader.conf’: ‘ if_rtwn_pci_load="YES" if_rtwn_usb_load="YES" ‘ When I check that the module is loaded with ‘kldstat | grep rtwn’, it shows up, but there’s no other indication that it’s running. I know the USB is loaded when I run ‘usbconfig list’ The device doesn’t show up under network devices with ‘ifconfig’. Am I missing something? Would I be better off compiling a custom kernel? Any help would be appreciated. ---------------------------------------------------------------------- InfinitelyManic · 2020-07-26 22:18 The settings, in rc.conf & wps\_supplicant below, worked for me on FreeBSD rpi2 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC arm for: TP-LINK 150Mbps Wireless N Nano USB \*\*\* dmesg rtwn0 on uhub1 rtwn0: on usbus0 rtwn0: MAC/BB RTL8188EU, RF 6052 1T1R ieee80211\_load\_module: load the wlan\_amrr module by hand for now. \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* ​ \*\*\* /etc/rc.conf wlans\_rtwn0="wlan0" ifconfig\_wlan0="WPA SYNCDHCP" \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* ​ \*\*\* /etc/wpa\_supplicant.conf network={ ssid="Robots\_2\_4 " psk="PASSWORD>" } \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* ​ \*\*\* ifconfig: wlan0: flags=8843 metric 0 mtu 1500 ether e8... inet 10.0.0.175 netmask 0xffffff00 broadcast 10.0.0.255 groups: wlan ssid Robots\_2\_4 channel 1 (2412 MHz 11g ht/20) bssid 7... ---------------------------------------------------------------------- BlatantMediocrity · 2020-07-26 22:48 Thanks for sharing your config! I’ll try it out. ---------------------------------------------------------------------- InfinitelyManic · 2020-07-26 22:51 Welcome. You may have to tweak some things. But I found that on web, but also by carefully reading the man pages. I just started using FreeBSD yesterday and had a similar problem. It's much easier to set up wireless in OpenBSD, btw. Let us know what your solution is. ---------------------------------------------------------------------- BlatantMediocrity · 2020-07-26 23:32 > ieee80211_load_module: load the wlan_amrr module by hand for now Is this just dmesg output or did you do something here? ---------------------------------------------------------------------- InfinitelyManic · 2020-07-26 23:33 That's from dmesg... ---------------------------------------------------------------------- BlatantMediocrity · 2020-07-27 00:01 Yeah I’m not sure what to do because when I hit ‘ifconfig’ the device just doesn’t show up. ---------------------------------------------------------------------- InfinitelyManic · 2020-07-27 00:04 So, you've edited /etc/rc.conf and /etc/wpa_supplicant? When you, # dhclient wlan0 , do you see anything? ---------------------------------------------------------------------- BlatantMediocrity · 2020-07-27 00:19 I see “wlan0: not found” ---------------------------------------------------------------------- InfinitelyManic · 2020-07-27 00:21 Is there a man page for WLAN? Can you also post parts of your configs ... edit out passwords ---------------------------------------------------------------------- BlatantMediocrity · 2020-07-27 00:47 /boot/loader.conf: if_rtwn_usb_load=1 /etc/rc.conf clear_tmp_enable=“YES” hostname=“qwerty” ifconfig_bge0=“DHCP” \# Wireless Config wlans_rtwn0=“wlan0” ifconfig_wlan0=“WPA SYNCDHCP” \# Set dumpdev to “AUTO” to enable crash dumps, “NO” to disable dumpdev=“NO /etc/wpa_supplicant.conf network={ ssid=“\*” psk=“\*” }