Wireshark-dev: Re: [Wireshark-dev] Setting OID_DOT11_CURRENT_OPERATION_MODE failed with error c
On May 8, 2016, at 10:59 PM, Yang Luo <hsluoyb@xxxxxxxxx> wrote:
> I'm adding set wireless adapter operation mode function to WlanHelper tool (shipped with Npcap). I called PacketRequest in packet.dll to do the OID setting and getting.
>
> The code is here:
> https://github.com/nmap/npcap/blob/master/packetWin7/WlanHelper/WlanHelper/Tool.cpp#L257-L301
>
> My system is Win10 x64 with a Atheros wireless card. I can successfully get the operation mode, but the setting to monitor mode fails with error code 1 (from GetLastError).
That's ERROR_INVALID_FUNCTION.
Presumably
> However, I can successfully set operation mode using WlanSetInterface call (https://github.com/nmap/npcap/blob/master/packetWin7/WlanHelper/WlanHelper/WlanHelper.cpp#L422-L450)
means that the adapter *does* support monitor mode.
Somebody else had a similar problem:
http://www.devsuperpage.com/search/Articles.aspx?G=8&ArtID=1645342
with some other driver with a "device driver" upper half and an NDIS lower half - they could get OIDs, but trying to set the OID_802_11_BSSID OID failed.
Do you know which call in the driver is failing?