iwinfo: return hwmode 'ad' on 802.11ad-only hardware
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
e28d4a58bf
commit
5c15f5736d
1 changed files with 6 additions and 0 deletions
6
iwinfo.c
6
iwinfo.c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue