mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
OWE: Add driver capability flag for OWE AKM
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
a1ea1b4522
commit
f9561868ec
@ -1330,6 +1330,7 @@ struct wpa_driver_capa {
|
|||||||
#define WPA_DRIVER_CAPA_KEY_MGMT_WAPI_PSK 0x00000080
|
#define WPA_DRIVER_CAPA_KEY_MGMT_WAPI_PSK 0x00000080
|
||||||
#define WPA_DRIVER_CAPA_KEY_MGMT_SUITE_B 0x00000100
|
#define WPA_DRIVER_CAPA_KEY_MGMT_SUITE_B 0x00000100
|
||||||
#define WPA_DRIVER_CAPA_KEY_MGMT_SUITE_B_192 0x00000200
|
#define WPA_DRIVER_CAPA_KEY_MGMT_SUITE_B_192 0x00000200
|
||||||
|
#define WPA_DRIVER_CAPA_KEY_MGMT_OWE 0x00000400
|
||||||
/** Bitfield of supported key management suites */
|
/** Bitfield of supported key management suites */
|
||||||
unsigned int key_mgmt;
|
unsigned int key_mgmt;
|
||||||
|
|
||||||
|
@ -1129,7 +1129,8 @@ int wpa_driver_nl80211_capa(struct wpa_driver_nl80211_data *drv)
|
|||||||
WPA_DRIVER_CAPA_KEY_MGMT_WPA2 |
|
WPA_DRIVER_CAPA_KEY_MGMT_WPA2 |
|
||||||
WPA_DRIVER_CAPA_KEY_MGMT_WPA2_PSK |
|
WPA_DRIVER_CAPA_KEY_MGMT_WPA2_PSK |
|
||||||
WPA_DRIVER_CAPA_KEY_MGMT_SUITE_B |
|
WPA_DRIVER_CAPA_KEY_MGMT_SUITE_B |
|
||||||
WPA_DRIVER_CAPA_KEY_MGMT_SUITE_B_192;
|
WPA_DRIVER_CAPA_KEY_MGMT_SUITE_B_192 |
|
||||||
|
WPA_DRIVER_CAPA_KEY_MGMT_OWE;
|
||||||
drv->capa.auth = WPA_DRIVER_AUTH_OPEN |
|
drv->capa.auth = WPA_DRIVER_AUTH_OPEN |
|
||||||
WPA_DRIVER_AUTH_SHARED |
|
WPA_DRIVER_AUTH_SHARED |
|
||||||
WPA_DRIVER_AUTH_LEAP;
|
WPA_DRIVER_AUTH_LEAP;
|
||||||
|
@ -3805,6 +3805,14 @@ static int ctrl_iface_get_capability_key_mgmt(int res, char *strict,
|
|||||||
pos += ret;
|
pos += ret;
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_SUITEB192 */
|
#endif /* CONFIG_SUITEB192 */
|
||||||
|
#ifdef CONFIG_OWE
|
||||||
|
if (capa->key_mgmt & WPA_DRIVER_CAPA_KEY_MGMT_OWE) {
|
||||||
|
ret = os_snprintf(pos, end - pos, " OWE");
|
||||||
|
if (os_snprintf_error(end - pos, ret))
|
||||||
|
return pos - buf;
|
||||||
|
pos += ret;
|
||||||
|
}
|
||||||
|
#endif /* CONFIG_OWE */
|
||||||
|
|
||||||
return pos - buf;
|
return pos - buf;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user