Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
another wpa_supplicant problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
noodlepenguin
n00b
n00b


Joined: 16 Dec 2005
Posts: 25

PostPosted: Tue Jan 03, 2006 7:02 am    Post subject: another wpa_supplicant problem Reply with quote

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
View user's profile Send private message
Aszrael
Tux's lil' helper
Tux's lil' helper


Joined: 15 Feb 2005
Posts: 101
Location: Hannover/Germany

PostPosted: Tue Jan 03, 2006 11:56 am    Post subject: Reply with quote

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 :wink: ]

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
View user's profile Send private message
noodlepenguin
n00b
n00b


Joined: 16 Dec 2005
Posts: 25

PostPosted: Wed Jan 04, 2006 8:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
jamapii
l33t
l33t


Joined: 16 Sep 2004
Posts: 637

PostPosted: Wed Jan 04, 2006 11:23 pm    Post subject: Reply with quote

An alternative is to try

modules=( "iwconfig" )
key_ap=( " insert it here " )

this avoids wpa_supplicant.
Back to top
View user's profile Send private message
noodlepenguin
n00b
n00b


Joined: 16 Dec 2005
Posts: 25

PostPosted: Thu Jan 05, 2006 3:11 am    Post subject: Reply with quote

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
View user's profile Send private message
noodlepenguin
n00b
n00b


Joined: 16 Dec 2005
Posts: 25

PostPosted: Thu Jan 05, 2006 7:26 pm    Post subject: Reply with quote

So is there a way to get wpa_supplicant working well with wep? I know someone out there knows the answer
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6837
Location: Blighty

PostPosted: Thu Jan 05, 2006 9:01 pm    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=116714
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
noodlepenguin
n00b
n00b


Joined: 16 Dec 2005
Posts: 25

PostPosted: Thu Jan 05, 2006 9:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6837
Location: Blighty

PostPosted: Thu Jan 05, 2006 9:38 pm    Post subject: Reply with quote

Yes

0.4.5 works with WEP though - or at least it does with my madwifi
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Aszrael
Tux's lil' helper
Tux's lil' helper


Joined: 15 Feb 2005
Posts: 101
Location: Hannover/Germany

PostPosted: Fri Jan 06, 2006 7:47 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum