diff --git a/embassy-net-esp-hosted/src/control.rs b/embassy-net-esp-hosted/src/control.rs index b8026611b..ce6636a8e 100644 --- a/embassy-net-esp-hosted/src/control.rs +++ b/embassy-net-esp-hosted/src/control.rs @@ -82,7 +82,7 @@ impl<'a> Control<'a> { pub async fn disconnect(&mut self) -> Result<(), Error> { let req = proto::CtrlMsgReqGetStatus {}; ioctl!(self, ReqDisconnectAp, RespDisconnectAp, req, resp); - self.state_ch.set_link_state(LinkState::Up); + self.state_ch.set_link_state(LinkState::Down); Ok(()) }