aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/iwinfo
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-10-05 10:26:17 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-10-05 10:26:17 +0000
commitb5529ed26bfe7c55b03036659db4d352d93e4eab (patch)
treea5af5b1a3cf791c5ccc7aac54f0d5fa94a119781 /package/network/utils/iwinfo
parentdac05f6724c680097ec99f9a781684c34d79fb08 (diff)
downloadupstream-b5529ed26bfe7c55b03036659db4d352d93e4eab.tar.gz
upstream-b5529ed26bfe7c55b03036659db4d352d93e4eab.tar.bz2
upstream-b5529ed26bfe7c55b03036659db4d352d93e4eab.zip
iwinfo: detect AC PHY for broadcom-wl
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42761
Diffstat (limited to 'package/network/utils/iwinfo')
-rw-r--r--package/network/utils/iwinfo/src/api/broadcom.h1
-rw-r--r--package/network/utils/iwinfo/src/iwinfo_wl.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/package/network/utils/iwinfo/src/api/broadcom.h b/package/network/utils/iwinfo/src/api/broadcom.h
index 672083cc79..9d90d608d1 100644
--- a/package/network/utils/iwinfo/src/api/broadcom.h
+++ b/package/network/utils/iwinfo/src/api/broadcom.h
@@ -56,6 +56,7 @@
#define WLC_PHY_TYPE_N 4
#define WLC_PHY_TYPE_LP 5
#define WLC_PHY_TYPE_HT 7
+#define WLC_PHY_TYPE_AC 11
#define WLC_BAND_5G 1
#define WLC_BAND_2G 2
diff --git a/package/network/utils/iwinfo/src/iwinfo_wl.c b/package/network/utils/iwinfo/src/iwinfo_wl.c
index 57e4acf002..7cbda9679e 100644
--- a/package/network/utils/iwinfo/src/iwinfo_wl.c
+++ b/package/network/utils/iwinfo/src/iwinfo_wl.c
@@ -601,6 +601,8 @@ static int wl_get_hwmodelist(const char *ifname, int *buf)
case WLC_PHY_TYPE_B:
*buf = IWINFO_80211_B;
break;
+ case WLC_PHY_TYPE_AC:
+ *buf |= IWINFO_80211_AC;
case WLC_PHY_TYPE_HT:
case WLC_PHY_TYPE_N:
*buf |= IWINFO_80211_N;