locked
writing wifi OID from windows 10 desktop user mode RRS feed

  • Question

  • Hi Everyone,

        i can access native 80211 oid  OID_DOT11_CURRENT_CHANNEL through ndisuio.sys or ndisport.sys(windows sample proctol driver).

       like this:

    bSuccess = (BOOLEAN)DeviceIoControl(
    Handle,
    IOCTL_NDISPROT_QUERY_OID_VALUE,
    (LPVOID)QueryBuffer,
    bufferLen,
    (LPVOID)QueryBuffer,
    bufferLen,
    &BytesReturned,
    NULL);

        When i access OID_DOT11_DISCONNECT_REQUEST (set oid  IOCTL_NDISPROT_SET_OID_VALUE), it will fail.

        In ndisprot.sys, i see the log,  NdisOidRequest return NDIS_STATUS_INVALID_OID.

        But i use  OID_GEN_SUPPORTED_LIST to get all support oids, OID_DOT11_DISCONNECT_REQUEST in the support list. 

        how can i call write a applicant to disconnect wifi connection through ndisuio.sys or ndisprot.sys?

        please help.

        Thanks in advances!


    • Edited by jim-luo Tuesday, December 8, 2020 9:53 AM
    Tuesday, December 8, 2020 9:52 AM

All replies

  • Is the driver actually "Native wi-fi" or (newer) WDI?

    If the latter, it may not handle OID_DOT11_DISCONNECT_REQUEST: see

    https://docs.microsoft.com/en-us/windows-hardware/drivers/network/wdi-oid-to-wdi-message-mapping

    Why it is listed as supported in this case... no idea. Maybe for compatibility. Wi-fi is a strange can of worms.

    -- pa

    Sunday, December 13, 2020 11:06 PM
  • my driver is WDI.

    is there a way to access WDI OID from ndisuio.sys or ndisport.sys?

    i want to control wifi connect/disconnect by myself, not through Microsoft native wifi apis.

    Monday, December 21, 2020 3:39 AM