mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
refresh the wlan stats cache on resume...
This commit is contained in:
parent
ca5455635b
commit
8f3aa84e6d
1 changed files with 1 additions and 0 deletions
|
|
@ -162,6 +162,7 @@ pub(crate) fn connection_manager(sid: xous::SID, activity_interval: Arc<AtomicU3
|
||||||
// this doesn't follow the usual "suspender" pattern. In fact, we don't do anything special on suspend;
|
// this doesn't follow the usual "suspender" pattern. In fact, we don't do anything special on suspend;
|
||||||
// however, on resume, check with the EC and see where the link state ended up.
|
// however, on resume, check with the EC and see where the link state ended up.
|
||||||
let (res_linkstate, _res_dhcpstate) = com.wlan_sync_state().unwrap();
|
let (res_linkstate, _res_dhcpstate) = com.wlan_sync_state().unwrap();
|
||||||
|
wifi_stats_cache = com.wlan_status().unwrap();
|
||||||
match res_linkstate {
|
match res_linkstate {
|
||||||
LinkState::Connected => {
|
LinkState::Connected => {
|
||||||
match wifi_state {
|
match wifi_state {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue