diff options
author | Robert Marko <robimarko@gmail.com> | 2019-03-28 14:55:55 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2019-03-28 15:02:58 +0100 |
commit | c2cfe9d96c9a321f7314e6321361ae6c982bbb0f (patch) | |
tree | 074833aa03f8a0c39c1e5f057d003331457282e3 | |
parent | a8e827592338d7f10d93b4b93d04f367221465c2 (diff) | |
download | iwinfo-c2cfe9d96c9a321f7314e6321361ae6c982bbb0f.tar.gz |
iwinfo: Fix 802.11ad channel to frequency
This patch enables proper identification of ad hwmode in channel2frequency function.
Now iwinfo will properly calculate frequency for a channels 1-6 in 802.11ad.
Fixes a8e827592338d7f10d93b4b93d04f367221465c2
Signed-off-by: Robert Marko <robimarko@gmail.com>
-rw-r--r-- | iwinfo_nl80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c index 13c69e3..200be28 100644 --- a/iwinfo_nl80211.c +++ b/iwinfo_nl80211.c @@ -1207,7 +1207,7 @@ static int nl80211_get_frequency_info_cb(struct nl_msg *msg, void *arg) static int nl80211_get_frequency(const char *ifname, int *buf) { - char *res, channel[4], hwmode[2]; + char *res, channel[4], hwmode[3]; /* try to find frequency from interface info */ res = nl80211_phy2ifname(ifname); |