#617: Wireless packets disapear probably at the receiver
-----------------------------------+----------------------------------------
      Reporter:  [EMAIL PROTECTED]  |       Owner:             
          Type:  defect            |      Status:  new        
      Priority:  major             |   Milestone:             
     Component:  madwifi: other    |     Version:  trunk      
    Resolution:                    |    Keywords:  lost packet
Patch_attached:  0                 |  
-----------------------------------+----------------------------------------
Comment (by [EMAIL PROTECTED]):

 I believe that I found the problem although I am not exactly wure why I
 see this statistics. Anyway, the macro that checks that the sequence
 number is not duplicate defines in ieee80211.h as follows:
  #define        IEEE80211_SEQ_LEQ(a,b)  ((int)((a)-(b)) <= 0)

 and is called from ieee80211_input.c as follows:

    if ((wh->i_fc[1] & IEEE80211_FC1_RETRY) &&
    IEEE80211_SEQ_LEQ(rxseq, ni->ni_rxseqs[tid]))

 This will not work well when the sequence number wraps around (from 4095
 to 0).

 I believe that the macro definition should be:
  #define        IEEE80211_SEQ_LEQ(a,b)  ((int)((a)-(b)) == 0)

 Indeed, trying this eliminates the dropped packets.
 I still do not understand why it happeneds so infrequently (about 8
 packets per million).

-- 
Ticket URL: <http://madwifi.org/ticket/617>
MadWifi <http://madwifi.org/>
Multiband Atheros Driver for Wireless Fidelity
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Madwifi-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/madwifi-tickets

Reply via email to