X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=iwinfo.c;h=7c9a656a12a31f1ded769963b408b686a485a22f;hb=5c15f5736de0c329bccd1a39264a7bd00299f728;hp=4133dc46ed14de733f4b66db0b5bc0a22f55a260;hpb=e28d4a58bf8e113b416649ca06aa302a748bddf2;p=project%2Frpcd.git diff --git a/iwinfo.c b/iwinfo.c index 4133dc4..7c9a656 100644 --- a/iwinfo.c +++ b/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;