summaryrefslogtreecommitdiffhomepage
path: root/libs/iwinfo/src/iwinfo_wl.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-08-11 13:56:16 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-08-11 13:56:16 +0000
commit444e39b0936f26ddfed35b13d095de2c41ec611a (patch)
tree24523fc65e952b37eef29949f177c87b1a83e54a /libs/iwinfo/src/iwinfo_wl.c
parent9d1cfdd35993fae618cdfe3b7a8d88b362d74cdd (diff)
libs/iwinfo: implement *_get_mbssid_support() check
Diffstat (limited to 'libs/iwinfo/src/iwinfo_wl.c')
-rw-r--r--libs/iwinfo/src/iwinfo_wl.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/libs/iwinfo/src/iwinfo_wl.c b/libs/iwinfo/src/iwinfo_wl.c
index a29cf84ee..4247353f5 100644
--- a/libs/iwinfo/src/iwinfo_wl.c
+++ b/libs/iwinfo/src/iwinfo_wl.c
@@ -366,3 +366,20 @@ int wl_get_assoclist(const char *ifname, char *buf, int *len)
return -1;
}
+int wl_get_mbssid_support(const char *ifname, int *buf)
+{
+ wlc_rev_info_t revinfo;
+
+ /* Multi bssid support only works on corerev >= 9 */
+ if( !wl_ioctl(ifname, WLC_GET_REVINFO, &revinfo, sizeof(revinfo)) )
+ {
+ if( revinfo.corerev >= 9 )
+ {
+ *buf = 1;
+ return 0;
+ }
+ }
+
+ return -1;
+}
+