madwifi_del_key && madwifi_sta_deauth (Error)
Thu May 10 03:00:12 PDT 2007
> I am using hostapd-0.5.7 with madwifi-ng for EAP-TLS and EAP-PSK.
> The following two functions return error with "Invalid argument" every
> (Happens when setting up the interface)
> madwifi_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=3
> ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
This is happening bcz the device is marked down in the following function.
madwifi_init(struct hostapd_data *hapd)
madwifi_set_iface_flags(drv, 0); /* mark down during setup */
Thus if we try to deauthenticate the stations, We get an error.
I tried the following "madwifi_set_iface_flags(drv, 1)", and the above
error does not happens and the card is configured perfectly fine.
So i advice the card should not be marked down during setup,
If it needs to be marked down, then the stations should not tried to be
> (Happens when station disassociates)
> madwifi_del_key: addr=00:13:ce:ed:28:3c key_idx=0
> ioctl[IEEE80211_IOCTL_DELKEY]: Invalid argument
> I was wondering why is this happening.
> The following doesn't give any error.
> proxy_madwifi_del_key: addr=00:00:00:00:00:00 key_idx=0
> proxy_madwifi_del_key: addr=00:00:00:00:00:00 key_idx=1
> proxy_madwifi_del_key: addr=00:00:00:00:00:00 key_idx=2
> proxy_madwifi_del_key: addr=00:00:00:00:00:00 key_idx=3
> WHY ??????
No idea about this :(
Any help ??
> Thank you,
More information about the Hostap