The shared cell scheduled by 6P is dedicated cell not an anycast type cell.
@@ -1590,12 +1590,7 @@ bool sixtop_addCells(
isShared = TRUE;
}
- if (isShared){
- memset(&temp_neighbor,0,sizeof(temp_neighbor));
- temp_neighbor.type = ADDR_ANYCAST;
- } else {
memcpy(&temp_neighbor,previousHop,sizeof(open_addr_t));
- }
hasCellsAdded = FALSE;
// add cells to schedule
@@ -1622,27 +1617,10 @@ bool sixtop_removeCells(
uint8_t cellOptions
){
uint8_t i;
- bool isShared;
open_addr_t temp_neighbor;
bool hasCellsRemoved;
- // translate cellOptions to cell type
- if (cellOptions == LINKOPTIONS_TX){
- isShared = FALSE;
- }
- if (cellOptions == LINKOPTIONS_RX){
- isShared = FALSE;
- }
- if (cellOptions == (LINKOPTIONS_TX | LINKOPTIONS_RX | LINKOPTIONS_SHARED)){
- isShared = TRUE;
- }
-
- if (isShared){
- memset(&temp_neighbor,0,sizeof(temp_neighbor));
- temp_neighbor.type = ADDR_ANYCAST;
- } else {
memcpy(&temp_neighbor,previousHop,sizeof(open_addr_t));
- }
hasCellsRemoved = FALSE;
// delete cells from schedule
