WlanIhvControl returns 21

moish frankel 1 Reputation point
2021-04-20T14:20:22.36+00:00

Hi,
I'm using the following code for sending OID to the WiFi driver:
_wlanapi = ctypes.CDLL('wlanapi.dll')
...
...
res = _wlanapi.WlanIhvControl(handle, ctypes.byref(guid), 1, request_len,
request_p, request_len, request_p,
ctypes.byref(written))

it is working fine for some OID (0xFF40020F) that I'm sending, but for others (0xFF100450) it doesn't and it returns 21
in Microsoft documentation 21, is not one of the function return values
according to Microsoft documentation 21 means:
ERROR_NOT_READY

21 (0x15)

The device is not ready.

does anyone knows what does it mean if WlanIhvControl returns 21?
thanks
Moish

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,428 questions
{count} votes