Changes between Version 15 and Version 16 of 802.11/wlan_exp/app_notes/tutorial_token_mac/CPU_LOW
- Timestamp:
- Jul 15, 2015, 1:50:15 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
802.11/wlan_exp/app_notes/tutorial_token_mac/CPU_LOW
v15 v16 38 38 adjust_reservation_ts_callback = (function_ptr_t)nullCallback; 39 39 allow_new_mpdu_tx = 0; 40 pkt_buf_pending_tx = -1; 40 pkt_buf_pending_tx = -1; // -1 is an invalid pkt_buf index 41 41 }}} 42 42 … … 68 68 {{{ 69 69 #!c 70 70 71 case IPC_MBOX_TOKEN_NEW_RESERVATION: 71 72 new_reservation = (ipc_token_new_reservation*)msg->payload_ptr; … … 80 81 {{{ 81 82 #!c 82 83 // Note: the below function is a copy and paste of the code that was already present in the IPC_MBOX_TX_MPDU_READY case 83 84 void wlan_mac_low_proc_pkt_buf(u16 tx_pkt_buf){ 84 85 u32 status; … … 382 383 ipc_msg_to_high_start.msg_id = IPC_MBOX_MSG_ID(IPC_MBOX_TOKEN_NEW_RESERVATION); 383 384 385 //The below chunk of code is just to make sure that we pad an extra u32 word if the 386 //ipc_token_new_reservation struct is not 32-bit aligned. 384 387 if( (sizeof(u32)*(sizeof(ipc_token_new_reservation)/sizeof(u32))) == sizeof(ipc_token_new_reservation) ){ 385 388 ipc_msg_to_high_start.num_payload_words = (sizeof(ipc_token_new_reservation)/sizeof(u32)); … … 392 395 ipc_msg_to_high_end.msg_id = IPC_MBOX_MSG_ID(IPC_MBOX_TOKEN_END_RESERVATION); 393 396 397 //The below chunk of code is just to make sure that we pad an extra u32 word if the 398 //ipc_token_end_reservation struct is not 32-bit aligned. 394 399 if( (sizeof(u32)*(sizeof(ipc_token_end_reservation)/sizeof(u32))) == sizeof(ipc_token_end_reservation) ){ 395 400 ipc_msg_to_high_end.num_payload_words = (sizeof(ipc_token_end_reservation)/sizeof(u32)); … … 501 506 ipc_msg_to_high.msg_id = IPC_MBOX_MSG_ID(IPC_MBOX_TOKEN_END_RESERVATION); 502 507 508 //The below chunk of code is just to make sure that we pad an extra u32 word if the 509 //ipc_token_end_reservation struct is not 32-bit aligned. 503 510 if( (sizeof(u32)*(sizeof(ipc_token_end_reservation)/sizeof(u32))) == sizeof(ipc_token_end_reservation) ){ 504 511 ipc_msg_to_high.num_payload_words = (sizeof(ipc_token_end_reservation)/sizeof(u32)); … … 559 566 ipc_msg_to_high_start.msg_id = IPC_MBOX_MSG_ID(IPC_MBOX_TOKEN_NEW_RESERVATION); 560 567 568 //The below chunk of code is just to make sure that we pad an extra u32 word if the 569 //ipc_token_new_reservation struct is not 32-bit aligned. 561 570 if( (sizeof(u32)*(sizeof(ipc_token_new_reservation)/sizeof(u32))) == sizeof(ipc_token_new_reservation) ){ 562 571 ipc_msg_to_high_start.num_payload_words = (sizeof(ipc_token_new_reservation)/sizeof(u32));