Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Ndiswrapper & wpa_supplicant config

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
karthik
Posts: 1
Joined: 2006-02-10 22:04

Ndiswrapper & wpa_supplicant config

#1 Post by karthik »

Hi,

Would really appreciate if someone can help me with this issue.

Trying to setup a wireless card based on Realtek 8185 chipset with ndiswrapper 1.9 and wpa_supplicant 0.4.7 on Sarge (kernel 2.4.27). Executing "wpa_supplicant -iwlan0 -Dndiswrapper -c/etc/wpa_supplicant.conf" indicates that the network is connected but I am not able to ping any hosts. Also, my router does not indicate that the device is attached.

Followed these setup steps:
1) built ndiswrapper from source and did "make install"
2) ndiswrapper -e <path to inf file>
3) ndiswrapper -m
4) added ndiswrapper to /etc/modules
5) added package wpa_supplicant and configured it as below:
---------------------- wpa_supplicant.conf ----------------------------
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0

eapol_version=1
ap_scan=1
fast_reauth=1

# WPA-PSK
network={
ssid="MYSSID"
key_mgmt=NONE
wep_key0=XXXXXXXXXXXXXXXXXXXXXXXXXX
wep_tx_keyidx=0
}
-----------------------------------------------------------------------------

------------------------- /etc/default/wpasupplicant --------------------
ENABLED=1
OPTIONS="-iwlan0 -Dndiswrapper -c/etc/wpa_supplicant.conf"
-----------------------------------------------------------------------------

6) Configured interfaces file as below:
------------------------ /etc/network/interfaces -------------------------
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
name Ethernet LAN card
address 192.168.0.3
netmask 255.255.255.0
broadcast 192.168.0.255
network 192.168.0.0
gateway 192.168.0.1

# Wireless
iface wlan0 inet dhcp
pre-up /etc/init.d/wpasupplicant start
pre-up sleep 5
-----------------------------------------------------------------------------

7) To test, I tried "wpa_supplicant -iwlan0 -Dndiswrapper -c/etc/wpa_supplicant.conf"... This gives the following output:
--------------------- wpa_supplicant -------------------------------------
ioctl[SIOCSIWPMKSA]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
Trying to associate with 00:0f:b5:7a:32:e2 (SSID='23kelvin' freq=2462 MHz)
Associated with 00:0f:b5:7a:32:e2
CTRL-EVENT-CONNECTED - Connection to 00:0f:b5:7a:32:e2 completed (auth)
-----------------------------------------------------------------------------

8) iwconfig output as follows:
-----------------------------------------------------------------------------
wlan0 IEEE 802.11b ESSID:"23kelvin"
Mode:Managed Frequency:2.462 GHz Access Point: 00:0F:B5:7A:32:E2
Bit Rate:54 Mb/s Tx-Power:20 dBm Sensitivity=0/3
RTS thr:2432 B Fragment thr:2432 B
Encryption key:XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX Security mode:open
Power Management:off
Link Quality:100/100 Signal level:-55 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
-----------------------------------------------------------------------------

Please help,

-- Karthik.
-- Karthik.

Guest

#2 Post by Guest »

Uhm, everything seems fine from here.
Try running a dhclient wlan0 and see what happens....

vhunter
Posts: 1
Joined: 2006-05-12 18:09

#3 Post by vhunter »

I'm not sure if this was a typo, but the command to install ndiswrapper drivers is "ndiswrapper -i /path/to/.inf/file" (no quotes), not "ndiswrapper -e". The -e switch uninstalls drivers.

Post Reply