Package: hostapd
Version: x0.4.2
scout:/etc/hostapd# which hostapd
/usr/sbin/hostapd
scout:/etc/hostapd# type hostapd
hostapd is /usr/sbin/hostapd
scout:/etc/hostapd# dpkg --search /usr/sbin/hostapd
hostapd: /usr/sbin/hostapd
scout:/etc/hostapd# dpkg --list hostapd
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name Version Description
+++-===========================-===========================-======================================================================
ii hostapd 0.4.2-1 user space
IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator
scout:/etc/hostapd# dpkg --status hostapd
Package: hostapd
Status: install ok installed
Priority: optional
Section: net
Installed-Size: 472
Maintainer: Faidon Liambotis <[EMAIL PROTECTED]>
Architecture: i386
Version: 1:0.4.2-1
Depends: libc6 (>= 2.3.2.ds1-21), libssl0.9.7
Suggests: hostap-modules
Conffiles:
/etc/hostapd/hostapd.conf acf4c955a72375804f12d3879d584094
/etc/default/hostapd 99a86f13b270e9c7e18a1fecaeae939a
/etc/init.d/hostapd a782439ea435ec45593241a3189accd7
Description: user space IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP
Authenticator
Originally, hostapd was an optional user space component for Host AP
driver. It adds more features to the basic IEEE 802.11 management
included in the kernel driver: using external RADIUS authentication
server for MAC address based access control, IEEE 802.1X Authenticator
and dynamic WEP keying, RADIUS accounting, WPA/WPA2 (IEEE 802.11i/RSN)
Authenticator and dynamic TKIP/CCMP keying.
.
The current version includes support for other drivers, an integrated
EAP authenticator (i.e., allow full authentication without requiring
an external RADIUS authentication server), and RADIUS authentication
server for EAP authentication.
.
hostapd works with the following drivers:
.
* Host AP driver for Prism2/2.5/3,
* Prism54 driver for Intersil/Conexant Prism GT/Duette/Indigo,
* madwifi driver for cards based on Atheros chip set (ar521x),
* Any wired Ethernet driver for wired IEEE 802.1X authentication.
Installed hostapd and hostapd-modules-2.6.8-686. I am using a
SMC2835W-V2 wlan card. The prism54 driver from my 2.6.8 kernel works
fine. Linux scout 2.6.8 #1 Sun Jun 26 03:44:55 CEST 2005 i686 GNU/Linux
The Problem: starting hostapd /etc/hostapd/hostapd.conf
Message:
ioctl(SIOCGIFINDEX): No such device
prism54 driver initialization failed.
rmdir[ctrl_interface]: No such file or directory
strace hostapd /etc/hostapd/hostapd.conf brings 128 lines. The ones that
took my attention was:
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)
googled, without success. The file does not exist anywhere an my system,
so I assume it has to be a symlink to somewhere. Any idea/help would
come handy. I am attaching the full
strace hostapd hostapd.conf>hostapd.log
thx daniel
execve("/usr/sbin/hostapd", ["hostapd", "hostapd.conf"], [/* 28 vars */]) = 0
uname({sys="Linux", node="scout", ...}) = 0
brk(0) = 0x808e000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
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=33490, ...}) = 0
old_mmap(NULL, 33490, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/cmov/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\0P\205\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=198608, ...}) = 0
old_mmap(NULL, 199376, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40021000
old_mmap(0x4004f000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2e000) = 0x4004f000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/cmov/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\0\240\305"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1042728, ...}) = 0
old_mmap(NULL, 1056696, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40052000
old_mmap(0x4013f000, 73728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xed000) = 0x4013f000
old_mmap(0x40151000, 12216, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40151000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/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`Z\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1254468, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40154000
old_mmap(NULL, 1264780, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40155000
old_mmap(0x4027f000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x129000) = 0x4027f000
old_mmap(0x40288000, 7308, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40288000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/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\0\320\32"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9872, ...}) = 0
old_mmap(NULL, 8632, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4028a000
old_mmap(0x4028c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0x4028c000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4028d000
set_thread_area({entry_number:-1 -> 6, base_addr:0x4028d080, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0x40018000, 33490) = 0
brk(0) = 0x808e000
brk(0x80af000) = 0x80af000
brk(0) = 0x80af000
rt_sigaction(SIGHUP, {0x804c650, [HUP], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x804c650, [INT], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0x804c650, [TERM], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGUSR1, {0x804c650, [USR1], SA_RESTART}, {SIG_DFL}, 8) = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
write(1, "Configuration file: hostapd.conf"..., 33) = 33
open("hostapd.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=13004, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
read(3, "##### hostapd configuration file"..., 4096) = 4096
socket(PF_FILE, SOCK_STREAM, 0) = 4
connect(4, {sa_family=AF_FILE, path="/var/run/.nscd_socket"}, 110) = -1 ENOENT (No such file or directory)
close(4) = 0
open("/etc/nsswitch.conf", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=465, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001a000
read(4, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 465
read(4, "", 4096) = 0
close(4) = 0
munmap(0x4001a000, 4096) = 0
open("/etc/ld.so.cache", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=33490, ...}) = 0
old_mmap(NULL, 33490, PROT_READ, MAP_PRIVATE, 4, 0) = 0x4028e000
close(4) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/libnss_compat.so.2", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\22\0"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0644, st_size=28616, ...}) = 0
old_mmap(NULL, 31628, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40297000
old_mmap(0x4029e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x6000) = 0x4029e000
close(4) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/libnsl.so.1", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 <\0\000"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0644, st_size=73304, ...}) = 0
old_mmap(NULL, 80544, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4029f000
old_mmap(0x402b0000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x11000) = 0x402b0000
old_mmap(0x402b1000, 6816, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x402b1000
close(4) = 0
munmap(0x4028e000, 33490) = 0
open("/etc/ld.so.cache", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=33490, ...}) = 0
old_mmap(NULL, 33490, PROT_READ, MAP_PRIVATE, 4, 0) = 0x4028e000
close(4) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/libnss_nis.so.2", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\34\0"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0644, st_size=33440, ...}) = 0
old_mmap(NULL, 36620, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x402b3000
old_mmap(0x402bb000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x7000) = 0x402bb000
close(4) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/libnss_files.so.2", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\35"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0644, st_size=34748, ...}) = 0
old_mmap(NULL, 38044, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x402bc000
old_mmap(0x402c5000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x8000) = 0x402c5000
close(4) = 0
munmap(0x4028e000, 33490) = 0
open("/etc/group", O_RDONLY) = 4
fcntl64(4, F_GETFD) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
_llseek(4, 0, [0], SEEK_CUR) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=646, ...}) = 0
mmap2(NULL, 646, PROT_READ, MAP_SHARED, 4, 0) = 0x4028e000
_llseek(4, 646, [646], SEEK_SET) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=646, ...}) = 0
munmap(0x4028e000, 646) = 0
close(4) = 0
read(3, "ot set or are set to 0)\n# Key le"..., 4096) = 4096
read(3, "is not replying to requests. If "..., 4096) = 4096
read(3, "tion. This is used to speed up\n#"..., 4096) = 716
read(3, "", 4096) = 0
close(3) = 0
munmap(0x40019000, 4096) = 0
socket(PF_PACKET, SOCK_RAW, 36488) = 3
ioctl(3, SIOCGIFINDEX, {ifr_name="eth0", ifr_index=3}) = 0
bind(3, {sa_family=AF_PACKET, proto=0x888e, if3, pkttype=PACKET_HOST, addr(0)={0, }, 20) = 0
ioctl(3, SIOCGIFHWADDR, {ifr_name="eth0", ifr_hwaddr=00:30:b4:00:00:00}) = 0
socket(PF_PACKET, SOCK_RAW, 768) = 4
ioctl(4, SIOCGIFINDEX, {ifr_name="eth0ap", ???}) = -1 ENODEV (No such device)
dup(2) = 5
fcntl64(5, F_GETFL) = 0x8001 (flags O_WRONLY|O_LARGEFILE)
close(5) = 0
write(2, "ioctl(SIOCGIFINDEX): No such dev"..., 36ioctl(SIOCGIFINDEX): No such device
) = 36
write(1, "prism54 driver initialization fa"..., 38) = 38
close(0) = 0
unlink("/var/run/hostapd/eth0") = -1 ENOENT (No such file or directory)
rmdir("/var/run/hostapd") = -1 ENOENT (No such file or directory)
write(2, "rmdir[ctrl_interface]: No such f"..., 49rmdir[ctrl_interface]: No such file or directory
) = 49
munmap(0x40018000, 4096) = 0
exit_group(1) = ?