Search Linux Wireless

Some confusing segment of Beacon

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, 

I'm output the sk_buff at ieee80211_beacon_get_tim() in mac80211/tx.c

but I'm confused about some segments.

According to the book, 802.11 wireless networks: the definitive guide,  

-----------------------------------------------------------------------
Frame Control segment:
The two bytes in my condition should be 0000 0000 1000 0000 to indicate
that it is a management Beacon frame. 

However, the two bytes I obtain is      1000 0000 0000 0000 
------------------------------------------------------------------------

------------------------------------------------------------------------
Beacon Duration:
Two bytes in book should be 0000 0000 0010 0110 to indicate 100 ms
between two beacon from the 32th bytes but I calculate that segment
starts from 31th bytes. 
-------------------------------------------------------------------------



------------------ What I add into ieee80211_beacon_get_tim()---------

    printk("\n===============get_tim====================\n");  
    printk("     len = %u\n", skb->len);
    printk(" datalen = %u\n", skb->data_len);
    printk("mac len = %u\n", (unsigned int)skb->mac_len);
    printk("hdr len = %u\n", (unsigned int)skb->hdr_len);
    printk("     head= %u\n", (unsigned int)skb->head);
    printk("network head= %u\n", (unsigned int)skb->network_header); 
    printk("mac  head= %u\n", (unsigned int)skb->mac_header); 
    printk("data head= %u\n", (unsigned int)skb->data); 
    printk("tail head= %u\n", (unsigned int)skb->tail); 
    printk("end  head= %u\n", (unsigned int)skb->end); 

-----------------------------------------------------------------------

Hence, I’m wondering whether there are errors in my approach of
interpreting the data bytes. 



Yunong Pang
Regards,



--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux