[prev in list] [next in list] [prev in thread] [next in thread]
List: wireshark-dev
Subject: Re: [Wireshark-dev] Setting OID_DOT11_CURRENT_OPERATION_MODE failed with error code 1
From: Guy Harris <guy () alum ! mit ! edu>
Date: 2016-05-15 0:35:44
Message-ID: 579227B0-EF24-493B-8E50-3D57EBF2523F () alum ! mit ! edu
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic