net-esp-hosted: fix set link down on disconnect.

This commit is contained in:
Dario Nieuwenhuis 2023-08-23 11:37:50 +02:00
parent 7bff2ebab3
commit a6d22e199a

View File

@ -82,7 +82,7 @@ impl<'a> Control<'a> {
pub async fn disconnect(&mut self) -> Result<(), Error> { pub async fn disconnect(&mut self) -> Result<(), Error> {
let req = proto::CtrlMsgReqGetStatus {}; let req = proto::CtrlMsgReqGetStatus {};
ioctl!(self, ReqDisconnectAp, RespDisconnectAp, req, resp); ioctl!(self, ReqDisconnectAp, RespDisconnectAp, req, resp);
self.state_ch.set_link_state(LinkState::Up); self.state_ch.set_link_state(LinkState::Down);
Ok(()) Ok(())
} }