View previous topic :: View next topic |
Author |
Message |
noodlepenguin n00b

Joined: 16 Dec 2005 Posts: 25
|
Posted: Tue Jan 03, 2006 7:02 am Post subject: another wpa_supplicant problem |
|
|
I cannot connect to my WEP encrypted access point.
This is the output of /etc/init.d/net.wlan0 start
Quote: |
ferrari3200 ~ # /etc/init.d/net.wlan0 start
* Starting wlan0
* Starting wpa_supplicant on wlan0 ... [ ok ]
* wlan0 connected to "morrell" at 00:06:25:D9:50:AB
* Bringing up wlan0
* dhcp
* Running dhcpcd ... [ !! ]
|
here is my /etc/wpa_supplicant.conf file:
Code: |
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
ap_scan=1
network={
ssid="morrell"
key_mgmt=NONE
wep_key0=<hex wep key>
wep_tx_keyidx=0
}
|
I appreciate the help |
|
Back to top |
|
 |
Aszrael Tux's lil' helper


Joined: 15 Feb 2005 Posts: 101 Location: Hannover/Germany
|
Posted: Tue Jan 03, 2006 11:56 am Post subject: |
|
|
wpa_supplicant can be a real PITA - even more in combination with WEP and dhcp
Are you sure you need it? If you only want to connect to a WEP-AP stick with
http://gentoo-wiki.com/HOWTO_Wireless_Configuration_and_Startup#Configuration_using_iwconfig
Why risk something by introducing unnecessary programms [KISS=keep it simple stupid ]
Anyway, for more help I need more info:
What version of baselayout, dhcp, wpa_supplicant and which card are you using?
Please post your /etc/conf.d/net and output of
EDIT:
Code: | ifconfig wlan0 up
wpa_supplicant -D<your-driver> -iwlan0 -c/etc/wpa_supplicant.conf -dd |
Have you tried to asign a staticIP? Sometimes wpa_supplicant or dhcp times out to fast |
|
Back to top |
|
 |
noodlepenguin n00b

Joined: 16 Dec 2005 Posts: 25
|
Posted: Wed Jan 04, 2006 8:32 pm Post subject: |
|
|
version information:
baselayout 1.11.13-r1
dhcpcd 2.0.0
wpa_supplicant 0.4.7
/etc/conf.d/net:
Quote: |
config_eth0=("dhcp")
dhcpcd_eth0="-t 10"
modules=("wpa_supplicant")
wpa_supplicant_wlan0="-Dndiswrapper"
wpa_timeout_wlan0=30
config_wlan0=("dhcp")
dhcpcd_wlan0="-t 30"
|
"ifconfig wlan0 up" does nothing
wpa_supplicant -Dndiswrapper -iwlan0 -c/etc/wpa_supplicant.conf -dd:
Quote: |
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'ndiswrapper' ctrl_interface 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group=10 (from group name 'wheel')
ap_scan=1
Line: 5 - start of a new network block
ssid - hexdump_ascii(len=7):
6d 6f 72 72 65 6c 6c morrell
key_mgmt: 0x4
wep_key0 - hexdump(len=5): [REMOVED]
wep_tx_keyidx=0 (0x0)
Priority group 0
id=0 ssid='morrell'
Initializing interface (2) 'wlan0'
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
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCGIWRANGE: WE(compiled)=19 WE(source)=18 enc_capa=0xd
capabilities: key_mgmt 0x5 enc 0xf
Own MAC address: 00:0b:6b:4a:94:cd
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
Setting scan request: 0 sec 100000 usec
Added interface wlan0
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 224 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
0: 00:06:25:d9:50:ab ssid='morrell' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
selected non-WPA AP 00:06:25:d9:50:ab ssid='morrell'
Trying to associate with 00:06:25:d9:50:ab (SSID='morrell' freq=2437 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: clearing own WPA/RSN IE
No keys have been configured - skip key clearing
State: SCANNING -> ASSOCIATING
Setting authentication timeout: 10 sec 0 usec
|
And, no I have not tried to assign a static ip, but ill see if that works
EDIT
I tried to assign a static IP and it said that it succeeded, however i was not even able to ping my router, so it did not succeed
I assigned a static ip by changing "config_wlan0=("dhcp") to "config_wlan0=("192.168.1.107") |
|
Back to top |
|
 |
jamapii l33t


Joined: 16 Sep 2004 Posts: 637
|
Posted: Wed Jan 04, 2006 11:23 pm Post subject: |
|
|
An alternative is to try
modules=( "iwconfig" )
key_ap=( " insert it here " )
this avoids wpa_supplicant. |
|
Back to top |
|
 |
noodlepenguin n00b

Joined: 16 Dec 2005 Posts: 25
|
Posted: Thu Jan 05, 2006 3:11 am Post subject: |
|
|
yeah, I know I could use something besides wpa_supplicant, but I want to have the option of accessing wpa encrypted APs if I so choose. And, I would rather not have to install two separate software packages simply to connect to the internet wirelessly. That seems kindof stupid |
|
Back to top |
|
 |
noodlepenguin n00b

Joined: 16 Dec 2005 Posts: 25
|
Posted: Thu Jan 05, 2006 7:26 pm Post subject: |
|
|
So is there a way to get wpa_supplicant working well with wep? I know someone out there knows the answer |
|
Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6837 Location: Blighty
|
|
Back to top |
|
 |
noodlepenguin n00b

Joined: 16 Dec 2005 Posts: 25
|
Posted: Thu Jan 05, 2006 9:35 pm Post subject: |
|
|
ok, so i read through the bug report you sent me to, but there is no solution yet. It seems like they are still trying to work through it also. So are you trying to tell me that there is no solution to my problem yet and that I just need to bite the bullet and go w/ iwconfig??? |
|
Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6837 Location: Blighty
|
|
Back to top |
|
 |
Aszrael Tux's lil' helper


Joined: 15 Feb 2005 Posts: 101 Location: Hannover/Germany
|
Posted: Fri Jan 06, 2006 7:47 am Post subject: |
|
|
UberLord wrote: | 0.4.5 works with WEP though - or at least it does with my madwifi |
Confirmed with D-Link DWL-650 using madwifi. Works like a charme.
Broadcom AirForce One using ndiswrapper failed miserably!
Code: | Test-Setup:
WEP-128bit
HEX-pw
Installed packages:
sys-apps/baselayout-1.11.13-r1
net-wireless/wpa_supplicant-0.4.5
net-wireless/ndiswrapper-1.5 (~x86)
EDIT:
also no luck using
net-wireless/ndiswrapper-1.2
net-wireless/ndiswrapper-1.7 (~x86) |
|
|
Back to top |
|
 |
|