[tcpdump-workers] Missing packet fields in big endian with ath9k

2013-04-26 Thread Luis Correia
Hi all! I'm doing a project of mine. It's about guiding a robot in my living room using wifi. At first I tried to use two raspberry pi with a wifi dongle (ath9k-htc) and libpcap to capture wifi packets and read the rssi from my robot mac address. It works fine. But then I thought in using OpenWRT

Re: [tcpdump-workers] Missing packet fields in big endian with ath9k

2013-04-26 Thread Luis Correia
Hi Michael, thnks for replying. I check for link type this way: (pcap_datalink(dev_handler) == DLT_IEEE802_11) , So i'm pretty sure its the right data link. Unless pcap_datalink() is broken.. Meanwhile I've media some progress by looking at iwcap (https://dev.openwrt.org/browser/trunk/package/iw

Re: [tcpdump-workers] Missing packet fields in big endian with ath9k

2013-04-27 Thread Luis Correia
Hi Harris, thnks for your help. On Apr 27, 2013, at 2:03 AM, Guy Harris wrote: > > On Apr 26, 2013, at 11:50 AM, Luis Correia wrote: > >> I check for link type this way: >> (pcap_datalink(dev_handler) ==DLT_IEEE802_11) , >> So i'm pretty sure its the righ