mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
net-esp-hosted: fix set link down on disconnect.
This commit is contained in:
parent
7bff2ebab3
commit
a6d22e199a
@ -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(())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user