aboutsummaryrefslogtreecommitdiff
path: root/cyw43/src/control.rs
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2025-12-07 23:11:31 +0000
committerdiogo464 <[email protected]>2025-12-07 23:25:09 +0000
commit15947259e80f9440b354c58a4902892999d1ebe4 (patch)
tree2a5320b44e841e5d4c3dd909ac35956a954aeeec /cyw43/src/control.rs
parentb9e467bdfe44e51a8b633040d9fe9cd43c581d36 (diff)
cyw43: update link status on LINK eventcyw43-link-status-update
currently the cyw43 driver only sets the link state in src/control.rs:397 when a join is successful and stays up after that regardless of the actual state of the connection. this commit changes that so that the link state is updated based on LINK events the same way that it is done in https://github.com/georgerobotics/cyw43-driver/blob/dd7568229f3bf7a37737b9e1ef250c26efe75b23/src/cyw43_ctrl.c#L402
Diffstat (limited to 'cyw43/src/control.rs')
-rw-r--r--cyw43/src/control.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/cyw43/src/control.rs b/cyw43/src/control.rs
index 219198d1f..141aeb503 100644
--- a/cyw43/src/control.rs
+++ b/cyw43/src/control.rs
@@ -394,7 +394,6 @@ impl<'a> Control<'a> {
394 self.events.mask.disable_all(); 394 self.events.mask.disable_all();
395 if status == EStatus::SUCCESS { 395 if status == EStatus::SUCCESS {
396 // successful join 396 // successful join
397 self.state_ch.set_link_state(LinkState::Up);
398 debug!("JOINED"); 397 debug!("JOINED");
399 Ok(()) 398 Ok(())
400 } else { 399 } else {