Skip to content

Commit

Permalink
Added set monitor mode call in wpcap.dll.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed May 18, 2016
1 parent 4d828e3 commit e5606a9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions wpcap/libpcap/pcap-win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,11 +568,12 @@ pcap_activate_win32(pcap_t *p)

if (p->opt.rfmon) {
/*
* No monitor mode on Windows. It could be done on
* Vista with drivers that support the native 802.11
* mechanism and monitor mode.
* Monitor mode is supported on Windows Vista and later.
*/
return (PCAP_ERROR_RFMON_NOTSUP);
if (PacketSetMonitorMode(p->adapter, 1) == FALSE)
{
return PCAP_ERROR;
}
}

/* Init WinSock */
Expand Down

0 comments on commit e5606a9

Please sign in to comment.