Wireshark mailing list archives

Re: Setting OID_DOT11_CURRENT_OPERATION_MODE failed with error code 1


From: Guy Harris <guy () alum mit edu>
Date: Sat, 14 May 2016 17:35:44 -0700

On May 8, 2016, at 10:59 PM, Yang Luo <hsluoyb () gmail com> 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?
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: