LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 10-14-2011, 04:23 AM   #1
azenz
LQ Newbie
 
Registered: Oct 2011
Posts: 4

Rep: Reputation: Disabled
WPA2 wireless won't connect with Netgear USB Wireless stick


I installed my external Netgear WG111v2 USB wireless card to my Desktop running Ubuntu 10.04 64 bit using these commands:

sudo ndiswrapper -i netwg111.inf
[ndiswrapper -l outputs: netwg111 : driver installed]
sudo modprobe ndiswrapper

iwconfig output:

wlan0 IEEE 802.11bg ESSID off/any
Mode:Managed Frequency:2.437 GHz Access Point: Not-Associated
Tx-Power=20 dBm
Retry long limit:7 RTS thrff Fragment thrff
Power Management: off

Then I tried to connect to my WPA2 home network using the WiCD network manager. The manager finds my SSID and tries to connect, but eventually fails stating an authentication error. But I checked the password multiple times, and our Windows 7 laptop can connect using the same password. (WiCD connects using cable without problems).

Then I tried wpa_supplicant, config file as follows:

network={
ssid="FRITZ!Box Fon WLAN xxxx"
scan_ssid=1
key_mgmt=WPA-PSK
psk="xxxxxxxxxxxxxxxx" (16 numbers)
}

(I assume the password won't need conversion into HEX, in any case I tried it but it complained that it exceeded 63 characters.)

Then I ran: sudo wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -d


OUTPUT is:

Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
Priority group 0
id=0 ssid='FRITZ!Box Fon WLAN 7112'
Initializing interface (2) 'wlan0'
WEXT: cfg80211-based driver detected
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf flags 0x0
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:1e:2a:ec:6b:65
wpa_driver_wext_set_wpa
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wpa_driver_wext_set_drop_unencrypted
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 100000 usec
WPS: UUID based on MAC address - hexdump(len=16): 06 55 e1 6f 7d 7b 58 46 a5 47 89 f4 1b d3 0d 45
WPS: Build Beacon and Probe Response IEs
WPS: * Version
WPS: * Wi-Fi Protected Setup State (0)
WPS: * Version
WPS: * Wi-Fi Protected Setup State (0)
WPS: * Response Type (2)
WPS: * UUID-E
WPS: * Manufacturer
WPS: * Model Name
WPS: * Model Number
WPS: * Serial Number
WPS: * Primary Device Type
WPS: * Device Name
WPS: * Config Methods (0)
WPS: * RF Bands (3)
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
Added interface wlan0
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b06 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b1a len=16
State: DISCONNECTED -> SCANNING
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=23):
46 52 49 54 5a 21 42 6f 78 20 46 6f 6e 20 57 4c FRITZ!Box Fon WL
41 4e 20 37 31 31 32 AN 7112
Trying to get current scan results first without requesting a new scan to speed up initial association
Received 1173 bytes of scan results (2 BSSes)
New scan results available
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: bc:05:43:33:7a:96 ssid='FRITZ!Box Fon WLAN 7112' wpa_ie_len=24 rsn_ie_len=20 caps=0x11
selected based on RSN IE
selected WPA AP bc:05:43:33:7a:96 ssid='FRITZ!Box Fon WLAN 7112'
Trying to associate with bc:05:43:33:7a:96 (SSID='FRITZ!Box Fon WLAN 7112' freq=2437 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
RSN: using IEEE 802.11i/D9.0
WPA: Selected cipher suites: group 8 pairwise 16 key_mgmt 2 proto 2
WPA: set AP WPA IE - hexdump(len=26): dd 18 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 00 00
WPA: set AP RSN IE - hexdump(len=22): 30 14 01 00 00 0f ac 02 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
WPA: using GTK TKIP
WPA: using PTK CCMP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=22): 30 14 01 00 00 0f ac 02 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
wpa_driver_wext_set_psk
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RSN: Ignored PMKID candidate without preauth flag
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b06 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b1a len=16
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b04 len=16
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b1a len=39
EAPOL: disable timer tick
Authentication with bc:05:43:33:7a:96 timed out.
Added BSSID bc:05:43:33:7a:96 into blacklist
No keys have been configured - skip key clearing
State: ASSOCIATING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING


And that goes on and on.

Your HELP would be greatly appreciated. I had previously been able to use this Netgear with an older Ubuntu version on a different wireless system.
 
Old 10-16-2011, 04:41 PM   #2
rabbit2345
Member
 
Registered: Apr 2007
Location: SC
Distribution: Kubuntu 20.04 LTS
Posts: 378

Rep: Reputation: 41
Hi,

Can you check lsusb and see if RTL8187 shows up? If so, then there is a native linux driver called rtl818x. Ndiswrapper should only be used as a dead last resort. It looks like you're using Ubuntu, so the driver for your card is probably already included. Try uninstalling ndiswrapper and wicd (unless you want it) and a reboot. Also, if you choose to remove wicd, then install networkmanager. If you still have trouble, then please post these commands:

lsmod
iwconfig
ifconfig


good luck,
rabbit2345
 
Old 10-19-2011, 05:09 AM   #3
Poseidon
LQ Newbie
 
Registered: May 2011
Posts: 7

Rep: Reputation: 6
Hi azenz

I have just been through the painful discovery of getting my wireless working (wpa2/aes), and I made a few notes on the last post here (looks like I put it in the wrong forum):

http://www.linuxquestions.org/questi...bility-907358/

maybe it will help .... if you can avoid the ndis.. the do so..

Cheers!
 
Old 10-29-2011, 11:23 AM   #4
azenz
LQ Newbie
 
Registered: Oct 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi rabbit2345,

Sorry for the delay, I was on holiday.

So I did that, since the RTL... showed up as you said.

Now, the network manager tries to connect for a while and then says that the password is bad (it prompts for the password again and again and again). But I can connect from my laptop using the same settings and password.

lsmod:

Module Size Used by
xt_multiport 1949 1
vmnet 47470 10
vmblock 12995 1
vsock 43307 0
vmci 60422 1 vsock
vmmon 80087 0
snd_hda_codec_nvhdmi 15451 1
snd_hda_codec_realtek 300109 1
nfsd 306088 2
exportfs 4226 1 nfsd
nfs 322167 0
lockd 75956 2 nfsd,nfs
fscache 50226 1 nfs
nfs_acl 2701 2 nfsd,nfs
auth_rpcgss 44898 2 nfsd,nfs
sunrpc 229477 6 nfsd,nfs,lockd,nfs_acl,auth_rpcgss
nvidia 10710753 28
iptable_nat 4593 0
nf_nat 20067 1 iptable_nat
nf_conntrack_ipv4 13143 3 iptable_nat,nf_nat
nf_conntrack 75238 3 iptable_nat,nf_nat,nf_conntrack_ipv4
nf_defrag_ipv4 1569 1 nf_conntrack_ipv4
iptable_mangle 1823 0
iptable_filter 1778 1
ip_tables 19171 3 iptable_nat,iptable_mangle,iptable_filter
x_tables 24423 5 xt_multiport,iptable_nat,iptable_mangle,iptable_filter,ip_tables
arc4 1497 2
snd_hda_intel 26147 2
snd_hda_codec 100919 3 snd_hda_codec_nvhdmi,snd_hda_codec_realtek,snd_hda_intel
rtl8187 53994 0
snd_hwdep 6660 1 snd_hda_codec
snd_pcm 89104 2 snd_hda_intel,snd_hda_codec
snd_seq_midi 5932 0
mac80211 267099 1 rtl8187
snd_rawmidi 22207 1 snd_seq_midi
snd_seq_midi_event 7291 1 snd_seq_midi
snd_seq 57512 2 snd_seq_midi,snd_seq_midi_event
led_class 3393 1 rtl8187
hwmon_vid 3154 0
snd_timer 23850 2 snd_pcm,snd_seq
snd_seq_device 6912 3 snd_seq_midi,snd_rawmidi,snd_seq
cfg80211 170581 2 rtl8187,mac80211
coretemp 6442 0
snd 64277 13 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,sn d_seq_device
soundcore 1240 1 snd
snd_page_alloc 8588 2 snd_hda_intel,snd_pcm
psmouse 62080 0
ppdev 6804 0
lp 10201 0
eeprom_93cx6 1789 1 rtl8187
parport_pc 30086 1
joydev 11395 0
serio_raw 4910 0
parport 37032 3 ppdev,lp,parport_pc
sha256_generic 10351 2
cryptd 8140 0
aes_x86_64 7936 2
aes_generic 27631 1 aes_x86_64
dm_crypt 13381 1
hid_logitech 10639 0
ff_memless 5485 1 hid_logitech
uvesafb 25058 1
usbhid 42030 1 hid_logitech
hid 84710 2 hid_logitech,usbhid
firewire_ohci 24839 0
firewire_core 54327 1 firewire_ohci
floppy 65299 0
crc_itu_t 1739 1 firewire_core
pata_jmicron 2771 0
sky2 53371 0
intel_agp 32334 0

iwconfig:
lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11bg ESSID:"FRITZ!Box Fon WLAN 7112"
Mode:Managed Frequency:2.437 GHz Access Point: Not-Associated
Tx-Power=20 dBm
Retry long limit:7 RTS thrff Fragment thrff
Power Managementff

vmnet1 no wireless extensions.

vmnet8 no wireless extensions.


ifconfig:

eth0 Link encap:Ethernet HWaddr 00:30:1b:bd:76:c8
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:18

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4542 errors:0 dropped:0 overruns:0 frame:0
TX packets:4542 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:138261 (138.2 KB) TX bytes:138261 (138.2 KB)

vmnet1 Link encap:Ethernet HWaddr 00:50:56:c0:00:01
inet addr:172.16.213.1 Bcast:172.16.213.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

vmnet8 Link encap:Ethernet HWaddr 00:50:56:c0:00:08
inet addr:192.168.22.1 Bcast:192.168.22.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr 00:1e:2a:ec:6b:65
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Netgear USB wireless see's the network but won't connect on Ubuntu 10.10... bbyers89 Linux - Wireless Networking 0 07-29-2011 01:28 AM
When wireless won't connect thru USB RealGomer Linux - Networking 0 08-21-2010 01:24 PM
Netgear WG311T Wireless Card won't connect to Internet Mike101 Linux - Wireless Networking 0 11-18-2006 12:36 PM
Netgear router with AMBIT Microsystems wireless card won't connect with SUSE10 LordFett Linux - Wireless Networking 2 02-26-2006 09:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 08:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration