Some confusing segment of Beacon

From: pangyunong <hidden>
Date: 2011-08-25 16:32:12

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,


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help