ioctl[PRISM2_IOCTL_HOSTAPD]: Invalid argument using hostapd-0.7.3

Laurento laurento.frittella
Wed Apr 4 09:53:37 PDT 2012


Hi all,
I've just upgraded from 0.6.10 version to 0.7.3 on debian but now when
I start hostapd I receive these errors:

# /etc/init.d/hostapd start
Starting advanced IEEE 802.11 management:
hostapdioctl[PRISM2_IOCTL_HOSTAPD]: Invalid argument
ioctl[PRISM2_IOCTL_HOSTAPD]: Invalid argument
ioctl[PRISM2_IOCTL_HOSTAPD]: Invalid argument
ioctl[PRISM2_IOCTL_HOSTAPD]: Invalid argument

The wireless connection still works but I'd like to understand what
these errors mean and if I need to worry about them.
I've installed hostapd-0.7 in debian using pinning (using the package
from the testing branch) so please let me now if this can be related
to a too old library and/or utility (wireless-tools, wpa_supplicant
and so on)


Some info about my system, the hostapd debug messages and the hostapd.conf file:

Linux firetux 3.2.0-0.bpo.2-686-pae #1 SMP Sun Mar 25 11:12:58 UTC
2012 i686 GNU/Linux
[...]
hostap_pci 0000:00:0b.0: PCI INT A -> Link[LNKB] -> GSI 10 (level,
low) -> IRQ 10
hostap_pci: Registered netdevice wifi0
wifi0: NIC: id=0x8013 v1.0.0
wifi0: PRI: id=0x15 v1.1.1
wifi0: STA: id=0x1f v1.7.4
wifi0: Intersil Prism2.5 PCI: mem=0xe2000000, irq=10
[...]


# /usr/sbin/hostapd -d /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
ctrl_interface_group=0
Opening raw packet socket for ifindex 13
SIOCGIWRANGE: WE(compiled)=22 WE(source)=18 enc_capa=0xf
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x0
RATE[3] rate=110 flags=0x0
Completing interface initialization
Mode: IEEE 802.11b  Channel: 6  Frequency: 2437 MHz
Flushing old station entries
Deauthenticate all stations
ioctl[PRISM2_IOCTL_HOSTAPD]: Invalid argument
Failed to set encryption.
Failed to clear default encryption keys (ifname=wlan0 keyidx=0)
ioctl[PRISM2_IOCTL_HOSTAPD]: Invalid argument
Failed to set encryption.
Failed to clear default encryption keys (ifname=wlan0 keyidx=1)
ioctl[PRISM2_IOCTL_HOSTAPD]: Invalid argument
Failed to set encryption.
Failed to clear default encryption keys (ifname=wlan0 keyidx=2)
ioctl[PRISM2_IOCTL_HOSTAPD]: Invalid argument
Failed to set encryption.
Failed to clear default encryption keys (ifname=wlan0 keyidx=3)
Using interface wlan0 with hwaddr 11:22:33:44:55:66 and ssid 'MYSSID'
hostap: Set generic IE - hexdump(len=0):
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
GMK - hexdump(len=32): [REMOVED]
GTK - hexdump(len=16): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
hostap: Set generic IE - hexdump(len=22): 30 14 01 00 00 0f ac 04 01
00 00 0f ac 04 01 00 00 0f ac 02 00 00
wlan0: Setup of interface done.
Wireless event: cmd=0x8b1a len=16


# cat /etc/hostapd/hostapd.conf
interface=wlan0
driver=hostap
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=MYSSID
hw_mode=b
channel=6
beacon_int=100
dtim_period=2
max_num_sta=255
rts_threshold=2347
fragm_threshold=2346
preamble=1
macaddr_acl=1
accept_mac_file=/etc/hostapd/accept
auth_algs=3
ignore_broadcast_ssid=0
ap_max_inactivity=300
eap_server=0
wpa=2
wpa_psk_file=/etc/hostapd/hostapd.wpa_psk
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP


Cheers,
Laurento



More information about the Hostap mailing list