projects
/
project
/
iwinfo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70d2136
)
iwinfo: cli: fix hwmode formatting
author
David Bauer
<mail@david-bauer.net>
Tue, 20 Apr 2021 00:22:38 +0000
(
02:22
+0200)
committer
David Bauer
<mail@david-bauer.net>
Tue, 20 Apr 2021 16:04:31 +0000
(18:04 +0200)
The placeholder for the 802.11ax hwmode was missing.
Signed-off-by: David Bauer <mail@david-bauer.net>
iwinfo_cli.c
patch
|
blob
|
history
diff --git
a/iwinfo_cli.c
b/iwinfo_cli.c
index ee5a0e2dde428481dedf9ca16cfb23598bc7819c..82b409c0fcf699e7bd0107f59ff849c26d8081b4 100644
(file)
--- a/
iwinfo_cli.c
+++ b/
iwinfo_cli.c
@@
-274,12
+274,12
@@
static char * format_encryption(struct iwinfo_crypto_entry *c)
static char * format_hwmodes(int modes)
{
- static char buf[1
5
];
+ static char buf[1
7
];
if (modes <= 0)
snprintf(buf, sizeof(buf), "unknown");
else
- snprintf(buf, sizeof(buf), "802.11%s%s%s%s%s%s",
+ snprintf(buf, sizeof(buf), "802.11%s%s%s%s%s%s
%s
",
(modes & IWINFO_80211_A) ? "a" : "",
(modes & IWINFO_80211_B) ? "b" : "",
(modes & IWINFO_80211_G) ? "g" : "",