LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 04-27-2007, 05:06 AM   #1
pazkaw
Member
 
Registered: Aug 2004
Location: Netherlands
Distribution: Slackware 10.2, Debian Etch
Posts: 43

Rep: Reputation: 15
ndiswrapper & wpa supplicant for the WMP300N on debian


Hi all,

I'm trying to get my Debian (Etch) box connected to the internet. To install my NIC, a Linksys WMP300N, I had to use ndiswrapper; the output from ndiswrapper -l says it works fine. Also, when I run KWifiManager or the network-admin tool, both of them come up with a list of networks to chose from. The essid I want to connect to uses PSK2 AES security, and although I'm using the wpa_supplicant, I can't get connected to it!

I got the wpa_supplicant installed and followed instructions from several tutorials - now, I think there's some misconfiguration which prevents me from getting any further.

Here're some of my config files as they're now:

/etc/network/interfaces
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

iface eth0 inet dhcp

auto eth0

iface wlan0 inet dhcp
address 10.0.0.101
netmask 255.255.255.0
wireless-essid my_network
gateway 10.0.0.1
pre-up wpa_supplicant -Bw -Dndiswrapper -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
post-down killall -q wpa_supplicant
iwconfig
Code:
wlan0     IEEE 802.11g  ESSID:off/any  
          Mode:Managed  Frequency:2.427 GHz  Access Point: Not-Associated   
          Bit Rate:54 Mb/s   
          Encryption key:off
          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
/etc/wpa_supplicant/wpa_supplicant.conf
Code:
ctrl_interface=/var/run/wpa_supplicant
#ap_scan=2

network={
        ssid="my_network"
	scan_ssid=1
	proto=WPA
	key_mgmt=WPA-PSK
	
        psk=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        # Generated by wpa_passphrase
}
ifconfig -a
Code:
eth0      Link encap:Ethernet  HWaddr 00:60:97:51:DC:D9  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:90 (90.0 b)
          Interrupt:10 Base address:0xa000 

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:1090 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1090 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:165445 (161.5 KiB)  TX bytes:165445 (161.5 KiB)

sit0      Link encap:IPv6-in-IPv4  
          NOARP  MTU:1480  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)

wlan0     Link encap:Ethernet  HWaddr 00:18:39:15:EE:C7  
          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)
          Interrupt:5 Memory:d5000000-d5010000
I don't see what I'm doing wrong. Can anyone help me out?

Cheers,
Pazkaw
 
Old 04-27-2007, 11:28 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
pre-up wpa_supplicant -Bw -Dndiswrapper -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
You might try the wext driver instead of ndiswrapper. So instead of -Dndiswrapper, you would use -Dwext. The wext driver is more generic and it seems to function better than the more specific drivers.
 
  


Reply



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
A better way to WPA SUPPLICANT Ashrack Linux - Wireless Networking 5 01-25-2007 01:46 PM
WPA Supplicant problem... JaseP Linux - Wireless Networking 2 12-14-2005 09:57 PM
2.6.13 and WPA supplicant not playing with each other andy_lee Linux - Wireless Networking 3 09-23-2005 02:35 PM
WPA Supplicant Question brokenflea Slackware 7 07-28-2005 09:18 PM
How do i set up WPA PSK with wpa supplicant and linuxant? Eleavings Linux - Wireless Networking 4 12-27-2004 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 05:59 PM.

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
Open Source Consulting | Domain Registration