Changes between Version 11 and Version 12 of 802.11/wlan_exp/app_notes/tutorial_token_mac/CPU_LOW
- Timestamp:
- Jul 10, 2015, 2:18:25 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
802.11/wlan_exp/app_notes/tutorial_token_mac/CPU_LOW
v11 v12 615 615 wlan_mac_tx_ctrl_B_start(0); 616 616 617 do{618 mac_hw_status = wlan_mac_get_status();619 620 if( (mac_hw_status & WLAN_MAC_STATUS_MASK_TX_B_STATE) == WLAN_MAC_STATUS_TX_B_STATE_DO_TX ) {621 break;622 }623 } while(mac_hw_status & WLAN_MAC_STATUS_MASK_TX_B_PENDING);624 625 617 //Since this is our reservation period, we are now allowed to transmit 626 618 in_reservation = 1; … … 683 675 ---- 684 676 685 677 Finally, we need to deal with the fact that our timebase might change on the node. We set up a callback for reporting an upcoming timebase change earlier. We can adjust the {{{reservation_ts_end}}} timestamp with whatever the change will be. Create the following function in NoMAC: 678 679 {{{ 680 #!c 681 682 void adjust_reservation_ts_end(s64 adjustment){ 683 reservation_ts_end += adjustment; 684 } 685 }}} 686 687 We assigned this function to the new callback in the MAC Low Framework in a previous change. 688