mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:49:24 +01:00
station: Pretty-print the estimated BSS data rate
This commit is contained in:
parent
647f1e9b91
commit
03b48b5621
@ -34,6 +34,7 @@
|
||||
|
||||
#include <ell/ell.h>
|
||||
|
||||
#include "ell/useful.h"
|
||||
#include "src/util.h"
|
||||
#include "src/iwd.h"
|
||||
#include "src/module.h"
|
||||
@ -297,12 +298,14 @@ static struct network *station_add_seen_bss(struct station *station,
|
||||
enum security security;
|
||||
const char *path;
|
||||
char ssid[33];
|
||||
uint32_t kbps100 = DIV_ROUND_CLOSEST(bss->data_rate, 100000);
|
||||
|
||||
l_debug("Processing BSS '%s' with SSID: %s, freq: %u, rank: %u, "
|
||||
"strength: %i",
|
||||
"strength: %i, data_rate: %u.%u",
|
||||
util_address_to_string(bss->addr),
|
||||
util_ssid_to_utf8(bss->ssid_len, bss->ssid),
|
||||
bss->frequency, bss->rank, bss->signal_strength);
|
||||
bss->frequency, bss->rank, bss->signal_strength,
|
||||
kbps100 / 10, kbps100 % 10);
|
||||
|
||||
if (util_ssid_is_hidden(bss->ssid_len, bss->ssid)) {
|
||||
l_debug("BSS has hidden SSID");
|
||||
|
Loading…
Reference in New Issue
Block a user