ndis_events.c and WMI failures

Jouni Malinen j
Sat Feb 16 10:01:21 PST 2008


On Wed, Feb 13, 2008 at 04:22:44PM +0100, Ridouan Agarad wrote:

> So, I've been doing some debugging and it seems that when COM needs to do
> marshaling, the failures occurred. Further looking showed that some function
> calls
> (such as IWbemServices_ExecQuery) passed L"" strings, while BSTR's needed to
> passed. Making a wrapper to convert WCHARs to BSTRs solved the problem and
> the supplicant is now working OK on Windows 2000.

Thanks for figuring this out!

> This being my first interaction with the list and having no idea about the
> regular way to post modified files, I've simply attached the diff for the
> ndis_events.c (from 0.5.9) file for you guys to have a look at. It seems
> that the 0.6.2 binaries suffers from the same issue, but I haven't looked at
> ndis_events.c from 0.6.2 yet

This type of diff file is the preferred way for code submissions.
ndis_events.c is identical in 0.5.x and 0.6.x, so the same fixes apply
to both. I've applied your fixes to 0.6.x and will merge them into
0.5.x, too.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list