summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-10-22 17:22:09 +0200
committerThomas Haller <thaller@redhat.com>2020-10-22 17:22:09 +0200
commit515df289de73575e49786855245d1374f0e1e53c (patch)
tree35ea576df23b00cb7d488515bc0d3d1017a0e953
parent880fe31ef284ce7fee77694df2eb0448e17aeb8a (diff)
all/trivial: fix formatting
-rw-r--r--src/platform/wifi/nm-wifi-utils-nl80211.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/platform/wifi/nm-wifi-utils-nl80211.c b/src/platform/wifi/nm-wifi-utils-nl80211.c
index 13f8f5bf1..841f621e7 100644
--- a/src/platform/wifi/nm-wifi-utils-nl80211.c
+++ b/src/platform/wifi/nm-wifi-utils-nl80211.c
@@ -475,7 +475,7 @@ nl80211_station_dump_handler(struct nl_msg *msg, void *arg)
if (sinfo[NL80211_STA_INFO_TX_BITRATE] != NULL
&& !nla_parse_nested_arr(rinfo, sinfo[NL80211_STA_INFO_TX_BITRATE], rate_policy)
- && rinfo[NL80211_RATE_INFO_BITRATE] != NULL) {
+ && rinfo[NL80211_RATE_INFO_BITRATE] != NULL) {
/* convert from nl80211's units of 100kbps to NM's kbps */
info->txrate = nla_get_u16(rinfo[NL80211_RATE_INFO_BITRATE]) * 100;
info->txrate_valid = TRUE;
@@ -488,7 +488,8 @@ nl80211_station_dump_handler(struct nl_msg *msg, void *arg)
} else if (sinfo[NL80211_STA_INFO_BEACON_SIGNAL_AVG] != NULL) {
/* Fall back to beacon signal strength */
info->signal =
- nl80211_xbm_to_percent((gint8) nla_get_u8(sinfo[NL80211_STA_INFO_BEACON_SIGNAL_AVG]), 1);
+ nl80211_xbm_to_percent((gint8) nla_get_u8(sinfo[NL80211_STA_INFO_BEACON_SIGNAL_AVG]),
+ 1);
info->signal_valid = TRUE;
}