diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2013-11-11 21:54:25 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2013-11-11 21:54:25 +0000 |
commit | 254d8e67c7b46a9f23bead2d2a9fde227b5ce070 (patch) | |
tree | af5f98daafddf63895c667655702d9490379cb72 /package/network/utils/iwinfo/src/include | |
parent | 22e6165b04df722858a81a9fbb5893c0ce79506e (diff) | |
download | upstream-254d8e67c7b46a9f23bead2d2a9fde227b5ce070.tar.gz upstream-254d8e67c7b46a9f23bead2d2a9fde227b5ce070.tar.bz2 upstream-254d8e67c7b46a9f23bead2d2a9fde227b5ce070.zip |
iwinfo: fix hwmodelist reporting for broadcom wl
Modify the hwmodelist reporting for broadcom devices to include
proper reporting of 802.11n support.
Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38745 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/utils/iwinfo/src/include')
-rw-r--r-- | package/network/utils/iwinfo/src/include/iwinfo/api/broadcom.h | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/package/network/utils/iwinfo/src/include/iwinfo/api/broadcom.h b/package/network/utils/iwinfo/src/include/iwinfo/api/broadcom.h index 50eedd9e49..c7aa33e415 100644 --- a/package/network/utils/iwinfo/src/include/iwinfo/api/broadcom.h +++ b/package/network/utils/iwinfo/src/include/iwinfo/api/broadcom.h @@ -26,7 +26,7 @@ #define WLC_IOCTL_MAGIC 0x14e46c77 #define WLC_IOCTL_MAXLEN 8192 -#define WLC_CNTRY_BUF_SZ 4 +#define WLC_CNTRY_BUF_SZ 4 #define WLC_GET_MAGIC 0 #define WLC_GET_RATE 12 @@ -35,18 +35,30 @@ #define WLC_GET_BSSID 23 #define WLC_GET_SSID 25 #define WLC_GET_CHANNEL 29 +#define WLC_GET_PHYTYPE 39 #define WLC_GET_PASSIVE 48 #define WLC_GET_COUNTRY 83 #define WLC_GET_REVINFO 98 -#define WLC_GET_AP 117 +#define WLC_GET_AP 117 #define WLC_GET_RSSI 127 #define WLC_GET_WSEC 133 #define WLC_GET_PHY_NOISE 135 #define WLC_GET_BSS_INFO 136 +#define WLC_GET_BANDLIST 140 #define WLC_GET_ASSOCLIST 159 #define WLC_GET_WPA_AUTH 164 -#define WLC_GET_COUNTRY_LIST 261 -#define WLC_GET_VAR 262 +#define WLC_GET_COUNTRY_LIST 261 +#define WLC_GET_VAR 262 + +#define WLC_PHY_TYPE_A 0 +#define WLC_PHY_TYPE_B 1 +#define WLC_PHY_TYPE_G 2 +#define WLC_PHY_TYPE_N 4 +#define WLC_PHY_TYPE_LP 5 + +#define WLC_BAND_5G 1 +#define WLC_BAND_2G 2 +#define WLC_BAND_ALL 3 struct wl_ether_addr { @@ -117,6 +129,9 @@ typedef struct wlc_rev_info { uint ucoderev; /* microcode version */ uint bus; /* bus type */ uint chipnum; /* chip number */ + uint phytype; /* phy type */ + uint phyrev; /* phy revision */ + uint anarev; /* anacore rev */ } wlc_rev_info_t; typedef struct wl_country_list { |