LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-09-2006, 02:59 PM   #1
pjo
Member
 
Registered: Jan 2006
Posts: 68

Rep: Reputation: 15
wpa slackware 10.1 Dell Inspiron 1150


Trying to setup wpa on an DELL Inspiron 1150
Kernel 2.4, eth1 as explained by acar irfan geocities,/acarirfan/ inspiron-1150.html
Got ndiswrapper 1.7, without encryption it all works (eth1)
Got wpa_supplicant (the last one, 0.4.7), but alas, it goes bananas. It goes on and on and on about associating but never reaches a connection
I don't understand a few things, all help appreciated:
- why the "No such device" in the beginning? Why does it stop complaing after 4 "No such devices"?
- it finds apparently 2 APs, however iwlist eth1 scan only sees 1
- what is happening? what can I try next?
I am still in the manual phase, still got to figure out how to start it automatically, I tried some interesting scripts from Eric Hameleers at sox. homeip. net /slackware/rc_scripts, but no avail (I had to revert, they wouldn't get the unencrypted connection up, but I may have messed too much with hem ;-0 )

A clue, anybody?

Regards,

Pjo


The log:>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Initializing interface 'eth1' 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'
Line: 2 - start of a new network block
ssid - hexdump_ascii(len=8):
50 6f 65 7a 65 6e 6f 6b Poezenok
PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]
key_mgmt: 0x2
proto: 0x1
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
id=0 ssid='Poezenok'
Initializing interface (2) 'eth1'
ioctl[SIOCSIWPMKSA]: No such device
SIOCGIWRANGE: too old (short) data - assuming WPA is not supported
Own MAC address: 00:0b:7d:0a:8c:7b
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: No such device
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: No such device
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: No such device
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: No such device
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
Setting scan request: 0 sec 100000 usec
Added interface eth1
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
Wireless event: cmd=0x8b2a len=12
Wireless event: cmd=0x8b2a len=12
Wireless event: cmd=0x8b2a len=12
Wireless event: cmd=0x8b2a len=12
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 553 bytes of scan results (2 BSSes)
Scan results: 2
Selecting BSS from priority group 0
0: 00:04:e2:b4:ed:44 ssid='Poezenok' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
selected based on WPA IE
Trying to associate with 00:04:e2:b4:ed:44 (SSID='Poezenok' freq=2437 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 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: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
State: SCANNING -> ASSOCIATING
Setting authentication timeout: 10 sec 0 usec
Authentication with 00:00:00:00:00:00 timed out.
Added BSSID 00:00:00:00:00:00 into blacklist
State: ASSOCIATING -> DISCONNECTED
No keys have been configured - skip key clearing
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 553 bytes of scan results (2 BSSes)
Scan results: 2
Selecting BSS from priority group 0
0: 00:04:e2:b4:ed:44 ssid='Poezenok' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
selected based on WPA IE
Trying to associate with 00:04:e2:b4:ed:44 (SSID='Poezenok' freq=2437 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 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: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
State: SCANNING -> ASSOCIATING
Setting authentication timeout: 10 sec 0 usec
Authentication with 00:00:00:00:00:00 timed out.
BSSID 00:00:00:00:00:00 blacklist count incremented to 2
State: ASSOCIATING -> DISCONNECTED
No keys have been configured - skip key clearing
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 553 bytes of scan results (2 BSSes)
Scan results: 2
Selecting BSS from priority group 0
0: 00:04:e2:b4:ed:44 ssid='Poezenok' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
selected based on WPA IE
Trying to associate with 00:04:e2:b4:ed:44 (SSID='Poezenok' freq=2437 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 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: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
State: SCANNING -> ASSOCIATING
Setting authentication timeout: 10 sec 0 usec
CTRL-EVENT-TERMINATING - signal 2 received
Removing interface eth1
State: ASSOCIATING -> DISCONNECTED
No keys have been configured - skip key clearing
No keys have been configured - skip key clearing
Removed BSSID 00:00:00:00:00:00 from blacklist (clear)
Cancelling scan request
 
Old 01-09-2006, 03:36 PM   #2
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 732

Rep: Reputation: 172Reputation: 172
There is a lot more information you need to provide before someone can help.

1. If you turn off WPA on your router, does your ndiswrapper'd wifi chip connect and can you get an ip? In other words, does your wifi work without WPA?

2. Are you sure you compiled wpa_supplicant for ndiswrapper? Can you post your wpa_supplicant .config file?

3. Are you sure you have your /etc/wpa_supplicant.conf file set up correctly? Can you post it?

4. Do you have your essid broadcast disabled on your AP? If so, enable essid broadcast and try connecting with wpa_supplicant again.

5. Please post output of: ifconfig, iwconfig, and ndiswrapper -l

The answers to these questions should start narrowing down the problem.
 
Old 01-10-2006, 02:01 AM   #3
pjo
Member
 
Registered: Jan 2006
Posts: 68

Original Poster
Rep: Reputation: 15
the answers:

1. If you turn off WPA on your router, does your ndiswrapper'd wifi chip connect and can you get an ip? In other words, does your wifi work without WPA?

YES


2. Are you sure you compiled wpa_supplicant for ndiswrapper? Can you post your wpa_supplicant .config file?

YES:

.config:
CONFIG_DRIVER_NDISWRAPPER=y
CONFIG_CTRL_IFACE=y

3. Are you sure you have your /etc/wpa_supplicant.conf file set up correctly? Can you post it?


ctrl_interface=/var/run/wpa_supplicant
network={
ssid="Poezenok"
psk="8charsremoved"
#psk=output of wpa_passphrase removed
key_mgmt=WPA-PSK
proto=WPA
#pairwise= CCMP TKIP
}

4. Do you have your essid broadcast disabled on your AP? If so, enable essid broadcast and try connecting with wpa_supplicant again.

Is enabled

5. Please post output of: ifconfig, iwconfig, and ndiswrapper -l
[eth1 is suppose to be the wireless interface]
ifconfig:
eth0 Link encap:Ethernet HWaddr 00:11:43:5C:A3:8D
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:7

eth1 Link encap:Ethernet HWaddr 00:0B:7D:0A:8C:7B
BROADCAST NOTRAILERS 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:11 Memory:fcffc000-fcffe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 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:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
iwconfig eth1:
eth1 IEEE 802.11g ESSIDff/any Nickname:"poezenok2"
Mode:Managed Frequency:2.462GHz Access Point: 00:00:00:00:00:00
Bit Rate=54Mb/s Tx-Power:25 dBm
RTS thr=2347 B Fragment thr=2346 B
Encryption keyff
Power Managementff
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
ndiswrapper -l
Installed addriver :
bcmwl5 driver present, hardware present
 
Old 01-10-2006, 12:56 PM   #4
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 732

Rep: Reputation: 172Reputation: 172
I have ndiswrapper and wpa_supplicant working great on my dell 700m. Here are a couple of ideas for you to try.

In your wpa_supplicant .config file, I believe you need to include the wireless extensions option. You also need to build in EAP_PSK for WPA pre-shared key to work. Here is my .config file:

CONFIG_DRIVER_NDISWRAPPER=y
CONFIG_WIRELESS_EXTENSION=y
CONFIG_EAP_PSK=y

Then, in the /etc/wpa_supplicant.conf file, here is what I have:

ap_scan=2
network={
ssid="myessid"
scan_ssid=1
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
psk="myencryptionkey"
}

If you want to turn off essid broadcast, then you have to include both the pairwise and the group encryption method. This is noted in the wpa_supplicant's README. I do not have the ctrl_interfaces line.

Try those things and see if it works.

Last edited by chess; 01-10-2006 at 12:57 PM.
 
Old 01-11-2006, 03:23 AM   #5
pjo
Member
 
Registered: Jan 2006
Posts: 68

Original Poster
Rep: Reputation: 15
Hmm, I seem to have another problem since yesterday ... my wifi card seems dead?
I have dual boot windows - slack and all of a sudden it couldn't find a network ...even in windows ... even without any wep/wpa ...
However, ndiswrapper merily reports .. Hardware present ...

My AP still works, I have an old pcmcia that still finds the network, so it's not that

Did you ever hear that installing linux could kill a card?
Weird ...

Peter

Last edited by pjo; 01-11-2006 at 03:26 AM.
 
Old 01-13-2006, 03:07 AM   #6
pjo
Member
 
Registered: Jan 2006
Posts: 68

Original Poster
Rep: Reputation: 15
Ok, getting somewhere at last ...
turns out I must have slipped and toggled the radio switch, so no, linux did not kill the card, I tried to switch console and switched the radio off instead. Strange that it keeps that setting across reboots, but hey ...

Thanks to the EAP_PSK config, I now manage to associate and negotiate a key
But how do I now get an IP?

The default rc.inet1 & rc.wireless scripts of 10.1 don't handle WPA, so I copied the ones at http://sox.homeip.net/slackware/rc_scripts, and now, in the booting I see I get an IP, and even a good one (I mean, one that I expected), but then when I log on, it's gone. What I see is that I have 2 wpa_supplicant processess running, and iwlist eth1 scan returns 2 APs, one with the correct MAC and one with an all 00 MAC. Running 2 wpa_supplicants somehow destroys the IP, it seems

Trying to mimick the scripts manually doesn't get me an IP, I must be missing something ...

Nearly there, but still, ideas?

Regards,

Pjo
 
Old 01-13-2006, 11:52 AM   #7
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 732

Rep: Reputation: 172Reputation: 172
Glad to hear you're getting there. Here is what I use for my wifi script that I chmod +x and then run whenever I boot up:

Code:
#!/bin/sh
# Start/stop/restart wifi.

# Start wifi:
wifi_start() {
  if [ -x /usr/local/bin/wpa_supplicant ]; then
    echo "Starting wireless with WPA encryption"
modprobe ndiswrapper
ifconfig wlan0 up
iwconfig wlan0 essid myessid
    /usr/local/bin/wpa_supplicant -c /etc/wpa_supplicant.conf -D ndiswrapper -i wlan0 -Bw
dhcpcd wlan0
  fi
}

# Stop wifi:
wifi_stop() {
ifconfig wlan0 down
  killall wpa_supplicant
rm /etc/dhcpc/dhcpcd-wlan0.pid
}

# Restart wifi:
wifi_restart() {
  wifi_stop
  sleep 1
  wifi_start
}

case "$1" in
'start')
  wifi_start
  ;;
'stop')
  wifi_stop
  ;;
'restart')
  wifi_restart
  ;;
*)
  echo "usage $0 start|stop|restart"
esac
Obviously, you've got to make some changes like use eth1 instead of wlan0 etc. but this should hopefully get you started.
 
Old 01-17-2006, 02:18 AM   #8
pjo
Member
 
Registered: Jan 2006
Posts: 68

Original Poster
Rep: Reputation: 15
No success ... when I use that script, dhcpcd hangs ... (I even managed a few segmentation faults, but then, by now the config is in a sorry state)
I think I have to give up on slackware 10.1, after 2-3 weeks of hassle I think I found out I can't.
The root of the problem seems to be that somewhere in the init scripts, between hotplug, rc.M and rc.init1 I either have to disable too much or rc.init1 runs up to 3 times. As far as I can tell, in the places that I found, it has all the provisions to not execute rc.inet1 if the interface is already up, but it still does so 3 times. I'm not knowledgeable enough about those init scripts to find why. The fact of the matter is that once you call wpa_supplicant a second time (let alone 3 times) with the same interface, it becomes unreachable.
So tonight I'll try 10.2, I understand that there the scripts may be coherent enough to cater for wpa_supplicant ... and if that doesn't work, I really wouldn't know.

Regards,

Pjo
 
Old 01-17-2006, 09:08 AM   #9
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 732

Rep: Reputation: 172Reputation: 172
Something has definitely gotten messed up somewhere in your configs or something. wpa_supplicant has worked perfectly for me out of the box on both 10.1 and 10.2. I didn't mess with any of the rc.init or rc.inetd scripts at all.

Although my laptop is different than yours, maybe the info I wrote up here might help:

http://www.chessgriffin.com/projects...e-on-dell-700m
 
Old 01-17-2006, 09:51 AM   #10
pjo
Member
 
Registered: Jan 2006
Posts: 68

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Jackson1995
Something has definitely gotten messed up somewhere in your configs or something. wpa_supplicant has worked perfectly for me out of the box on both 10.1 and 10.2. I didn't mess with any of the rc.init or rc.inetd scripts at all.

Although my laptop is different than yours, maybe the info I wrote up here might help:

http://www.chessgriffin.com/projects...e-on-dell-700m
Ah, that's you ! I must admit I was a bit jealous at how easy you make it sound. I still had a number of options to test before writing up my experience, I start again tonight. I had some other hassles, but this wireless thing stopped me right there (wifi without wpa works flawlessly, but I don't want that)
Next steps to be done:
- sound
- screen resolution
- kernel tuning
- printing to a usb printer on the wifi router
- ...

Regards,

Pjo
 
Old 01-17-2006, 02:55 PM   #11
pjo
Member
 
Registered: Jan 2006
Posts: 68

Original Poster
Rep: Reputation: 15
IT WORKS ..... well, sort of. I installed 10.2 and edited rc.inet1.conf to make wlan0 subject to dhcp etc and it doesn't work on boot, I get 2 instances of wpa_supplicant running. However, if I then use the scrip to stop the interface (twice) and the start it (once), it works. This was posted from my KDE desktop ....

Regards,

Pjo
 
Old 01-17-2006, 04:47 PM   #12
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 732

Rep: Reputation: 172Reputation: 172
If you are using the slackware scripts then I would not use my script. I dont' have mine start on boot -- it's just a script that I call whenever I want to bring up my wifi.
 
Old 01-18-2006, 03:45 AM   #13
pjo
Member
 
Registered: Jan 2006
Posts: 68

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Jackson1995
If you are using the slackware scripts then I would not use my script. I dont' have mine start on boot -- it's just a script that I call whenever I want to bring up my wifi.
Your script works as well (rc.inet1 when started in a pristine state does the same thing if somewhat more complicated ), but indeed, I'd like to have it start on boot ... investigations continue.

Meanwhile, sound is working as well, USB is perfect, printing is an issue still (not sure if it can work, I have an usb printer on my wifi router)

Regards,

Pjo
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installation Problems, RH 6.2 on Dell Inspiron 1150 rdiemand Linux - Laptop and Netbook 1 07-22-2005 05:07 PM
Dell Inspiron 1150 Framebuffer Trouble Falados Linux - Hardware 8 07-03-2005 06:09 PM
Framebuffer with intelfb (Dell Inspiron 1150) Anders1 Linux - Laptop and Netbook 6 03-17-2005 03:30 PM
Dell Inspiron 1150, display card problem ywang Linux - Laptop and Netbook 2 11-04-2004 11:16 PM
FC 1 on a Dell Inspiron 1150 *problems* igo_mexico Fedora 5 09-07-2004 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:55 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration