diff options
author | Daniel Golle <daniel@makrotopia.org> | 2021-01-05 22:32:45 +0000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2021-01-05 22:32:45 +0000 |
commit | 5c15f5736de0c329bccd1a39264a7bd00299f728 (patch) | |
tree | 49c0e4960dd5e02c40abc27994c451c4ef0d2c37 | |
parent | e28d4a58bf8e113b416649ca06aa302a748bddf2 (diff) | |
download | rpcd-5c15f5736de0c329bccd1a39264a7bd00299f728.tar.gz |
iwinfo: return hwmode 'ad' on 802.11ad-only hardware
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
-rw-r--r-- | iwinfo.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -301,6 +301,12 @@ static void rpc_iwinfo_call_hw_ht_mode() const char *hwmode_str; const char *htmode_str; int32_t htmode = 0; + int modes; + + if (!iw->hwmodelist(ifname, &modes) && (modes == IWINFO_80211_AD)) { + blobmsg_add_string(&buf, "hwmode", "ad"); + return; + } if (iw->htmode(ifname, &htmode)) return; |