How to configure RTL8188CUS usb wifi
?. when I connect in my lap ideapad (LENOVO) , it is not recognised ...? what are the steps I need to follow?......Thanks for your valuable advice
Start with these commands here to identify your Wifi Hardware Vendor/Product Ids.
http://bsd-hardware.info/ hw-probe -all
This might probe from the website??
u
name -a
or
uname -k
What version of FreeBSD are you running?
Please provide more info by
https://www.freshports.org/sysutils/hw-probe for diagnostics.
My valuable advice was to try the commands I listed in my Post above and to Follow Alexanders advice to read the FreeBSD Handbook Section
31.3 Wireless Networking. When I started there was not available a hand holding how to start from the beginning. I tried to write that in the
forums.GhostBSD.org post I refered to up above I read a lot of web articles, forum posts, FreeBSD handbook to find out the details to manually issue commands to make Wi-Fi networking operational. It was hard to start, because I did not know what commands to issue in what order to find the information to edit into the files. It broke down to editing 3 files, issue a few command lines for me to be able to ping a network like
ping -c 3 192.168.1.1
or
ping -c 3 8.8.4.4
or
ping -c 3 he.net
. After that setup, networking just worked for me. Networking automatically connected the next time I booted up. I have placed the contents of those 3 files below:
/boot/loader.conf,
/etc/rc.conf,
/etc/wpa_supplicant.conf
Note that FreeBSD 12.0 the USB and PCI versions of the RealTek driver were incorporated in to one driver Kernel module
rtwn.ko if_rtwn_usb.ko if_rtwn_pci.ko. Kernel modules that can be loaded with command
kldload rtwn if_rtwn_usb
.
kldstat
will show which kernel Modules were loaded into memory.
Can we see your USB Wi-Fi dongle connected and identified in the following 2 commands.
Code:
usbconfig list
usbconfig dump_device_desc
What are the outputs of the above two commands? Do you see the Wifi chip set IDs there, reported back to you?. No, pull out the USB dongle and reinsert to make sure it is seated good.
Check the output from dmesg looking for wireless information.
Code:
dmesg | less
dmesg | grep wlan
dmesg | grep rtl
sysctl net.wlan.devices
cat /var/log/messages
First verify that the USB wifi dongle is securely inserted into the USB socket.
I
strongly recommend reading the webpages linked up above and report back what messages you receive. You may say it "FAILS", but I am not there to see the messages to understand what exactly is failing.
Edimax EW-7811un Wifi setup for GhostBSD / FreeBSD This is helpful reading to understand manual commands to test and diagnose a wifi connection.
I copied and placed the contents of those 3 files below, so that you have a template to work from
/boot/loader.con
Code:
legal.realtek.license_ack=1
if_rtwn_usb_load="YES" #USB version Edimax 7811un [color=#000080]RTL8192CU[/color] installation lines
if_rtwn_load="YES"
rtwn-rtl8192cfwU_load="YES"
/etc/rc.conf
Code:
wlans_rtwn0="wlan0"
ifconfig_wlan0=" WPA SYNCDHCP"
/etc/wpa_supplicant.conf
Code:
network={
#: my NetGear box
ssid="NETGEAR59"
psk="my_passkey_892"
key_mgmt=WPA-PSK
}
network={
#: simple Open Access point
ssid="innflux"
key_mgmt=NONE
}
Code:
# kill the running dhclient process
killall dhclient
# Debug wifi with information. Use the following line for testing with the Debug and wifi Password debug printout options
wpa_supplicant -d -K -i wlan0 -c /etc/wpa_supplicant.conf
dhclient wlan0
# use the No Debug version to start wifi
killall dhclient
# 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
The newer version of the Edimax EW-7811un Version2 is a RTL8188EU RealTek device USB Vendor/Product IDs 7392:B811 The Edimax EW-7811un Version1 is a RTL8192CU or RTL8188CU RealTek device USB Vendor/Product IDs 7392:7811
So you might have to edit the RTWN FreeBSD driver to have the ability to recognize the newer version Edimax EW-7811unV2 device. Look at the file
rtwn_usb_attach.h for the details.