2.4.21: pain with "iwconfig wlan0 key [1] xxxxxxxxxxxxxxxxxxxxxxxxxx key [1] key on key restricted"

insecure insecure at mail.od.ua
Mon Jun 16 05:25:04 EDT 2003


I tried to update my kernel from 2.4.20 to 2.4.21
(I had masquerading problems and netfilter folks
asked me to recheck with newer kernel)

A couple of things broke, one of them is hostap.
I run my AP statically WEPed. I set crypto parameters
like this:

iwconfig wlan0 key [1] xxxxxxxxxxxxxxxxxxxxxxxxxx key [1] key on key restricted

It worked in 2.4.20. In 2.4.21 I get an error message.
Sorry I did not save it exactly, need to reboot into
2.4.21 once more...

But I did strace on this iwconfig command, maybe this will
give you enougn info already:

execve("/usr/bin/iwconfig", ["iwconfig", "wlan0", "key", "[1]", "xxxxxxxxxxxxxxxxxxxxxxxxxx", "key", "[1]", "key", "on", "key", "restricted"], [/* 30 vars */]) = 0
uname({sys="Linux", node="quasar", ...}) = 0
brk(0)                                  = 0x804f640
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/var/app/glibc-2.3/etc/ld.so.cache", O_RDONLY) = 6
fstat64(6, {st_mode=S_IFREG|0644, st_size=47910, ...}) = 0
old_mmap(NULL, 47910, PROT_READ, MAP_PRIVATE, 6, 0) = 0x40013000
close(6)                                = 0
open("/lib/libm.so.6", O_RDONLY)        = 6
read(6, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p6\0\000"..., 1024) = 1024
fstat64(6, {st_mode=S_IFREG|0755, st_size=1385334, ...}) = 0
old_mmap(NULL, 137472, PROT_READ|PROT_EXEC, MAP_PRIVATE, 6, 0) = 0x4001f000
mprotect(0x40040000, 2304, PROT_NONE)   = 0
old_mmap(0x40040000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 6, 0x20000) = 0x40040000
close(6)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 6
read(6, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240Y\1"..., 1024) = 1024
fstat64(6, {st_mode=S_IFREG|0755, st_size=16153080, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40041000
old_mmap(NULL, 1131908, PROT_READ|PROT_EXEC, MAP_PRIVATE, 6, 0) = 0x40042000
mprotect(0x4014d000, 38276, PROT_NONE)  = 0
old_mmap(0x4014d000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 6, 0x10a000) = 0x4014d000
old_mmap(0x40153000, 13700, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40153000
close(6)                                = 0
munmap(0x40013000, 47910)               = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 6
brk(0)                                  = 0x804f640
brk(0x8050640)                          = 0x8050640
brk(0x8051000)                          = 0x8051000
ioctl(6, 0x8b2a, 0xbffff9c0)            = 0
ioctl(6, 0x8b2a, 0xbffff9c0)            = 0
ioctl(6, 0x8b2b, 0xbffff9c0)            = -1 E2BIG (Argument list too long)
write(2, "Error for wireless request \"Set "..., 49) = 49
write(2, "    GET failed on device wlan0 ;"..., 57) = 57
close(6)                                = 0
_exit(-6)                               = ?

Before anyone ask: I did recompile hostap and wireless tools against new kernel headers
and also retried this with today's hostap CVS.

OTOH I did not try latest wireless tools... guess I should. Current version is

# iwconfig --version
iwconfig  Version 25
          Compatible with Wireless Extension v15 or earlier,
          Currently compiled with Wireless Extension v15.
-- 
vda



More information about the HostAP mailing list