Skip to content

Commit 794e053

Browse files
author
Juha Heiskanen
committed
Wi-sun config sol message handler update
Stop creating new neighbor when RX config solication message. Reset Config sol triggle now without neighbor check. Change-Id: Idfccf075d175028900d1bdb5da2018f01c3bfd35
1 parent c69a41d commit 794e053

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/6LoWPAN/ws/ws_bootstrap.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,13 +1138,13 @@ static void ws_bootstrap_pan_config_solicit_analyse(struct protocol_interface_in
11381138
*/
11391139

11401140
llc_neighbour_req_t neighbor_info;
1141-
if (!ws_bootstrap_neighbor_info_request(cur, data->SrcAddr, &neighbor_info, true)) {
1142-
return;
1141+
if (ws_bootstrap_neighbor_info_request(cur, data->SrcAddr, &neighbor_info, false)) {
1142+
etx_lqi_dbm_update(cur->id, data->mpduLinkQuality, data->signal_dbm, neighbor_info.neighbor->index);
1143+
ws_neighbor_class_neighbor_unicast_time_info_update(neighbor_info.ws_neighbor, ws_utt, data->timestamp);
1144+
ws_neighbor_class_neighbor_unicast_schedule_set(neighbor_info.ws_neighbor, ws_us);
11431145
}
11441146

1145-
etx_lqi_dbm_update(cur->id, data->mpduLinkQuality, data->signal_dbm, neighbor_info.neighbor->index);
1146-
ws_neighbor_class_neighbor_unicast_time_info_update(neighbor_info.ws_neighbor, ws_utt, data->timestamp);
1147-
ws_neighbor_class_neighbor_unicast_schedule_set(neighbor_info.ws_neighbor, ws_us);
1147+
11481148

11491149
/*
11501150
* A consistent transmission is defined as a PAN Configuration Solicit with

0 commit comments

Comments
 (0)