Changes between Version 9 and Version 10 of 802.11/wlan_exp/app_notes/tutorial_token_mac/CPU_LOW
- Timestamp:
- Jul 10, 2015, 1:38:46 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
802.11/wlan_exp/app_notes/tutorial_token_mac/CPU_LOW
v9 v10 489 489 ---- 490 490 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 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, 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: 492 492 493 493 {{{ … … 516 516 } 517 517 } 518 }}} 518 519 Now 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 }}}