Changes between Version 9 and Version 10 of 802.11/wlan_exp/app_notes/tutorial_token_mac/CPU_LOW


Ignore:
Timestamp:
Jul 10, 2015, 1:38:46 PM (9 years ago)
Author:
chunter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 802.11/wlan_exp/app_notes/tutorial_token_mac/CPU_LOW

    v9 v10  
    489489----
    490490
    491 In the previous change, {{{reservation_ts_end}}} was updated with a timestamp designating the end of the current token reservation period. Now we need to check this variable against the current timestamp and
     491In the previous change, {{{reservation_ts_end}}} was updated with a timestamp designating the end of the current token reservation period. Now we need to check this variable against the current timestamp and, if the duration has expired, disallow any new MPDU transmissions and notify CPU_HIGH that the reservation period is over. Create a new function, {{{poll_reservation_time}}}, that does exactly that:
    492492
    493493{{{
     
    516516        }
    517517}
    518 }}}
     518
     519Now we need to call the new function whenever we can. In the primary {{{while(1)}}} loop of the {{{main()}}} function of NoMAC, simply add a call to {{{poll_reservation_time()}}}.
     520
     521----
     522
     523{{{
     524#!c
     525
     526}}}
     527
     528----
     529}}}