From a6d22e199aa2fe7e76bffa104911d954151a03ef Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Wed, 23 Aug 2023 11:37:50 +0200 Subject: [PATCH] net-esp-hosted: fix set link down on disconnect. --- embassy-net-esp-hosted/src/control.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(()) }