question

moishfrankel-8691 avatar image
0 Votes"
moishfrankel-8691 asked SongZhu-MSFT commented

WlanIhvControl returns 21

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-general
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

There are many reasons for this error, you can refer to 1, 2, 3, 4, 5, then check your own specific reasons for the error.


0 Votes 0 ·

0 Answers