there is a little Bug in the WlanRateSet Structure.
According to the MSDN Site (
) the member 'uRateSetLength' is the number of bytes of the Array.
Unfortunately this is a bug in the MSDN Documentation and in fact it is the number of Elements in the Array.
This bug was also implemented into the Wrapper.
getter function of "public ushort Rates" (Interop.cs; Line 777)
public ushort Rates
ushort rates = new ushort[rateSetLength];
Array.Copy(rateSet, rates, rates.Length);
I also posted this Documentation bug on the MSDN Forums: