Reported by a Npcap OEM licensee. If a capture handle is open, disconnecting and reconnecting a WiFi adapter appears to prevent any packets from being received by that adapter until the npcap service is restarted. Reproduction steps provided by the user:
Windows 10 LTSC 2021 VM (21H2), with Npcap 1.71.
NETGEAR - AC1200 USB adapter, but also reproduced on a laptop with built-in WiFi.
- Ensure WiFi adapter is enabled and associated with an access point.
- Launch a program that:
- opens a pcap handle for the WiFi adapter (pcap_create)
- activates the handle (pcap_activate)
- sleeps forever
- Disable the WiFi adapter (e.g. via PowerShell Disable-NetAdapter)
- Enable the WiFi adapter (e.g. via Enable-NetAdapter)
- Re-associate with the WiFi access point
External packet capture indicates that DHCP request is sent and response is received, but Windows is unable to assign an IP address, indicating that the packet was not delivered up the stack. Interestingly, performing a netsh trace capture during the test prevented the issue from presenting.
Reported by a Npcap OEM licensee. If a capture handle is open, disconnecting and reconnecting a WiFi adapter appears to prevent any packets from being received by that adapter until the npcap service is restarted. Reproduction steps provided by the user:
External packet capture indicates that DHCP request is sent and response is received, but Windows is unable to assign an IP address, indicating that the packet was not delivered up the stack. Interestingly, performing a
netsh tracecapture during the test prevented the issue from presenting.