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


Ignore:
Timestamp:
Jul 15, 2015, 11:04:59 AM (9 years ago)
Author:
chunter
Comment:

--

Legend:

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

    v9 v10  
    3535typedef struct{
    3636        token_end_reservation_reason_t reason;
    37         wlan_mac_low_tx_details low_tx_details;
    3837} ipc_token_end_reservation;
    3938}}}
     
    6867        ipc_msg_to_low.msg_id            = IPC_MBOX_MSG_ID(IPC_MBOX_TOKEN_NEW_RESERVATION);
    6968
     69        //The below chunk of code is just to make sure that we pad an extra u32 word if the
     70        //ipc_token_new_reservation struct is not 32-bit aligned.
    7071        if( (sizeof(u32)*(sizeof(ipc_token_new_reservation)/sizeof(u32))) ==  sizeof(ipc_token_new_reservation) ){
    7172                ipc_msg_to_low.num_payload_words = (sizeof(ipc_token_new_reservation)/sizeof(u32));
     
    7677        ipc_msg_to_low.payload_ptr       = (u32*)(&ipc_payload);
    7778
    78 
     79        //For safety, we will go ahead and disable interrupts while we are processing this function. This function
     80        //iterates through the doubly-linked list of associated stations. If that list were to be modified by an interrupt
     81        //context while this function is running, there may be unexpected results. By disabling interrupts, we know
     82        //that we can trust the doubly-linked list for this entire function context
    7983        curr_interrupt_state = wlan_mac_high_interrupt_stop();
    80 
    81         // Send an IPC message down to CPU_LOW to let it know we are moving to a new
    82         // reservation period.
    8384
    8485        curr_station_info_entry = next_station_info_entry;
     
    9899
    99100        } else {
     101                // It's a STA's reservation
    100102                curr_station_info = (station_info*)(curr_station_info_entry->data);
    101103                if( wlan_mac_high_is_valid_association(&my_bss_info->associated_stations, curr_station_info) ){
     
    191193----
    192194
    193