1
Vote

WlanRateSet Structure

description

Hi,

there is a little Bug in the WlanRateSet Structure.
According to the MSDN Site ( http://msdn.microsoft.com/en-us/library/windows/desktop/aa370026(v=vs.85).aspx ) 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)

Bugfix:
            public ushort[] Rates
            {
                get
                {
                    ushort[] rates = new ushort[rateSetLength];
                    Array.Copy(rateSet, rates, rates.Length);
                    return rates;
                }
            }
I also posted this Documentation bug on the MSDN Forums:
http://social.msdn.microsoft.com/Forums/en-US/0da4b443-e999-42c0-beaa-39986c250533/wlanrateset-structure?forum=windowssdk

Best regards,
Andreas

comments