From: Jouni Malinen Date: Wed, 1 Aug 2012 07:34:35 +0000 (+0300) Subject: Add new drv_flag for indicating user space AP MLME X-Git-Tag: hostap_2_0~525 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5091674950c1fa14ed533387b6f1ed29b278558;p=thirdparty%2Fhostap.git Add new drv_flag for indicating user space AP MLME This makes it easier for hostapd to determine at runtime which operations to use. Signed-hostap: Jouni Malinen --- diff --git a/src/drivers/driver.h b/src/drivers/driver.h index 4a8604d7a..d51088239 100644 --- a/src/drivers/driver.h +++ b/src/drivers/driver.h @@ -831,6 +831,8 @@ struct wpa_driver_capa { #define WPA_DRIVER_FLAGS_AP_UAPSD 0x00400000 /* Driver supports inactivity timer in AP mode */ #define WPA_DRIVER_FLAGS_INACTIVITY_TIMER 0x00800000 +/* Driver expects user space implementation of MLME in AP mode */ +#define WPA_DRIVER_FLAGS_AP_MLME 0x01000000 unsigned int flags; int max_scan_ssids; diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index a30f2e3df..8b0a5f715 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -2631,9 +2631,16 @@ static int wpa_driver_nl80211_capa(struct wpa_driver_nl80211_data *drv) drv->capa.flags |= WPA_DRIVER_FLAGS_SET_KEYS_AFTER_ASSOC_DONE; drv->capa.flags |= WPA_DRIVER_FLAGS_EAPOL_TX_STATUS; - if (!info.device_ap_sme) + if (!info.device_ap_sme) { drv->capa.flags |= WPA_DRIVER_FLAGS_DEAUTH_TX_STATUS; + /* + * No AP SME is currently assumed to also indicate no AP MLME + * in the driver/firmware. + */ + drv->capa.flags |= WPA_DRIVER_FLAGS_AP_MLME; + } + drv->device_ap_sme = info.device_ap_sme; drv->poll_command_supported = info.poll_command_supported; drv->data_tx_status = info.data_tx_status;