From a terminal window command line, execute the following 3 lines
Code: Select all
sysrc kld_list+="if_run runfw"
Code: Select all
ifconfig wlan0 create wlandev ral0
Code: Select all
service networking restart
Code: Select all
ifconfig wlan0
Check what WLAN Wifi device is in your computer system with this sysctl command
Code: Select all
sysctl net.wlan.devices
list the usb devices in your computer. Look for the network device in the list. Ralink in this case.
Code: Select all
usbconfig list
ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen0.2: <vendor 0x05e3 USB2.0 Hub> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA)
ugen0.3: <Ralink 802.11 n WLAN> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (450mA)
ugen0.4: <vendor 0x1bcf USB Optical Mouse> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (98mA)
Code: Select all
usbconfig dump_device_desc
ugen0.3: <Ralink 802.11 n WLAN> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (450mA)
bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0200
bDeviceClass = 0x0000 <Probed by interface class>
bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0000
bMaxPacketSize0 = 0x0040
idVendor = 0x148f
idProduct = 0x3070
bcdDevice = 0x0101
iManufacturer = 0x0001 <Ralink>
iProduct = 0x0002 <802.11 n WLAN>
iSerialNumber = 0x0003 <1.0>
bNumConfigurations = 0x0001
ugen0.4: <vendor 0x1bcf USB Optical Mouse> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (98mA)
bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0200
bDeviceClass = 0x0000 <Probed by interface class>
bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0000
bMaxPacketSize0 = 0x0008
idVendor = 0x1bcf
idProduct = 0x0007
bcdDevice = 0x0014
iManufacturer = 0x0000 <no string>
iProduct = 0x0002 <USB Optical Mouse>
iSerialNumber = 0x0000 <no string>
bNumConfigurations = 0x0001
Manual Steps
4. Alternatively, to load the firmware images as a module at boot time,
place the following 2 lines in /boot/loader.conf(5):
Code: Select all
if_run_load="YES"
runfw_load="YES"
Code: Select all
wlans_ral0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"
Code: Select all
network={
ssid="innflux"
key_mgmt=NONE
}
6. then reboot or issue command
Code: Select all
service network restart
Code: Select all
ifconfig wlan0 create wlandev ral0
https://www.freebsd.org/cgi/man.cgi?que ... &sektion=4 RUNFW firmware for RT2780 & RT3071 runfw -- Firmware Module for Ralink driver
Alternatively, to load the firmware images as a module at boot time,
place the following 2 lines in /boot/loader.conf(5):
Code: Select all
runfw_load="YES"
if_run_load="YES"
https://www.freebsd.org/cgi/man.cgi?que ... +and+Ports loader.conf(5)
https://www.freebsd.org/cgi/man.cgi?que ... +and+Ports run(4)
https://www.mediatek.com/products/broadbandWifi/rt2870 Apple and Windows Drivers
You can try making and editing wpa supplicant
cd /etc
touch wpa_supplicant.conf
ee wpa_supplicant.conf
Then put this in the file
Code: Select all
network={
ssid="your router SSID number"
psk="your router's password"
}
Then
ee /etc/rc.conf
And add these lines
Code: Select all
wlans_run0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"