mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-23 20:35:42 +02:00
module/network: reset signal strength and RX+TX bitrates on disconnect
This commit is contained in:
parent
066427d77a
commit
e8a2f8df9a
1 changed files with 2 additions and 0 deletions
|
@ -1043,6 +1043,8 @@ parse_genl_reply(struct module *mod, const struct nlmsghdr *hdr, size_t len)
|
|||
mtx_lock(&mod->lock);
|
||||
free(m->ssid);
|
||||
m->ssid = NULL;
|
||||
m->signal_strength_dbm = 0;
|
||||
m->rx_bitrate = m->tx_bitrate = 0;
|
||||
mtx_unlock(&mod->lock);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue