Discussion:
hostapd fun
(too old to reply)
Patrick Welche
2008-07-04 15:47:31 UTC
Permalink
I'm having my first attempt at hostapd, but get

ioctl[SIOCS80211]: No such file or directory == ENENT

It seems to come from

set80211var(..., op=IEEE80211_IOC_DELKEY
bsd_del_key()

trying to delete a key with

memcpy(wk.idk_macaddr, addr, IEEE80211_ADDR_LEN);
wk.idk_keyix = (u_int8_t) IEEE80211_KEYIX_NONE; /* XXX */

The idk_macaddr really is the correct macaddress of the client.

So I must be hitting

ni = ieee80211_find_node(&ic->ic_sta, dk.idk_macaddr);
if (ni == NULL)
return ENOENT;

in ieee80211_ioctl.c:ieee80211_ioctl_delkey().

Any idea why?

Cheers,

Patrick
(NetBSD-4.99.68/amd64, ath0)

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
David Young
2008-07-04 18:02:38 UTC
Permalink
Post by Patrick Welche
I'm having my first attempt at hostapd, but get
ioctl[SIOCS80211]: No such file or directory == ENENT
Does this stop it from working?

Dave
--
David Young OJC Technologies
***@ojctech.com Urbana, IL * (217) 278-3933 ext 24

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Patrick Welche
2008-07-05 20:23:10 UTC
Permalink
Post by David Young
Post by Patrick Welche
I'm having my first attempt at hostapd, but get
ioctl[SIOCS80211]: No such file or directory == ENENT
Does this stop it from working?
No, it probably doesn't work because of my configuration... I finally saw
a "Authentication with ... timed out" scroll by..

Here's my attempted configuration. hostapd.conf:

interface=ath0
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=1
debug=2
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
ssid=NetBSD
macaddr_acl=0
auth_algs=2 # i.e., SHARED
wpa=2 # i.e., RSN
wpa_psk=4bc6b2b83d40a40922bf739a42f5885ef3402e51f620cc34fa045b978379d9d1
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP

wpa_supplicant.conf:
network={
ssid="NetBSD"
psk=4bc6b2b83d40a40922bf739a42f5885ef3402e51f620cc34fa045b978379d9d1
proto=RSN
key_mgmt=WPA-PSK
auth_alg=SHARED
pairwise=TKIP CCMP
}


Relevant bits seem to match, so why would authentication time out?
(Is that different to fail? Should this now be on netbsd-users?)

Cheers,

Patrick


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Patrick Welche
2008-08-01 21:35:39 UTC
Permalink
.. and the answer is, proto should be WPA not RSN..
Post by Patrick Welche
Post by David Young
Post by Patrick Welche
I'm having my first attempt at hostapd, but get
ioctl[SIOCS80211]: No such file or directory == ENENT
Does this stop it from working?
No, it probably doesn't work because of my configuration... I finally saw
a "Authentication with ... timed out" scroll by..
interface=ath0
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=1
debug=2
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
ssid=NetBSD
macaddr_acl=0
auth_algs=2 # i.e., SHARED
wpa=2 # i.e., RSN
wpa_psk=4bc6b2b83d40a40922bf739a42f5885ef3402e51f620cc34fa045b978379d9d1
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
network={
ssid="NetBSD"
psk=4bc6b2b83d40a40922bf739a42f5885ef3402e51f620cc34fa045b978379d9d1
proto=RSN
key_mgmt=WPA-PSK
auth_alg=SHARED
pairwise=TKIP CCMP
}
Relevant bits seem to match, so why would authentication time out?
(Is that different to fail? Should this now be on netbsd-users?)
Cheers,
Patrick
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...