Skip to content

Commit

Permalink
Wi-sun config sol message handler update
Browse files Browse the repository at this point in the history
Stop creating new neighbor when RX config solication message.

Reset Config sol triggle now without neighbor check.

Change-Id: Idfccf075d175028900d1bdb5da2018f01c3bfd35
  • Loading branch information
Juha Heiskanen committed May 20, 2019
1 parent c69a41d commit 794e053
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/6LoWPAN/ws/ws_bootstrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1138,13 +1138,13 @@ static void ws_bootstrap_pan_config_solicit_analyse(struct protocol_interface_in
*/

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

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


/*
* A consistent transmission is defined as a PAN Configuration Solicit with
Expand Down

0 comments on commit 794e053

Please sign in to comment.