hostapd "Could not connect to kernel driver" with madwifi-ng

Ryan Castellucci ryan.castellucci at gmail.com
Fri Mar 31 18:55:53 EST 2006


I'm using hostapd 0.5.2 compiled with madwifi-ng r1475, and I get the
following when I attempt ot that hostapd:

# hostapd -dddd /rw/etc/hostapd-ath0.conf
Configuration file: /rw/etc/hostapd-ath0.conf
madwifi_set_iface_flags: dev_up=0
Using interface ath0 with hwaddr 00:02:6f:20:fa:82 and ssid 'test-ath0'
SIOCGIWRANGE: WE(compiled)=19 WE(source)=13 enc_capa=0x0
Flushing old station entries
madwifi_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=3
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
Could not connect to kernel driver.
Deauthenticate all stations
madwifi_set_iface_flags: dev_up=0

I know I've got hostapd compiled against the madwifi drivers i'm
using, and it is installed corectly as far as i can tell.

my config file

interface=ath0
driver=madwifi
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=0
dump_file=/tmp/hostapd.dump
ssid=test-ath0
eapol_key_index_workaround=0
eap_server=0
own_ip_addr=127.0.0.1

strace output

# strace hostapd -dddd /rw/etc/hostapd-ath0.conf
execve("/usr/local/bin/hostapd", ["hostapd", "-dddd", "/rw/etc/hostapd-ath0.conf
"], [/* 13 vars */]) = 0
uname({sys="Linux", node="hotspot", ...}) = 0
brk(0)                                  = 0x808b000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
xb7fa3000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=6275, ...}) = 0
old_mmap(NULL, 6275, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fa1000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/i586/libssl.so.0.9.7", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\205\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=182192, ...}) = 0
old_mmap(NULL, 182960, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7f74000
old_mmap(0xb7f9e000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2a
000) = 0xb7f9e000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/i586/libcrypto.so.0.9.7", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\300\2"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=952744, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
xb7f73000
old_mmap(NULL, 970744, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7e86000
old_mmap(0xb7f5e000, 73728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xd7
000) = 0xb7f5e000
old_mmap(0xb7f70000, 12280, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANON
YMOUS, -1, 0) = 0xb7f70000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360^\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1244688, ...}) = 0
old_mmap(NULL, 1254852, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7d53000
old_mmap(0xb7e7b000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x12
7000) = 0xb7e7b000
old_mmap(0xb7e83000, 9668, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONY
MOUS, -1, 0) = 0xb7e83000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\34\0\000"..., 512) = 5
12
fstat64(3, {st_mode=S_IFREG|0644, st_size=9872, ...}) = 0
old_mmap(NULL, 8632, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7d50000
old_mmap(0xb7d52000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x200
0) = 0xb7d52000
close(3)                                = 0
munmap(0xb7fa1000, 6275)                = 0
brk(0)                                  = 0x808b000
brk(0x80ac000)                          = 0x80ac000
brk(0)                                  = 0x80ac000
rt_sigaction(SIGHUP, {0x804d440, [HUP], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x804d440, [INT], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0x804d440, [TERM], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGUSR1, {0x804d440, [USR1], SA_RESTART}, {SIG_DFL}, 8) = 0
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(4, 64), ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B19200 opost isig icanon echo ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
xb7fa2000
write(1, "Configuration file: /rw/etc/host"..., 46Configuration file: /rw/etc/ho
stapd-ath0.conf
) = 46
open("/rw/etc/hostapd-ath0.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=10893, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
xb7fa1000
read(3, "##### hostapd configuration file"..., 4096) = 4096
read(3, "and\n# concatenating these into o"..., 4096) = 4096
read(3, "is can be either entered as a 25"..., 4096) = 2701
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7fa1000, 4096)                = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
ioctl(3, SIOCGIFINDEX, {8, "ath0"})     = 0
socket(PF_PACKET, SOCK_RAW, 36488)      = 4
ioctl(4, SIOCGIFINDEX, {8, "ath0"})     = 0
bind(4, {sa_family=AF_PACKET, proto=0x888e, if8, pkttype=PACKET_HOST, addr(0)={0
, }, 20) = 0
ioctl(4, SIOCGIFHWADDR, 0xbfab9420)     = 0
ioctl(3, SIOCSIWMODE, 0xbfab9490)       = 0
write(1, "madwifi_set_iface_flags: dev_up="..., 34madwifi_set_iface_flags: dev_u
p=0
) = 34
ioctl(3, SIOCGIFFLAGS, 0xbfab9420)      = 0
ioctl(3, SIOCSIFFLAGS, 0xbfab9420)      = 0
ioctl(3, SIOCGIWESSID, 0xbfab94b0)      = 0
write(1, "Using interface ath0 with hwaddr"..., 72Using interface ath0 with hwad
dr 00:02:6f:20:fa:82 and ssid 'test-ath0'
) = 72
gettimeofday({1143500214, 434222}, NULL) = 0
time(NULL)                              = 1143500214
ioctl(3, SIOCGIWRANGE, 0xbfab9480)      = 0
write(1, "SIOCGIWRANGE: WE(compiled)=19 WE"..., 57SIOCGIWRANGE: WE(compiled)=19
WE(source)=13 enc_capa=0x0
) = 57
socket(PF_NETLINK, SOCK_RAW, 0)         = 5
bind(5, {sa_family=AF_NETLINK, pid=0, groups=00000001}, 12) = 0
write(1, "Flushing old station entries\n", 29Flushing old station entries
) = 29
write(1, "madwifi_sta_deauth: addr=ff:ff:f"..., 57madwifi_sta_deauth: addr=ff:ff
:ff:ff:ff:ff reason_code=3
) = 57
ioctl(3, 0x8bf0, 0xbfab9400)            = -1 EINVAL (Invalid argument)
dup(2)                                  = 6
fcntl64(6, F_GETFL)                     = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat64(6, {st_mode=S_IFCHR|0600, st_rdev=makedev(4, 64), ...}) = 0
ioctl(6, SNDCTL_TMR_TIMEBASE or TCGETS, {B19200 opost isig icanon echo ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
xb7fa1000
_llseek(6, 0, 0xbfab9280, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
write(6, "ioctl[IEEE80211_IOCTL_SETMLME]: "..., 49ioctl[IEEE80211_IOCTL_SETMLME]
: Invalid argument
) = 49
close(6)                                = 0
munmap(0xb7fa1000, 4096)                = 0
write(1, "Could not connect to kernel driv"..., 36Could not connect to kernel dr
iver.
) = 36
write(1, "Deauthenticate all stations\n", 28Deauthenticate all stations
) = 28
close(0)                                = 0
close(5)                                = 0
write(1, "madwifi_set_iface_flags: dev_up="..., 34madwifi_set_iface_flags: dev_u
p=0
) = 34
ioctl(3, SIOCGIFFLAGS, 0xbfab95c0)      = 0
ioctl(3, SIOCSIFFLAGS, 0xbfab95c0)      = 0
close(3)                                = 0
close(4)                                = 0
munmap(0xb7fa2000, 4096)                = 0
exit_group(1)                           = ?

--
Ryan Castellucci http://ryanc.org/


--
Ryan Castellucci http://ryanc.org/



More information about the HostAP mailing list