Changes between Version 11 and Version 12 of 802.11/wlan_exp/app_notes/tutorial_token_mac/CPU_LOW


Ignore:
Timestamp:
Jul 10, 2015, 2:18:25 PM (9 years ago)
Author:
chunter
Comment:

--

Legend:

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

    v11 v12  
    615615                        wlan_mac_tx_ctrl_B_start(0);
    616616
    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 
    625617                        //Since this is our reservation period, we are now allowed to transmit
    626618                        in_reservation = 1;
     
    683675----
    684676
    685 
     677Finally, 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
     682void adjust_reservation_ts_end(s64 adjustment){
     683        reservation_ts_end += adjustment;
     684}
     685}}}
     686
     687We assigned this function to the new callback in the MAC Low Framework in a previous change.
     688