Skip to content

Commit c97695c

Browse files
author
Juha Heiskanen
committed
Bug fix: EAPOL parent compare fix
Added check that if Compared parent tx fail count is smaller return true.
1 parent e283e62 commit c97695c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
### Bug fixes
1515
* Added ignoring of retry messages from RADIUS server when waiting EAP-TLS
1616
* Removed empty EAPOL-key message send after 4WH completion to nodes on relay
17+
* EAPOL parent candidate compare fix for better TX failure count
1718
* Fixed channel mask usage with OFDM configurations
1819

1920

source/6LoWPAN/ws/ws_bootstrap.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,6 +1445,10 @@ static bool ws_bootstrap_candidate_parent_compare(parent_info_t *p1, parent_info
14451445
return false;
14461446
}
14471447

1448+
if (p2->tx_fail < p1->tx_fail) {
1449+
return true;
1450+
}
1451+
14481452
if (p1->link_acceptable && !p2->link_acceptable) {
14491453
// Link acceptable is always better than not
14501454
return true;

0 commit comments

Comments
 (0)