FW: ioctl[unknown???]: No such file or directory

Nazeer Khan Nazeer.Khan at nicta.com.au
Sun Feb 25 03:55:03 EST 2007


Hi,

Just want to give a little more information abt what i am doing. Actually
i am running hostapd on two machines. On one i am generating the keys and
sending the key and mac addr to another machine. Then i give this key to
function,

"hostapd_set_encryption(struct hostapd_data *hapd, const char *alg, u8
*addr, int idx, u8 *key, size_t key_len)"

I am sending all the parameters from remote computer except "hapd" which
is already there. But i get the error from

static int
set80211priv(struct madwifi_driver_data *drv, int op, void *data, int len)

Which is called by "madwifi_set_key".

I can't understand, when is generated on the same machine i don't get the
error, but when i send it remotely i get an error.

Following are the debug messages:

---------------

root at nazeer-laptop:/usr/src/hostapd-0.4.9# ./hostapd EAP_TLS.conf -dd
This is not fair: Configuration file: EAP_TLS.conf
Configure bridge br0 for EAPOL traffic.
madwifi_set_iface_flags: dev_up=0
Using interface ath0 with hwaddr 00:11:95:f2:86:2d and ssid
'NK_WPA_EAP_Enabled'
ath0: RADIUS Authentication server 127.0.0.1:1812
madwifi_set_ieee8021x: enabled=1
madwifi_configure_wpa: group key cipher=1
madwifi_configure_wpa: pairwise key ciphers=0xa
madwifi_configure_wpa: key management algorithms=0x1
madwifi_configure_wpa: rsn capabilities=0x0
madwifi_configure_wpa: enable WPA= 0x1
madwifi_set_iface_flags: dev_up=1
madwifi_set_privacy: enabled=1
WPA: group state machine entering state GTK_INIT
GMK - hexdump(len=32): 23 9d 13 a9 a6 15 73 13 14 73 8b 35 0a b0 f2 3a fd
7c 38 c9 eb 9f 75 47 35 4f 29 2d bf 7d 17 14
GTK - hexdump(len=32): f3 4b 12 01 a4 ed d0 c1 c5 5e d8 53 65 b7 24 1c c9
6d 83 ea 10 7e 7c 58 14 9a a5 b0 4f 91 85 d0
WPA: group state machine entering state SETKEYSDONE
madwifi_set_key: alg=TKIP addr=00:00:00:00:00:00 key_idx=1
Flushing old station entries
madwifi_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=3
Deauthenticate all stations

Initializing UDP Server on Port 4955

l2_packet_receive - recvfrom: Network is down

Number of bytes Received = 58
Function Code = 5
madwifi_set_key: alg=TKIP addr=00:00:00:00:00:00 key_idx=1
ioctl[unknown???]: No such file or directory

ath0: WPA rekeying GTK
WPA: group state machine entering state SETKEYS
GMK - hexdump(len=32): 23 9d 13 a9 a6 15 73 13 14 73 8b 35 0a b0 f2 3a fd
7c 38 c9 eb 9f 75 47 35 4f 29 2d bf 7d 17 14
GTK - hexdump(len=32): 56 af f9 9d 72 8d 0b 16 40 92 5a 06 ce 70 ec bf e6
c0 e3 9e e4 f2 85 fb 0d 3d e2 3b 1e 68 79 3c
WPA: group state machine entering state SETKEYSDONE
madwifi_set_key: alg=TKIP addr=00:00:00:00:00:00 key_idx=2

-------------------------------------------


It can be seen tht when i try to set key remotely i get the error, but
when generated on the same PC, its working fine.

Any idea why i am getting this error ???

I am using hostapd-0.4.9, with Linux 2.6.17-11 and madwifi-ng-r1968.

I tried hostapd-0.5.7 but am getting the same error as shown below.

-------------------
Number of bytes Received = 58
Function Code = 5
madwifi_set_key: alg=TKIP addr=00:00:00:00:00:00 key_idx=1
ioctl[IEEE80211_IOCTL_SETKEY]: No such file or directory
madwifi_set_key: Failed to set key (addr 00:00:00:00:00:00 key_idx 1 alg
'TKIP' key_len 32 txkey 0)
--------------------------


Can anyone help why can't i set the keys remotely. Why am i getting this
error when doing remotely??

Thank You

Nazeer



> On Sun, Feb 25, 2007 at 10:11:03AM +1100, Nazeer Khan wrote:
>
>> I am using hostapd-0.4.9 to configure EAP-TLS with madwifi. I am getting
>> the following error.
>>
>> ioctl[unknown???]: No such file or directory
>
> Which version of madwifi and Linux kernel are you using? Could you
> please re-test this with the latest hostapd release (either 0.4.10 or
> 0.5.7) since there have been some fixes to the driver_madwifi.c after
> 0.4.9, if I remember correctly.
>
> --
> Jouni Malinen                                            PGP id EFC895FA
> _______________________________________________
> HostAP mailing list
> HostAP at shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
>



--------------------------------------------------------------------------
This email and any attachments may be confidential. They may contain legally
privileged information or copyright material. You should not read, copy,
use or disclose them without authorisation. If you are not an intended
recipient, please contact us at once by return email and then delete both
messages. We do not accept liability in connection with computer virus,
data corruption, delay, interruption, unauthorised access or unauthorised
amendment. This notice should not be removed.



More information about the HostAP mailing list