Questions on libertas driver
Cyril HAENEL
chaenel at free.fr
Mon Jan 28 11:29:17 EST 2008
In fact I modified ALL le16_to_cpu() function calls to implement the
get_unaligned((u16*), to be sure !!
Instead of use get_unaligned, which surely eat cpu time, it cannot be
possible to directly align data used by the driver ? In structure and
other ?
Or maybe it exists an option in the blackfin gcc to do this automaticaly
at compilation ?
Vladimir Davydov a écrit :
>>I become crazy !! :)
>>
>>But I continue to have kernel Oops with non aligned data.
>>The kernel panic happen when I use iwconfig to change the essid. When I
>>use essid "any", we can some communication between the driver and the
>>card, but when I use essid "a3ipWifi", It hangs directly.
>>
>>
>>
>
>About kernel Oops with non aligned data.
>You can try to change following lines in scan.c:
>
>bytesleft = le16_to_cpu(pscan->bssdescriptsize);
>to
>bytesleft = le16_to_cpu(get_unaligned((u16*)&pscan->bssdescriptsize));
>
>
>and
>scanrespsize = le16_to_cpu(resp->size);
>to
>scanrespsize = le16_to_cpu(get_unaligned((u16*)&resp->size));
>
>I don't known why David Woodhouse has changed those lines.
>
>Vladimir
>
>
--
Cyril Haenel
Registered Linux User #332632
More information about the libertas-dev
mailing list