Can't get hostap driver to work

Chuck Martin zi8xfgj02 at sneakemail.com
Wed Dec 10 20:54:58 EST 2008


I asked this a few days ago, but received no response.  Maybe I didn't
provide enough information.  I don't know what's relevant and what's
not, so here's what I did, with the results (I usually use a script for
everything, but I did it manually, so you can see exactly what I did).

First, I'm using Slackware 12.1, and the hostap driver was orignally
blacklisted in /etc/modprobe.d/blacklist like this:

# Modules used to run a wireless adaptor as an access point.  These
# conflict with the normal driver for the device, and so should be
# loaded manually.
blacklist hostap_cs
blacklist hostap_pci
blacklist hostap_plx
blacklist hostap

I think the comment is wrong, so I blacklisted the orinoco drivers, and
then I load the ones I want manually.  Here's exactly what I did:

=====Start of session=====

root at theta:~# modprobe hostap_cs
root at theta:~# wpa_supplicant -Bddw -c/etc/wpa_supplicant.d/gdl.conf -ieth1 -Dhostap
Daemonize..
root at theta:~# ifconfig
eth1      Link encap:Ethernet  HWaddr 00:05:5d:d6:43:20
          inet6 addr: fe80::205:5dff:fed6:4320/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:8 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:576 (576.0 B)
          Interrupt:10 Base address:0x2100

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: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)

wifi0     Link encap:UNSPEC  HWaddr 00-05-5D-D6-43-20-6C-6F-00-00-00-00-00-00-00-00
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:83 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:6 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7214 (7.0 KiB)  TX bytes:0 (0.0 B)
          Interrupt:10 Base address:0x2100

root at theta:~# dhcpcd -d eth1
dhcpcd: MAC address = 00:05:5d:d6:43:20
root at theta:~# 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: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)

root at theta:~# pccardctl eject
root at theta:~# modprobe -r hostap_cs
root at theta:~# modprobe orinoco_cs
root at theta:~# pccardctl insert
root at theta:~# wpa_supplicant -Bddw -c/etc/wpa_supplicant.d/gdl.conf -ieth1 -Dhostap
Daemonize..
root at theta:~# 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: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)

root at theta:~# ifconfig eth1 up
root at theta:~# ifconfig
eth1      Link encap:Ethernet  HWaddr 00:05:5d:d6:43:20
          inet6 addr: fe80::205:5dff:fed6:4320/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:112 (112.0 B)  TX bytes:1460 (1.4 KiB)
          Interrupt:10 Base address:0x2100

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: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)

root at theta:~# dhcpcd -d eth1
dhcpcd: MAC address = 00:05:5d:d6:43:20
dhcpcd: your IP address = 10.80.51.12
root at theta:~# ifconfig
eth1      Link encap:Ethernet  HWaddr 00:05:5d:d6:43:20
          inet addr:10.80.51.12  Bcast:10.80.51.255  Mask:255.255.255.0
          inet6 addr: fe80::205:5dff:fed6:4320/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:496 (496.0 B)  TX bytes:2218 (2.1 KiB)
          Interrupt:10 Base address:0x2100

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: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)

root at theta:~#

=====End of session=====

And here is the contents of /etc/wpa_supplicant.d/gdl.conf (this is for
the wireless Internet connection at the Genesee Public Library, hence
gdl):

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel

network={
        key_mgmt=NONE
}

There is no encryption on this system.  Could someone tell me why it
doesn't work with the hostap driver, but it works with the orinoco
driver?  Before upgrading the O/S, I had some luck with the wlan-ng
driver, but I'd rather not install another driver unless I have to.
The orinoco driver works, but it has problems.  The hostap driver also
works with kismet.

By the way, the wireless card is a D-Link DW-650.  If you need any more
information, please tell me what else you need to know.  Thanks.

Chuck



More information about the HostAP mailing list