[OpenWrt-Devel] calling ioctl with SIOCGIWPRIV parameter; sniffing on monitor mode

2011-11-16 Thread abhinav narain
hi, I am using netgear routers. model: WNDR3700v2 I want to set the wireless interface (ath9k) in monitor mode to sniff the traffic. I am doing the following : 1. Opening a raw socket socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)) 2. making the following ioctl call to connect to device. Device is

Re: [OpenWrt-Devel] calling ioctl with SIOCGIWPRIV parameter; sniffing on monitor mode

2011-11-16 Thread Jo-Philipp Wich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, SIOCGIWPRIV is part of the deprecated wext api which is not fully supported by ath9k. Use nl80211. See wireless.kernel.org for details, also check the source code of the iw utility. ~ Jow -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10

Re: [OpenWrt-Devel] calling ioctl with SIOCGIWPRIV parameter; sniffing on monitor mode

2011-11-16 Thread abhinav narain
hi, Ok. I will look into iw. I am wondering how does pcap sniff on Atheros driver then ? On Wed, Nov 16, 2011 at 1:55 PM, Jo-Philipp Wich x...@subsignal.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, SIOCGIWPRIV is part of the deprecated wext api which is not fully supported