From 444e39b0936f26ddfed35b13d095de2c41ec611a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 11 Aug 2009 13:56:16 +0000 Subject: libs/iwinfo: implement *_get_mbssid_support() check --- libs/iwinfo/src/iwinfo_wl.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'libs/iwinfo/src/iwinfo_wl.c') 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; +} + -- cgit v1.2.3