iwinfo: detect AC PHY for broadcom-wl
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 5 Oct 2014 10:26:17 +0000 (10:26 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 27 Oct 2014 12:48:28 +0000 (13:48 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn+ssh://svn.openwrt.org/openwrt/trunk@42761 3c298f89-4303-0410-b956-a3cf2f4a3e73

api/broadcom.h
iwinfo_wl.c

index 672083cc798c6c8b65707192c16c1b2f1549b353..9d90d608d145e7b2578abde6e5535818451b47c5 100644 (file)
@@ -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
index 57e4acf00292b4e534886f3b4a511619a5485143..7cbda9679e566456988466d9c73d74d3e75b125d 100644 (file)
@@ -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;