Add channel utilzation to ap struct

This commit is contained in:
PolynomialDivision 2017-09-07 21:03:17 +02:00
parent 32c5de1a5d
commit e0ee421722
2 changed files with 2 additions and 2 deletions

View file

@ -862,7 +862,7 @@ void print_ap_entry(ap entry) {
char mac_buf_ap[20];
sprintf(mac_buf_ap, "%x:%x:%x:%x:%x:%x", MAC2STR(entry.bssid_addr));
printf("bssid_addr: %s, freq: %d, ht: %d, vht: %d, ch_utilz: %d\n",
printf("bssid_addr: %s, freq: %d, ht: %d, vht: %d, chan_utilz: %d\n",
mac_buf_ap, entry.freq, entry.ht, entry.vht, entry.channel_utilization);
}

View file

@ -484,7 +484,7 @@ int parse_to_clients(struct blob_attr *msg, int do_kick, uint32_t id) {
if((tb[CLIENT_TABLE_CHAN_UTIL]))
{
//printf("\n\nCHANNEL UTILIZAITON: %d\n\n", blobmsg_get_u8(tb[CLIENT_TABLE_CHAN_UTIL]));
printf("CHANNEL UTILIZAITON: %d\n", blobmsg_get_u8(tb[CLIENT_TABLE_CHAN_UTIL]));
}
if (do_kick) {