[SOLVED] Trouble setting up wlan in Slackware 13.0
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm having some trouble setting up my wireless in a fresh install of Slackware 13.0. I've installed ndiswrapper from slackbuilds.org, but otherwise everything is stock. The PC is a Dell dimension 5150, and the wireless is a Dell Wireless 1450 Wireless USB Adapter.
Long story short: It says the link is not active, when (to me) it seems like it should be working. iwconfig commands don't seem to have any effect either.
After I installed ndiswrapper, I loaded my drivers as follows. (I happened to have the original CD that came with the wireless USB adapter):
Code:
load CD
cd to CD
ndiswrapper -i DELLNIC.inf
ndiswrapper -l
dellnic : driver installed
device (413C:8104) present (alternate driver: p54usb)
root@darkstar:/media/W7054 A00# /sbin/modprobe ndiswrapper
root@darkstar:/media/W7054 A00# ndiswrapper -m
adding "alias wlan0 ndiswrapper" to /etc/modprobe.d/ndiswrapper ...
root@darkstar:/media/W7054 A00#
root@darkstar:/etc/rc.d# ./rc.inet1 WLAN0_START
./rc.inet1: wlan0 information: 'Any ESSID'
Error for wireless request "Set Frequency" (8B04) :
SET failed on device wlan0 ; Invalid argument.
Polling for DHCP server on interface wlan0:
err, wlan0: timed out
err, wlan0: lease information file `/etc/dhcpc/dhcpcd-wlan0.info' does not exist
warn, wlan0: using IPV4LL address 169.254.235.167
OK, at this point I went back to the rc.inet1.conf file and removed that stray "i" before my ESSID, typed WLAN0_STOP and WLAN0_START, but nothing seemed to happen.
I reboot, and here is what I get in /var/log/messages:
Code:
Nov 25 21:02:39 darkstar logger: /etc/rc.d/rc.inet1: /sbin/ifconfig lo 127.0.0.1
Nov 25 21:02:39 darkstar logger: /etc/rc.d/rc.inet1: /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
Nov 25 21:02:40 darkstar logger: /etc/rc.d/rc.inet1: /sbin/modprobe wlan0
Nov 25 21:02:40 darkstar kernel: ndiswrapper version 1.55 loaded (smp=yes, preempt=no)
Nov 25 21:02:40 darkstar kernel: usb 1-7: reset high speed USB device using ehci_hcd and address 3
Nov 25 21:02:40 darkstar kernel: ndiswrapper: driver dellnic (Dell,09/26/2004, 3.01.12.0) loaded
Nov 25 21:02:42 darkstar kernel: wlan0: ethernet device 00:14:a5:48:47:ee using NDIS driver: dellnic, version: 0x3010c, NDIS v
ersion: 0x501, vendor: 'Dell Wireless 1450 Dual-band (802.11a/b/g) USB2.0 Adapter', 413C:8104.F.conf
Nov 25 21:02:42 darkstar kernel: wlan0: encryption modes supported: WEP; TKIP with WPA; AES/CCMP with WPA
Nov 25 21:02:42 darkstar kernel: usbcore: registered new interface driver ndiswrapper
Nov 25 21:02:45 darkstar logger: /etc/rc.d/rc.M: /sbin/iwconfig wlan0 mode Managed
Nov 25 21:02:45 darkstar logger: /etc/rc.d/rc.inet1: /sbin/iwconfig wlan0 mode Managed
Nov 25 21:02:45 darkstar logger: /etc/rc.d/rc.M: /sbin/iwconfig wlan0 nick darkstar
Nov 25 21:02:45 darkstar logger: /etc/rc.d/rc.inet1: /sbin/iwconfig wlan0 nick darkstar
Nov 25 21:02:45 darkstar logger: /etc/rc.d/rc.inet1: /sbin/iwconfig wlan0 channel auto
Nov 25 21:02:45 darkstar logger: /etc/rc.d/rc.inet1: /sbin/iwconfig wlan0 key ************
Nov 25 21:02:45 darkstar logger: /etc/rc.d/rc.M: /sbin/iwconfig wlan0 channel auto
Nov 25 21:02:45 darkstar logger: /etc/rc.d/rc.M: /sbin/iwconfig wlan0 key ************
Nov 25 21:02:45 darkstar logger: /etc/rc.d/rc.inet1: /sbin/iwconfig wlan0 key restricted
Nov 25 21:02:45 darkstar logger: /etc/rc.d/rc.M: /sbin/iwconfig wlan0 key restricted
Nov 25 21:02:45 darkstar logger: /etc/rc.d/rc.inet1: /sbin/iwconfig wlan0 rate 54M auto
Nov 25 21:02:45 darkstar logger: /etc/rc.d/rc.M: /sbin/iwconfig wlan0 rate 54M auto
Nov 25 21:02:45 darkstar logger: /etc/rc.d/rc.inet1: /sbin/iwconfig wlan0 essid "TL0L3"
Nov 25 21:02:45 darkstar logger: /etc/rc.d/rc.M: /sbin/iwconfig wlan0 essid "TL0L3"
Nov 25 21:02:45 darkstar logger: /etc/rc.d/rc.inet1: /sbin/iwconfig wlan0 essid "TL0L3"
Nov 25 21:02:45 darkstar logger: /etc/rc.d/rc.inet1: /sbin/dhcpcd -t 10 wlan0
Nov 25 21:02:45 darkstar logger: /etc/rc.d/rc.M: /sbin/iwconfig wlan0 essid "TL0L3"
Nov 25 21:02:45 darkstar dhcpcd[3413]: wlan0: dhcpcd 3.2.3 starting
Nov 25 21:02:45 darkstar dhcpcd[3413]: wlan0: hardware address = 00:14:a5:48:47:ee
Nov 25 21:02:45 darkstar dhcpcd[3413]: wlan0: DUID = 00:01:00:01:12:a0:44:82:00:14:a5:48:47:ee
Nov 25 21:02:45 darkstar dhcpcd[3413]: wlan0: broadcasting for a lease
Nov 25 21:02:45 darkstar logger: /etc/rc.d/rc.inet1: /sbin/dhcpcd -t 10 wlan0
Nov 25 21:02:45 darkstar dhcpcd[3419]: wlan0: exiting
Nov 25 21:02:45 darkstar kernel: NET: Registered protocol family 10
Nov 25 21:02:45 darkstar kernel: lo: Disabled Privacy Extensions
Nov 25 21:02:45 darkstar kernel: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Blech. Here is some more:
Code:
root@darkstar:~# iwconfig wlan0
wlan0 IEEE 802.11g ESSID:off/any Nickname:"darkstar"
Mode:Managed Frequency:2.462 GHz Access Point: Not-Associated
Bit Rate:2 Mb/s Tx-Power:21 dBm
RTS thr:2347 B Fragment thr:2346 B
Encryption key:****-****-** Security mode:restricted
Power Management:off
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
And when I type "iwlist wlan0 scanning", I get my AP in the list:
So, what gives? Does anybody have a clue as to why I can't get my wireless connection working? It does work for my Fedora 10 laptop, Windows Vista PC and Vista laptop, so I don't think it's an AP issue.
Thanks,
GL
Last edited by Gault LaRue; 11-27-2009 at 02:18 PM.
Reason: Oops - left WEP key in text...
Are you using wep or wpa on your AP??
WEP is a little easier to configure from the console, but WPA can be done with a little elbow grease.
If you're using X11, I'd try installing wicd from the /extra/wicd/ directory on the slack CD/DVD, it's a great little GUI tool for configuring wireless connections. Reboot the computer, startx and see if wicd (appears down by the clock and the battery monitor in KDE) shows your AP as available. If it does, you have to configure your passkey via the properties button, check the "connect automatically" box, and away you go.
Interesting, to say the least, nothing pops out to me as being wrong with your configuration. I know you've checked to make sure you're using the correct WEP key (it is yours, after all). Do an lspci and look for that wireless adapter in the list, I believe it's based on a broadcom chip, in which case you may need to blacklist the b43 or the bcm43xx modules in the stock slackware kernel if you're going to use ndiswrapper to make it work. Alternatively, you could use one of the fwcutter utilities to make the stock drivers work. I guess the first step is to lspci (as root), and post the results, that will tell us which chipset the wireless adapter is really using and we can go from there.
That's pretty much what I did do. iwconfig seems to ignore everything I enter. I've tried specifying my ESSID, key, and ap manually (e.g. 'iwconfig wlan0 essid "TL0L3"'), and there is no change when I type "iwconfig" to see the results.
The suse link above didn't seem to have anything I could use. I get no response from typing iwconfig commands in at the command line.
I had already read thru Alien Bob's tutorial and nothing jumped out at me.
I should mention that, prior to my first post, I had changed the name of my rc.wireless.conf file to keep it from being used. I have all my info in rc.inet1.conf. The first time I tried to bring wlan0 up, I saw that the essid was "Any ESSID", and I grepped and saw that this file sets that. Alien Bob's tutorial called this file a "historic leftover" and that it can be safely deleted. But maybe I will try using that file after all...
The suse link above didn't seem to have anything I could use. I get no response from typing iwconfig commands in at the command line.
I had already read thru Alien Bob's tutorial and nothing jumped out at me.
I should mention that, prior to my first post, I had changed the name of my rc.wireless.conf file to keep it from being used. I have all my info in rc.inet1.conf. The first time I tried to bring wlan0 up, I saw that the essid was "Any ESSID", and I grepped and saw that this file sets that. Alien Bob's tutorial called this file a "historic leftover" and that it can be safely deleted. But maybe I will try using that file after all...
Thanks,
GL
Little wonder the suse link was a dead end...it didn't even deal with your adapter. AlienBob is an authority no doubt but perhaps a little further up the curve for you. I think you'll need this page http://linuxwireless.org/en/users/Drivers/p54
I think you'll need to install the firmware for that device first. DO dmesg | more and look for references to the device. Uninstall ndiswrapper -you don't need it- and return all the files you've changed to their default values and start again from scratch using the page I've referenced. Once the firmware is installed there are only 3 files you'll need to edit /etc/wpa_supplicant.conf, /etc/rc.d/rc.wireless.conf and /etc/rc.d/rc.inet1.conf. Setting up wireless with WPA -forget WEP- is easy and you don't absolutely _need_ wicd either. Keep posting with your progress.
Last edited by the_penguinator; 11-27-2009 at 08:18 AM.
Here is the stuff I tried before I saw Penguinator's response. (I'll try Penguinator's suggestions after I take the dog out... I *do* know I have a p54usb module though.)
I added the settings for my wireless USB adapter to rc.wireless.conf. That seemed to parse without error upong reboot (I saw my "INFO" line printed during the bootup process). However, still no success on bringing the link up.
I also added a DHCP_TIMEOUT[4]="20" parameter to my rc.inet1.conf file to extend the timeout from 10 to 20 seconds, hoping that would help. It didn't.
Here is what I see in /var/log/messages now:
Code:
Nov 27 09:16:01 darkstar logger: /etc/rc.d/rc.inet1: /sbin/modprobe wlan0
Nov 27 09:16:01 darkstar kernel: ndiswrapper version 1.55 loaded (smp=yes, preempt=no)
Nov 27 09:16:01 darkstar kernel: usb 1-7: reset high speed USB device using ehci_hcd and address 3
Nov 27 09:16:01 darkstar kernel: ndiswrapper: driver dellnic (Dell,09/26/2004, 3.01.12.0) loaded
Nov 27 09:16:03 darkstar kernel: wlan0: ethernet device 00:14:a5:48:47:ee using NDIS driver: dellnic, version: 0x3010c, NDIS v
ersion: 0x501, vendor: 'Dell Wireless 1450 Dual-band (802.11a/b/g) USB2.0 Adapter', 413C:8104.F.conf
Nov 27 09:16:03 darkstar kernel: wlan0: encryption modes supported: WEP; TKIP with WPA; AES/CCMP with WPA
Nov 27 09:16:03 darkstar kernel: usbcore: registered new interface driver ndiswrapper
Nov 27 09:16:06 darkstar logger: /etc/rc.d/rc.inet1: /sbin/iwconfig wlan0 mode Managed
Nov 27 09:16:06 darkstar logger: /etc/rc.d/rc.M: /sbin/iwconfig wlan0 mode Managed
Nov 27 09:16:06 darkstar logger: /etc/rc.d/rc.inet1: /sbin/iwconfig wlan0 nick darkstar
Nov 27 09:16:06 darkstar logger: /etc/rc.d/rc.inet1: /sbin/iwconfig wlan0 freq 2.412G
Nov 27 09:16:06 darkstar logger: /etc/rc.d/rc.M: /sbin/iwconfig wlan0 nick darkstar
Nov 27 09:16:06 darkstar logger: /etc/rc.d/rc.M: /sbin/iwconfig wlan0 freq 2.412G
Nov 27 09:16:06 darkstar logger: /etc/rc.d/rc.M: /sbin/iwconfig wlan0 key ************
Nov 27 09:16:06 darkstar logger: /etc/rc.d/rc.inet1: /sbin/iwconfig wlan0 key ************
Nov 27 09:16:06 darkstar logger: /etc/rc.d/rc.inet1: /sbin/iwconfig wlan0 key restricted
Nov 27 09:16:06 darkstar logger: /etc/rc.d/rc.M: /sbin/iwconfig wlan0 key restricted
Nov 27 09:16:06 darkstar logger: /etc/rc.d/rc.inet1: /sbin/iwconfig wlan0 rate 54M auto
Nov 27 09:16:06 darkstar logger: /etc/rc.d/rc.M: /sbin/iwconfig wlan0 rate 54M auto
Nov 27 09:16:06 darkstar logger: /etc/rc.d/rc.inet1: /sbin/iwconfig wlan0 essid "TL0L3"
Nov 27 09:16:06 darkstar logger: /etc/rc.d/rc.M: /sbin/iwconfig wlan0 essid "TL0L3"
Nov 27 09:16:06 darkstar logger: /etc/rc.d/rc.M: /sbin/iwconfig wlan0 essid "TL0L3"
Nov 27 09:16:06 darkstar logger: /etc/rc.d/rc.inet1: /sbin/iwconfig wlan0 essid "TL0L3"
Nov 27 09:16:06 darkstar logger: /etc/rc.d/rc.inet1: /sbin/dhcpcd -t 20 wlan0
Nov 27 09:16:06 darkstar logger: /etc/rc.d/rc.inet1: /sbin/dhcpcd -t 20 wlan0
Nov 27 09:16:06 darkstar dhcpcd[3445]: wlan0: dhcpcd 3.2.3 starting
Nov 27 09:16:06 darkstar dhcpcd[3446]: wlan0: exiting
Nov 27 09:16:06 darkstar dhcpcd[3445]: wlan0: hardware address = 00:14:a5:48:47:ee
Nov 27 09:16:06 darkstar dhcpcd[3445]: wlan0: DUID = 00:01:00:01:12:a0:44:82:00:14:a5:48:47:ee
Nov 27 09:16:06 darkstar dhcpcd[3445]: wlan0: broadcasting for a lease
Nov 27 09:16:26 darkstar dhcpcd[3445]: wlan0: trying to use old lease in `/etc/dhcpc/dhcpcd-wlan0.info'
Nov 27 09:16:26 darkstar dhcpcd[3445]: wlan0: probing for an IPV4LL address
Nov 27 09:16:27 darkstar dhcpcd[3445]: wlan0: adding IP address 169.254.72.1/16
Nov 27 09:16:27 darkstar dhcpcd[3445]: wlan0: exiting
Nov 27 09:16:28 darkstar kernel: NET: Registered protocol family 10
Nov 27 09:16:28 darkstar kernel: lo: Disabled Privacy Extensions
Nov 27 09:16:28 darkstar kernel: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Here is what I get when I type iwconfig and ifconfig. (I asterisked-out my key. Does it normally print the key in plaintext like that?)
Code:
root@darkstar:~# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 IEEE 802.11g ESSID:off/any Nickname:"darkstar"
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Bit Rate:2 Mb/s Tx-Power:17 dBm
RTS thr:2347 B Fragment thr:2346 B
Encryption key:****-****-** Security mode:restricted
Power Management:off
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
root@darkstar:~# iwconfig wlan0 essid "TL0L3"
root@darkstar:~# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 IEEE 802.11g ESSID:off/any Nickname:"darkstar"
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Bit Rate:2 Mb/s Tx-Power:17 dBm
RTS thr:2347 B Fragment thr:2346 B
Encryption key:****-****-** Security mode:restricted
Power Management:off
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
root@darkstar:~# ifconfig
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:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1240 (1.2 KiB) TX bytes:1240 (1.2 KiB)
wlan0 Link encap:Ethernet HWaddr 00:14:a5:48:47:ee
inet addr:169.254.72.1 Bcast:169.254.255.255 Mask:255.255.0.0
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)
root@darkstar:~#
Also, above, I typed a "iwconfig wlan0 essid 'TL0L3'" in there and got no response as usual.
And finally, an lsusb just for good measure:
Code:
root@darkstar:~# lsusb
Bus 001 Device 004: ID 13fe:1e00 Kingston Technology Company Inc.
Bus 001 Device 003: ID 413c:8104 Dell Computer Corp. Wireless 1450 Dual-band (802.11a/b/g) USB2.0 Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 006: ID 413c:2010 Dell Computer Corp.
Bus 002 Device 005: ID 10d5:55a2 Uni Class Technology Co., Ltd 2Port KVMSwitcher
Bus 002 Device 003: ID 413c:1003 Dell Computer Corp.
Bus 002 Device 004: ID 413c:3200 Dell Computer Corp. Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 058f:9254 Alcor Micro Corp. Hub
root@darkstar:~#
SOLVED: Dell 1450 USB wireless adapter in Slackware 13.0
Thank you Penguinator! Using the p54usb module that came with Slackware worked just fine. The only thing I had to do (after removing ndiswrapper) was to download that "isl3887usb" file from the p54 site, copy it to /lib/firmware, reboot, and watch the bits fly!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.