i have a usb wifi, and i'm using the newest image (published at 9-18),
the type of chip of my usb wifi is rtl8192
and when i type:
iwconfig
It seems that the driver is working, and list wlan0 .........
but how to config it to connect the net?
the command: sudo iwconfig wlan0 essid *** key ***
it doesn't work!
when i use this usb wifi in Ubuntu, it can be configed by using GUI, and i just have to click the mouse to choose a wlan, and type the passward, the net can be connected automatically.
So this device is OK!
i just don't know how to config it, can anybody tell me
Re: How to config USB wifi
Have you tried the new GUI tool? There's a link to it on the desktop if you run startx.
Re: How to config USB wifi
No, I did'nt use the GUI tool of raspbian, actually, I just want to config it with command line. But the guide in the web seems can not work. Did anyone config the wifi of raspbi successfully?
MrBunsy wrote:Have you tried the new GUI tool? There's a link to it on the desktop if you run startx.
-
- Posts: 16
- Joined: Thu Sep 27, 2012 12:23 pm
Re: How to config USB wifi
Hi,
iwconfig works only with wep encryption.
If you use WPA/WPA2 then iwconfig will not work.
My /etc/network/interfaces looks just like this:
auto wlan0
iface wlan0 inet dhcp
wpa-ssid "secret-wiki-net"
wpa-psk "verysecret-wpa-psk"
I can shut wlan0 up/down with:
ifup wlan0
ifdown wlan0
I can look with:
root@raspberrypi:/etc/default# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:"secret-wifi-net"
Mode:Managed Frequency:2.472 GHz Access Point: 74:EA:3A:FD:07:6F
Bit Rate=52 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
Link Quality=35/70 Signal level=-75 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:9 Missed beacon:0
And get a dynamic ip with:
dhclient wlan0
Hope that helps.
Olaf
iwconfig works only with wep encryption.
If you use WPA/WPA2 then iwconfig will not work.
My /etc/network/interfaces looks just like this:
auto wlan0
iface wlan0 inet dhcp
wpa-ssid "secret-wiki-net"
wpa-psk "verysecret-wpa-psk"
I can shut wlan0 up/down with:
ifup wlan0
ifdown wlan0
I can look with:
root@raspberrypi:/etc/default# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:"secret-wifi-net"
Mode:Managed Frequency:2.472 GHz Access Point: 74:EA:3A:FD:07:6F
Bit Rate=52 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
Link Quality=35/70 Signal level=-75 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:9 Missed beacon:0
And get a dynamic ip with:
dhclient wlan0
Hope that helps.
Olaf
Re: How to config USB wifi
Thanks a lot!
Olaf_Ramge wrote:Hi,
iwconfig works only with wep encryption.
If you use WPA/WPA2 then iwconfig will not work.
My /etc/network/interfaces looks just like this:
auto wlan0
iface wlan0 inet dhcp
wpa-ssid "secret-wiki-net"
wpa-psk "verysecret-wpa-psk"
I can shut wlan0 up/down with:
ifup wlan0
ifdown wlan0
I can look with:
root@raspberrypi:/etc/default# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:"secret-wifi-net"
Mode:Managed Frequency:2.472 GHz Access Point: 74:EA:3A:FD:07:6F
Bit Rate=52 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
Link Quality=35/70 Signal level=-75 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:9 Missed beacon:0
And get a dynamic ip with:
dhclient wlan0
Hope that helps.
Olaf