madwifi_process_wpa_ie: Failed to get WPA/RSN IE

Peter Zhou peterzhou2003 at gmail.com
Tue Jan 19 22:26:43 EST 2010


Hi Pavel Roskin.
I debugged again and found the error comes from  set80211priv(struct
madwifi_driver_data *drv, int op, void *data, int len) in driver_madwifi.c
file.

When it run to ioctl(drv->ioctl_sock, op, &iwr) , it return a value of -1,
and then set80211priv() return -1 with the message
ioctl[IEEE80211_IOCTL_SETMLME]: Argument list too long in the end.

I print the value of drv->ioctl_sock and op and it's
drv->ioctl_sock=3,op=35824 in my platform.

Can you give me some ideas to resolve this solution? Thank you very much.


Regards,
Peter Zhou

2010/1/9 Pavel Roskin <proski at gnu.org>

> On Wed, 2010-01-06 at 11:16 +0800, Peter Zhou wrote:
>
> > ioctl[unknown???]: Invalid argument
> > madwifi_process_wpa_ie: Failed to get WPA/RSN IE
>
> It looks like the IEEE80211_IOCTL_GETWPAIE request is failing with
> -EINVAL.  MadWifi would process it in ieee80211_ioctl_getwpaie(), which
> would fail if the request size mismatches what MadWifi expects.
>
> Maybe sizeof(struct ieee80211req_wpaie) is different in userspace and in
> the kernel for your platform?
>
> Perhaps the easiest solution would be to apply this patch to MadWifi and
> recompile both MadWifi and hostapd.  Please report if it made any
> difference for you.
>
> If it doesn't help, please print iwr->u.data.length and sizeof(wpaie) in
> the beginning of ieee80211_ioctl_getwpaie() in MadWifi.
>
> Index: net80211/ieee80211_ioctl.h
> ===================================================================
> --- net80211/ieee80211_ioctl.h  (revision 4103)
> +++ net80211/ieee80211_ioctl.h  (working copy)
> @@ -287,7 +287,7 @@
>        u_int8_t        wpa_macaddr[IEEE80211_ADDR_LEN];
>        u_int8_t        wpa_ie[IEEE80211_MAX_OPT_IE];
>        u_int8_t        rsn_ie[IEEE80211_MAX_OPT_IE];
> -};
> +} __packed;
>
>  /*
>  * Retrieve per-node statistics.
>
> --
> Regards,
> Pavel Roskin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20100120/e2b6c9d3/attachment.htm 


More information about the HostAP mailing list