Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 42760
#define WLC_PHY_TYPE_G 2
#define WLC_PHY_TYPE_N 4
#define WLC_PHY_TYPE_LP 5
+#define WLC_PHY_TYPE_HT 7
#define WLC_BAND_5G 1
#define WLC_BAND_2G 2
if (!wl_ioctl(ifname, WLC_GET_PHYTYPE, &phytype, sizeof(phytype)) &&
!wl_ioctl(ifname, WLC_GET_BANDLIST, band, sizeof(band)))
{
+ *buf = 0;
switch (phytype)
{
case WLC_PHY_TYPE_A:
case WLC_PHY_TYPE_B:
*buf = IWINFO_80211_B;
break;
+ case WLC_PHY_TYPE_HT:
+ case WLC_PHY_TYPE_N:
+ *buf |= IWINFO_80211_N;
case WLC_PHY_TYPE_LP:
case WLC_PHY_TYPE_G:
- case WLC_PHY_TYPE_N:
bands = 0;
for (i = 1; i <= band[0]; i++)
{
bands |= band[i];
}
- *buf = 0;
if (bands & WLC_BAND_5G)
*buf |= IWINFO_80211_A;
if (bands & WLC_BAND_2G)
*buf |= IWINFO_80211_B;
*buf |= IWINFO_80211_G;
}
- if (phytype == WLC_PHY_TYPE_N)
- *buf |= IWINFO_80211_N;
break;
default:
return -1;