On May 8, 2016, at 10:59 PM, Yang Luo <[email protected]> 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 <[email protected]>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:[email protected]?subject=unsubscribe

Reply via email to