File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -883,12 +883,17 @@ static void ws_bootstrap_pan_advertisement_analyse_active(struct protocol_interf
883
883
*
884
884
*/
885
885
886
- // Wi-SUN specified functionality, causes extra inconsistencies when we hear higher rank advertisements
886
+ #ifdef WISUN_1_0_ERRATA_FIX
887
+ // All messages are considered as consistent only Solicit will cause inconsistent
888
+ trickle_consistent_heard (& cur -> ws_info -> trickle_pan_advertisement );
889
+ #else
890
+ // Wi-SUN 1.0 specified functionality, causes extra inconsistencies when we hear higher rank advertisements
887
891
if (pan_information -> routing_cost >= ws_bootstrap_routing_cost_calculate (cur )) {
888
892
trickle_consistent_heard (& cur -> ws_info -> trickle_pan_advertisement );
889
893
} else {
890
894
trickle_inconsistent_heard (& cur -> ws_info -> trickle_pan_advertisement , & cur -> ws_info -> trickle_params_pan_discovery );
891
895
}
896
+ #endif
892
897
}
893
898
894
899
static parent_info_t * ws_bootstrap_candidate_parent_get_best (protocol_interface_info_entry_t * cur )
Original file line number Diff line number Diff line change @@ -156,4 +156,11 @@ extern uint8_t DEVICE_MIN_SENS;
156
156
#define WS_PARENT_LIST_MAX_PAN_IN_DISCOVERY 5 // During discovery state how many neighbours per pan
157
157
#define WS_PARENT_LIST_MAX_PAN_IN_ACTIVE 2 // During active state two nodes per pan is allowed
158
158
159
+ /*
160
+ * Modifications for base specification.
161
+ *
162
+ * ERRATA changes after 1.0 specification release.
163
+ */
164
+ #define WISUN_1_0_ERRATA_FIX
165
+
159
166
#endif /* WS_CONFIG_H_ */
You can’t perform that action at this time.
0 commit comments