nmap / npcap

Nmap Project's Windows packet capture and transmission library
https://npcap.com
Other
3.03k stars 520 forks source link

Npcap: Channel support for 40 and 80 MHz #95

Open taismi opened 7 years ago

taismi commented 7 years ago

Does Npcap support 40 and 80 MHz wide channels?

I'm testing my Netgear A6200 (Broadcom BCM43526).

Seems that VHT/802.11ac is not supported but HT/802.11n is.

C:\Windows\System32\Npcap>WlanHelper.exe 8c309594-364d-425a-98f7-7ba157b84aa6 mode
monitor

C:\Windows\System32\Npcap>WlanHelper.exe 8c309594-364d-425a-98f7-7ba157b84aa6 modus
ht, ofdm, erp, hrdsss

C:\Windows\System32\Npcap>WlanHelper.exe 8c309594-364d-425a-98f7-7ba157b84aa6 modu
irbaseband

I'm trying to use channels 36+40 (40 MHz).

C:\Windows\System32\Npcap>WlanHelper.exe 8c309594-364d-425a-98f7-7ba157b84aa6 channel 36+40
Success
C:\Windows\System32\Npcap>WlanHelper.exe 8c309594-364d-425a-98f7-7ba157b84aa6 channel
36

I also tested this way.


C:\Windows\System32\Npcap>WlanHelper.exe 8c309594-364d-425a-98f7-7ba157b84aa6 modu ht
Success

C:\Windows\System32\Npcap>WlanHelper.exe 8c309594-364d-425a-98f7-7ba157b84aa6 modu
ht

C:\Windows\System32\Npcap>WlanHelper.exe 8c309594-364d-425a-98f7-7ba157b84aa6 channel 36+40
Error: makeOIDRequest::My_PacketRequest error, NTSTATUS error code = 0xc0232002 (Langaton lõhiverkkoliittymõ on suljettu, joten se ei tue pyydettyõ toimintoa)
Failure

C:\Windows\System32\Npcap>WlanHelper.exe 8c309594-364d-425a-98f7-7ba157b84aa6 channel 36
Error: makeOIDRequest::My_PacketRequest error, NTSTATUS error code = 0xc0232002 (Langaton lõhiverkkoliittymõ on suljettu, joten se ei tue pyydettyõ toimintoa)
Failure

Ht or irbaseband I get this error when using freq.

C:\Windows\System32\Npcap>WlanHelper.exe 8c309594-364d-425a-98f7-7ba157b84aa6 freq
Error: makeOIDRequest::My_PacketRequest error, NTSTATUS error code = 0xc0010015 (The data supplied at InformationBuffer in the given NDIS_OID_REQUEST structure is invalid for the given OID_XXX code.)
Failure
hsluoyz commented 7 years ago

My knowledge about 802.11 is still very limited. But you set the channel to 36+40 is surely wrong, because inside WlanHelper.exe, it accepts a int as the channel. So 36+40 won't be valid. What does 36+40 mean? two channels?

taismi commented 7 years ago

36 is one 20 MHz channel. Adjacent channels can be bonded together. For 802.11ac:

There is also primary and secondary channel. http://www.revolutionwifi.net/revolutionwifi/2013/03/80211ac-channel-planning.html

In Linux and iw 802.11n channels are defined like this http://wlanimp.blogspot.fi/2014/05/give-you-wlan-nic-monitor-job.html

guyharris commented 4 years ago

Does Microsoft even support 802.11ac with the "Native WiFi" stuff Npcap uses for raw capture? Microsoft are deprecating "Native WiFi", so the ability to capture in monitor mode at all may not stay around forever.