Changes between Version 9 and Version 10 of 802.11/wlan_exp/app_notes/tutorial_token_mac/CPU_HIGH
- Timestamp:
- Jul 15, 2015, 11:04:59 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
802.11/wlan_exp/app_notes/tutorial_token_mac/CPU_HIGH
v9 v10 35 35 typedef struct{ 36 36 token_end_reservation_reason_t reason; 37 wlan_mac_low_tx_details low_tx_details;38 37 } ipc_token_end_reservation; 39 38 }}} … … 68 67 ipc_msg_to_low.msg_id = IPC_MBOX_MSG_ID(IPC_MBOX_TOKEN_NEW_RESERVATION); 69 68 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. 70 71 if( (sizeof(u32)*(sizeof(ipc_token_new_reservation)/sizeof(u32))) == sizeof(ipc_token_new_reservation) ){ 71 72 ipc_msg_to_low.num_payload_words = (sizeof(ipc_token_new_reservation)/sizeof(u32)); … … 76 77 ipc_msg_to_low.payload_ptr = (u32*)(&ipc_payload); 77 78 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 79 83 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 new82 // reservation period.83 84 84 85 curr_station_info_entry = next_station_info_entry; … … 98 99 99 100 } else { 101 // It's a STA's reservation 100 102 curr_station_info = (station_info*)(curr_station_info_entry->data); 101 103 if( wlan_mac_high_is_valid_association(&my_bss_info->associated_stations, curr_station_info) ){ … … 191 193 ---- 192 194 193