diff options
author | Bob Copeland <me@bobcopeland.com> | 2014-09-01 00:23:23 -0400 |
---|---|---|
committer | Ravi Shankar Upadrasta <raviupadrasta@codeaurora.org> | 2014-12-09 14:25:00 +0530 |
commit | a2d0653f29774c35a9d7deea9a966143f033d8fb (patch) | |
tree | e99a6fc1f4c123d00eb4f0d1154f9a00ac1fa0df /src | |
parent | 9a66ea033894e3d691c69c120dfc98e4729cd319 (diff) | |
download | android_external_wpa_supplicant_8-a2d0653f29774c35a9d7deea9a966143f033d8fb.tar.gz android_external_wpa_supplicant_8-a2d0653f29774c35a9d7deea9a966143f033d8fb.tar.bz2 android_external_wpa_supplicant_8-a2d0653f29774c35a9d7deea9a966143f033d8fb.zip |
nl80211: Add driver flag to indicate mesh support
Convert the driver flags variable to u64 since there was no room for
more flags.
Signed-off-by: Javier Lopez <jlopex@gmail.com>
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: Jason Mobarak <x@jason.mobarak.name>
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Conflicts:
src/drivers/driver.h
src/drivers/driver_nl80211.c
Git-commit: 24bd4e0be56ef0371a71f4749808a44b3aeffe16
Git-repo : git://w1.fi/srv/git/hostap.git
Change-Id: Ic4cc033fcc3eea368e32f230f37be96b713d1316
CRs-fixed: 752061
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/driver.h | 4 | ||||
-rw-r--r-- | src/drivers/driver_nl80211.c | 3 | ||||
-rw-r--r-- | src/drivers/driver_wext.c | 5 |
3 files changed, 9 insertions, 3 deletions
diff --git a/src/drivers/driver.h b/src/drivers/driver.h index 7db0e835..e65d75f1 100644 --- a/src/drivers/driver.h +++ b/src/drivers/driver.h @@ -1011,7 +1011,9 @@ struct wpa_driver_capa { #define WPA_DRIVER_FLAGS_QOS_MAPPING 0x40000000 /* Driver supports CSA in AP mode */ #define WPA_DRIVER_FLAGS_AP_CSA 0x80000000 - unsigned int flags; +/* Driver supports mesh */ +#define WPA_DRIVER_FLAGS_MESH 0x0000000100000000ULL + u64 flags; int max_scan_ssids; int max_sched_scan_ssids; diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 021fb17c..6c92500e 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -3500,6 +3500,9 @@ static void wiphy_info_supported_iftypes(struct wiphy_info_data *info, case NL80211_IFTYPE_AP: info->capa->flags |= WPA_DRIVER_FLAGS_AP; break; + case NL80211_IFTYPE_MESH_POINT: + info->capa->flags |= WPA_DRIVER_FLAGS_MESH; + break; case NL80211_IFTYPE_ADHOC: info->capa->flags |= WPA_DRIVER_FLAGS_IBSS; break; diff --git a/src/drivers/driver_wext.c b/src/drivers/driver_wext.c index 459ac481..8d354244 100644 --- a/src/drivers/driver_wext.c +++ b/src/drivers/driver_wext.c @@ -1568,8 +1568,9 @@ static int wpa_driver_wext_get_range(void *priv) drv->capa.max_scan_ssids = 1; wpa_printf(MSG_DEBUG, " capabilities: key_mgmt 0x%x enc 0x%x " - "flags 0x%x", - drv->capa.key_mgmt, drv->capa.enc, drv->capa.flags); + "flags 0x%llx", + drv->capa.key_mgmt, drv->capa.enc, + (unsigned long long) drv->capa.flags); } else { wpa_printf(MSG_DEBUG, "SIOCGIWRANGE: too old (short) data - " "assuming WPA is not supported"); |