VectorLinux

The nuts and bolts => Networking & Security => Topic started by: MO9013 on January 16, 2010, 02:48:22 pm

Title: cant get usb wireless to work
Post by: MO9013 on January 16, 2010, 02:48:22 pm
Went to my local Microcenter with a list of sticks that I got from http://linux-wless.passys.nl/query_hostif.php?hostif=USB and got the only one they had on the list with the right ver.  I got a D-Link DWA-160 ver A2. I tryed the how to and I got as far as the ifplugd. when I open in terminal it is blanc. I type in INTERFACES="eth0 wlan0" and save.  Then I reopen it and its blank again. Here are the readouts to that point.

vector://home/mike
root:# modprobe ath9k
vector://home/mike
root:# lsusb
Bus 001 Device 002: ID 07d1:3a09 D-Link System
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
vector://home/mike
root:# modprobe ath9k
vector://home/mike
root:# cat /etc/modprobe.conf
# /etc/modprobe.conf (old location for Linux 2.6+ config)
#
# The use of this config file is deprecated.
# Instead, create files in the /etc/modprobe.d/ directory
# containing modprobe options.
#
# For more information, see "man modprobe.conf".


alias wlan0 ath9k
vector://home/mike
root:# nano /etc/ifplugd/ifplugd.conf
vector://home/mike
root:#                   

Next I used the link from the web page above and really didn't understand it so I decided to go to D-Link and see if there was a driver.  there was but its an RPM.  So back to the how to were I found a  VIDEO TUTORIAL that showed me how to change it, well that didn't work either this was the readout for that.

vector://home/mike/Downloads/dwa160_linux_drivers_32017
root:# installpkg otusdriver-3.2.0-17.i386.tgz
WARNING: Non-standard package name

.-----.-----------------------------------------------------------------------.
| 1/1 | Installing otusdriver-3.2.0-17.i386.tgz                               |
'-----'-----------------------------------------------------------------------'
WARNING: Package has no description.

vector://home/mike/Downloads/dwa160_linux_drivers_32017
root:#                   

I tried one more thing source code with help from the VIDEO TUTORIAL, (I love who ever made them)  again it didn't get me to far.  I got to the run command and didn't get any further.

the only thing i didn't try was NdisWrapper because it should be in the kernal but I am having no luck with it.
Title: Re: cant get usb wireless to work
Post by: M0E-lnx on January 16, 2010, 07:21:51 pm
which vectorlinux release and version are you working with?

did you try the VLWifi utility? this tool should do everything for you by just answering a few questions.  itll even setup ndiswrapper when needed with a couple of clicks.
Title: Re: cant get usb wireless to work
Post by: MO9013 on January 17, 2010, 07:49:23 am
No I did't try it. I did't even know about it.  I'm running 6.0 classic.
Title: Re: cant get usb wireless to work
Post by: Daniel on January 17, 2010, 11:49:47 am
have you tried wicd?
Title: Re: cant get usb wireless to work
Post by: MO9013 on January 17, 2010, 12:29:02 pm
I did try wicd.  I think the problem is with the drivers or that I can't get card and the computer talking. i cant get past the ifplugd or get the drivers to download to get it to talk.
Title: Re: cant get usb wireless to work
Post by: hata_ph on January 17, 2010, 07:46:39 pm
Pls post your output of lspci...
Title: Re: cant get usb wireless to work
Post by: MO9013 on January 18, 2010, 03:09:57 am
here is the lspci and my lsusb since I have a usb D-Link wireless adapter.

vector://home/mike
root:# lspci
00:00.0 RAM memory: nVidia Corporation C51 Host Bridge (rev a2)
00:00.1 RAM memory: nVidia Corporation C51 Memory Controller 0 (rev a2)
00:00.2 RAM memory: nVidia Corporation C51 Memory Controller 1 (rev a2)
00:00.3 RAM memory: nVidia Corporation C51 Memory Controller 5 (rev a2)
00:00.4 RAM memory: nVidia Corporation C51 Memory Controller 4 (rev a2)
00:00.5 RAM memory: nVidia Corporation C51 Host Bridge (rev a2)
00:00.6 RAM memory: nVidia Corporation C51 Memory Controller 3 (rev a2)
00:00.7 RAM memory: nVidia Corporation C51 Memory Controller 2 (rev a2)
00:02.0 PCI bridge: nVidia Corporation C51 PCI Express Bridge (rev a1)
00:03.0 PCI bridge: nVidia Corporation C51 PCI Express Bridge (rev a1)
00:05.0 VGA compatible controller: nVidia Corporation MCP51 PCI-X GeForce Go 6100 (rev a2)
00:09.0 RAM memory: nVidia Corporation MCP51 Host Bridge (rev a2)
00:0a.0 ISA bridge: nVidia Corporation MCP51 LPC Bridge (rev a3)
00:0a.1 SMBus: nVidia Corporation MCP51 SMBus (rev a3)
00:0a.3 Co-processor: nVidia Corporation MCP51 PMU (rev a3)
00:0b.0 USB Controller: nVidia Corporation MCP51 USB Controller (rev a3)
00:0b.1 USB Controller: nVidia Corporation MCP51 USB Controller (rev a3)
00:0d.0 IDE interface: nVidia Corporation MCP51 IDE (rev f1)
00:0e.0 IDE interface: nVidia Corporation MCP51 Serial ATA Controller (rev f1)
00:10.0 PCI bridge: nVidia Corporation MCP51 PCI Bridge (rev a2)
00:10.1 Audio device: nVidia Corporation MCP51 High Definition Audio (rev a2)
00:14.0 Bridge: nVidia Corporation MCP51 Ethernet Controller (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
vector://home/mike
root:# lsusb
Bus 001 Device 004: ID 07d1:3a09 D-Link System
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
vector://home/mike
root:#                               
Title: Re: cant get usb wireless to work
Post by: hata_ph on January 18, 2010, 03:22:33 am
Sorry, I forgot to ask you to post the lsmod too...
Title: Re: cant get usb wireless to work
Post by: MO9013 on January 18, 2010, 02:41:17 pm
Not a problem.  I'm also attaching the ifconfig

vector://home/mike
root:# lsmod
Module                  Size  Used by
ath9k                 316600  0
mac80211              155676  1 ath9k
cfg80211               23816  1 mac80211
snd_seq_dummy           3588  0
snd_seq_oss            31616  0
snd_seq_midi_event      6912  1 snd_seq_oss
snd_seq                52016  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          7564  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            46208  0
snd_mixer_oss          15616  1 snd_pcm_oss
powernow_k8            13956  1
speedstep_lib           4740  0
freq_table              4352  1 powernow_k8
snd_hda_intel         397104  1
snd_pcm                75268  2 snd_pcm_oss,snd_hda_intel
rtc_cmos               10144  0
rtc_core               15132  1 rtc_cmos
snd_timer              20872  2 snd_seq,snd_pcm
rtc_lib                 3328  1 rtc_core
k8temp                  4992  0
snd_page_alloc          8712  2 snd_hda_intel,snd_pcm
snd_hwdep               8196  1 snd_hda_intel
forcedeth              52112  0
snd                    54052  12 snd_seq_dummy,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_pcm,snd_timer,snd_hwdep
nvidia               7218392  28
soundcore               7008  1 snd
i2c_nforce2             7044  0
i2c_core               21268  2 nvidia,i2c_nforce2
video                  17296  9
output                  3456  1 video
wmi                     6568  0
joydev                 10048  0
evdev                  10144  8
vector://home/mike
root:# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:1b:24:92:eb:85
          inet addr:192.168.0.235  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2146 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2479 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1426786 (1.3 MiB)  TX bytes:475149 (464.0 KiB)
          Interrupt:20 Base address:0x6000

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:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:100 (100.0 B)  TX bytes:100 (100.0 B)

Title: Re: cant get usb wireless to work
Post by: hata_ph on January 18, 2010, 04:44:06 pm
I notice your eth0 can get an IP? Can you ping your router?

Did you try this?

http://www.dlink.com/products/?tab=3&pid=DWA-160&rev=DWA-160
Title: Re: cant get usb wireless to work
Post by: MO9013 on January 18, 2010, 11:09:09 pm
When I'm at home yes I can ping the router.  I never tried it here at work. I piggy back off another computer thats running off a satellite. Its slow but at least its something. 

Yes i did try that sight.  Thats where I got the RPM drivers that I cant install. Well more like having a problem installing. The readouts of those attempts are in my first post.
Title: Re: cant get usb wireless to work
Post by: hata_ph on January 18, 2010, 11:39:56 pm
When I'm at home yes I can ping the router. 

If you can ping your router that mean the network is working.
Title: Re: cant get usb wireless to work
Post by: MO9013 on January 21, 2010, 02:46:02 pm
I can ping the hard wire not the wireless. Isn't eth0 the weired Internet part.  I cant even get there to show a signal with the wireless.  I always had weired Internet but when my wireless went out I went to a usb and thats where I'm having problems.
Title: Re: cant get usb wireless to work
Post by: hata_ph on January 21, 2010, 04:49:34 pm
http://wireless.kernel.org/en/users/Drivers/ar9170
Title: Re: cant get usb wireless to work
Post by: MO9013 on January 22, 2010, 03:45:25 pm
One of the first things I tried. I put them in the /lib/firmware file and still no go.  I didn't know what else to do so I went to the d-link site after I goggled it and one of the post said that they had to download the driver again since I have ver A2 tried that and I posted all the readouts from that ordeal trying to convert the REM file over to what I could use and then have it not to work. I think I'm doing something wrong with the driver. I'm following the instructions the best I can. I got a feeling it will be a slow night so I'm going to try and go through it all again.

I didnt say this before but when the usb stisk is pluged in it isn't found.  I can onlu see it if I use lsusb. 
Title: Re: cant get usb wireless to work
Post by: MO9013 on January 23, 2010, 12:15:10 am
Ok I started over and once again im having problems with the ifplugd.  I ran vasm and fot this

vector://home/mike
root:# vasm
sed: can't read /etc/ifplugd/ifplugd.conf.new: No such file or directory
mv: cannot stat `/etc/ifplugd/ifplugd.conf': No such file or directory
mv: cannot stat `/etc/ifplugd/ifplugd.conf.new': No such file or directory

So then I tried this

vector://home/mike
root:# cat /etc/ifplugd/ifplugd.conf
cat: /etc/ifplugd/ifplugd.conf: No such file or directory

When i try to run it in an editor I get a blank screen. Next idea was to get it from Gslapt. opened it up and it's already downloaded so I reinstaled it and it worked.  Now I can open the file.  So I ran vasm again and I got the same readout as before. I have No idea what to do from here.  I guess i could download soho beta 3.  I was going to wait till it was finalized before I upgraded.  But thats going to have to wait 2 weeks till I get home.


Title: Re: cant get usb wireless to work
Post by: hata_ph on January 23, 2010, 04:27:18 am
What version of kernel u using now?
Title: Re: cant get usb wireless to work
Post by: MO9013 on January 23, 2010, 02:55:45 pm
What ever came with 6.0 kde classic.  It is 2.6.27.29.  i went to the how to kernel and typed    ls /var/log/packages/*$(uname -r)*  into a terminal.  I figured it would tell me what I had.  It gave me updates should I update things or will it not matter.
Title: Re: cant get usb wireless to work
Post by: hata_ph on January 23, 2010, 04:12:15 pm
There is a update kernel for VL6. It is version 2.6.31.8, maybe u can try to upgrade it.

http://forum.vectorlinux.com/index.php?topic=11020.0

Have a try.
Title: Re: cant get usb wireless to work
Post by: MO9013 on January 24, 2010, 04:27:52 pm
I'm not having any luck at the moment. Up graded the kernel and it crashes. I did everything it told me to do. Oh well. I got this card because it was the only one I could find locally that was N based and was easy to get to work with only upgrading the firmware. Unless I'm putting it in the wrong spot. Without these little adventures life would be boring.
Title: Re: cant get usb wireless to work
Post by: MO9013 on February 05, 2010, 12:28:06 pm
ok tried ndiswrapper and didnt work.  i got an ERROR while getting interface flags: No such device.  here is the compleat read out. of the install process. 

vector://home/mike/Win2K_XP
root:# ndiswrapper -i ./dwarusb_xp.inf
installing dwarusb_xp ...
vector://home/mike/Win2K_XP
root:# ndiswrapper -l
dwarusb_xp : driver installed
        device (07D1:3A09) present
vector://home/mike/Win2K_XP
root:# ndiswrapper -m
adding "alias wlan0 ndiswrapper" to /etc/modprobe.d/ndiswrapper .                    ..
vector://home/mike/Win2K_XP
root:# ifconfig wlan0 up
wlan0: ERROR while getting interface flags: No such device
vector://home/mike/Win2K_XP
root:# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1b:24:92:eb:85
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2363 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2402 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1993294 (1.9 MiB)  TX bytes:448660 (438.1 KiB)
          Interrupt:20 Base address:0xa000

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:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:100 (100.0 B)  TX bytes:100 (100.0 B)

Title: Re: cant get usb wireless to work
Post by: hata_ph on February 06, 2010, 05:25:59 pm
It is not going anywhere...how about you try download other distro live CD such as ubuntu to see it can detect the wireless card...
Title: Re: cant get usb wireless to work
Post by: newt on February 06, 2010, 06:48:38 pm
Good news: I believe that out-of-the-box support for your DWA-160 ver A2 (ID 07d1:3a09) is not supported until kernel 2.6.32-stable which was just released in the end of January March (see: http://patchwork.kernel.org/patch/75364/). Unless we get a new kernel update your best bet will probably be compiling a new kernel with patched support for the device.  It seems that the device is technically supported in the 2.6.31.x kernel, just the device ids need to be added (see: http://patchwork.kernel.org/patch/60613/). If I were confident in my abilities to compile kernels I would apply this patch to our 2.6.31.8 kernel and pass it along as the patch is simply editing one file (minor revisions).  Hang in there. I'm sure that a more talented member of the community can compile a new kernel with the needed support to get your wireless usb dongle working.  I'll make an attempt at compiling a new kernel 2.6.31.8 with patch and will let you know if I come up with anything useful.

Cheers!
newt

Edit: I meant January not March.
Title: Re: cant get usb wireless to work
Post by: MO9013 on February 07, 2010, 06:16:56 am
Thanks Newt,

I found that before but had no idea on how to do it so I went the other way and tryed to download drivers and everything else I could find. I was going to wait till the SOHO comes out with the new kernel and try that. But with the info you just showed me SOHO wont be any help since it is uses 2.6.31x not the 2.6.32 kernel. Thanks again for any help you can with compiling.
Title: Re: cant get usb wireless to work
Post by: newt on February 07, 2010, 07:20:36 am
Below is a link to the newly compiled kernel, config, and system map with the patch for your device.

You should be able to extract the contents to your /boot directory, run vliloconf (as root) and it should add the new kernel as a boot option. This kernel should use the exact same modules as 2.6.31.8 (which you said you already had installed) so there should be no problems there. After extracting to /boot and running vliloconf, try rebooting with the new kernel. After your system boots up run 'depmod -aq' as root. You will probably want to reboot once more. This kernel should have support for your device driver patched in.

Note: Make sure you installed the 2.6.31.8 module package when you updated your kernel. These modules will be used by this kernel.

Also: You will want to make sure you've unloaded ndiswrapper from starting as the two drivers (native and ndis) could possibly conflict (rmmod ndiswrapper).

http://www.mediafire.com/file/2qwmnlkyyyy/vmlinuz-2.6.31.8mod.tar.gz
Title: Re: cant get usb wireless to work
Post by: MO9013 on February 07, 2010, 02:51:35 pm
Got everything to work but I'm now having a problem connecting to any encrypted networks.  It never goes past the validating authentication.  Any ideas.  I'm try to get on to a WPA2 encryption and I tried both ways in the Wicd manager.
Title: Re: cant get usb wireless to work
Post by: newt on February 07, 2010, 06:37:19 pm
Try the following command: iwlist <device_name> key
This should "list the encryption key sizes supported and display all the encryption keys available in the device." Based on that definition, I would expect that it would list the security methods that the card/kernel support for this device (hopefully I've interpreted the definition correctly). (source: http://www.wirelessdefence.org/Contents/LinuxWirelessCommands.htm#iwlist%20Commands: (http://www.wirelessdefence.org/Contents/LinuxWirelessCommands.htm#iwlist%20Commands:) )

Another option: Do you have the ability to test a WPA or WEP secured wireless connection?  According to the patchwork thread, those two security methods *should* be working.  I think it would prove useful to ensure that those are (or aren't) presently working.

Hope this helps!
Title: Re: cant get usb wireless to work
Post by: MO9013 on February 09, 2010, 03:34:42 pm
I really don't get what your saying in the first part of your message. I did try to get onto two secured networks both WPA2 with no success.  The unsecured networks I have no problems getting onto. As of right now I can't play with the router encryptions to see if changing passwords or types will do anything since I'm in motels and will be for about 3 weeks for work.

With that said I did run into a problem.  If I plug the usb stick in after I have started the computer it freezes on me and I have to reboot.   

Title: Re: cant get usb wireless to work
Post by: newt on February 10, 2010, 07:49:59 am
The first part of my message was just trying to definitively determine the security encryption features supported by your device under linux. I know the device is capable of wpa2 with windows but sometimes that differs under linux, and I was hoping the command would show what exactly it supports. Unfortunately, after testing the command on my wireless laptop I do not think it will prove useful.

It's possible that the wireless modules that I compiled for the new kernel need to be updated on your system to account for the change in device ids. I've uploaded the wireless modules for the new kernel for you, here: http://www.mediafire.com/file/0zj20duzwko/wirelessmodules-2.6.31.8mod.tar.gz .  As root, you should unpack these to the following directory /lib/modules/2.6.31.8/kernel/net/wireless/ (they will overwrite the existing wireless modules).  I noticed that they include a libcrypt module so perhaps this will solve the problem with encrypted networks.  As usual, after unpacking the modules you should run 'depmod -aq' and reboot.

Regarding the freezing issue: Hopefully it's related to the wireless modules and the above package will help alleviate that problem.

Hopefully this remedies the situation.
newt
Title: Re: cant get usb wireless to work
Post by: MO9013 on February 11, 2010, 03:57:04 pm
OK I didn't have to add the kernel to the system.  I downloaded the updated wicd manager and now when i plug in the stick it doesn't freeze.  At the same time I opened the advance section in profiles and I still had the driver set to ndiswrapper and changed it to wext and everything is working fine.  When I tried ndiswrapper to run it I changed the driver like it told me too.   Thanks for all the help and I will probably need all this again when soho comes out since the kernel you made for me wont be included. 
Title: Re: cant get usb wireless to work
Post by: newt on February 11, 2010, 04:04:14 pm
Sounds like you have everything working then (usb device, wpa2, etc)! Excellent!

Hopefully the new SOHO will include an updated kernel and alleviate the necessity for a special kernel. I think it would be worth the effort of putting in a request (maybe in the Beta3 bug thread) and reference this thread.  Hopefully the devs will decide to include the updated 2.6.32.x kernel.

Cheers!