Changes between Version 8 and Version 9 of 802.11/wlan_exp/app_notes/tutorial_token_mac/CPU_HIGH
- Timestamp:
- Jul 15, 2015, 9:18:50 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
802.11/wlan_exp/app_notes/tutorial_token_mac/CPU_HIGH
v8 v9 13 13 14 14 === Code Common to CPU_HIGH and CPU_LOW === 15 Changes should be made to [browser:ReferenceDesigns/w3_802.11/c/wlan_mac_common/include/wlan_mac_ipc_util.h wlan_mac_ipc_util.h].15 Changes should be made to {{{wlan_mac_ipc_util.h}}} in the project SDK workspace zip. 16 16 17 17 ---- 18 18 19 We need to define two new types of IPC messages between CPU_LOW and CPU_HIGH. The first, which we will call {{{TOKEN_NEW_RESERVATION}}}, will primarily be used by an AP when it decrees that a token reservation period now belongs to one of the devices on its network. The second, which we will call {{{TOKEN_END_RESERVATION}}}, will primarily be used by an AP's CPU_LOW project to indicate to the AP that the current reservation period has ended and it should move on to the next device in its association table. Add the following snippet of code to [browser:ReferenceDesigns/w3_802.11/c/wlan_mac_common/include/wlan_mac_ipc_util.h wlan_mac_ipc_util.h]:19 We need to define two new types of IPC messages between CPU_LOW and CPU_HIGH. The first, which we will call {{{TOKEN_NEW_RESERVATION}}}, will primarily be used by an AP when it decrees that a token reservation period now belongs to one of the devices on its network. The second, which we will call {{{TOKEN_END_RESERVATION}}}, will primarily be used by an AP's CPU_LOW project to indicate to the AP that the current reservation period has ended and it should move on to the next device in its association table. Add the following snippet of code to {{{wlan_mac_ipc_util.h}}}: 20 20 21 21 {{{ … … 44 44 45 45 === Access Point (AP) === 46 Changes should be made to [browser:ReferenceDesigns/w3_802.11/c/wlan_mac_high_ap/wlan_mac_ap.c wlan_mac_ap.c].46 Changes should be made to {{{wlan_mac_ap.c}}} in the project SDK workspace zip. 47 47 48 48 ---- … … 145 145 146 146 === MAC High Framework === 147 Changes should be made to [browser:ReferenceDesigns/w3_802.11/c/wlan_mac_high_framework/wlan_mac_high.c wlan_mac_high.c].147 Changes should be made to {{{wlan_mac_high.c]}}} in the project SDK workspace zip. 148 148 149 149 ---- 150 150 151 The first thing we need to do implement the callback structure that we assumed in our AP modifications. First, we should add a new top-level global to [browser:ReferenceDesigns/w3_802.11/c/wlan_mac_high_framework/wlan_mac_high.c wlan_mac_high.c]at the top of the file:151 The first thing we need to do implement the callback structure that we assumed in our AP modifications. First, we should add a new top-level global to {{{wlan_mac_high.c]}}} at the top of the file: 152 152 153 153 {{{ … … 192 192 193 193 194