module/network: reset signal strength and RX+TX bitrates on disconnect

This commit is contained in:
Daniel Eklöf 2021-08-27 15:38:48 +02:00
parent 066427d77a
commit e8a2f8df9a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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;