]> The Tcpdump Group git mirrors - libpcap/commit
Fix monitor mode handling with non-mac80211 drivers.
authorGuy Harris <[email protected]>
Mon, 5 Dec 2011 22:17:25 +0000 (14:17 -0800)
committerGuy Harris <[email protected]>
Mon, 5 Dec 2011 22:17:25 +0000 (14:17 -0800)
commit2f272069ea2edd1b3bb897c9777174f8808189ba
tree9d7c1a25cd974f99c4ef632a85a9f98fccc60f2c
parent6151aa3012c169956571c496b701a97e9d3c3055
Fix monitor mode handling with non-mac80211 drivers.

If we don't have any private Wireless Extension ioctls to control radio
headers, we should still try to turn monitor mode off and on.

With the Wireless Extensions, you might not be able to turn monitor mode
on or off if the interface is up, so take it down first and bring it
back up afterwards.

Also add the interface name to the warning messages printed when trying
to restore modes when the program exits.
pcap-linux.c