[RFC] drivers: add separate driver flags for 802.1X and WPA/WPA2-Personal
Otcheretianski, Andrei
andrei.otcheretianski at intel.com
Tue Mar 28 05:47:28 PDT 2017
>
> diff --git a/src/drivers/driver_openbsd.c b/src/drivers/driver_openbsd.c index
> e94eda0..ae61d74 100644
> --- a/src/drivers/driver_openbsd.c
> +++ b/src/drivers/driver_openbsd.c
> @@ -62,7 +62,8 @@ static int
> wpa_driver_openbsd_get_capa(void *priv, struct wpa_driver_capa *capa) {
> os_memset(capa, 0, sizeof(*capa));
> - capa->flags = WPA_DRIVER_FLAGS_4WAY_HANDSHAKE;
> + capa->flags = WPA_DRIVER_FLAGS_4WAY_HANDSHAKE_PSK &
> + WPA_DRIVER_FLAGS_4WAY_HANDSHAKE_8021X;
I guess you meant | here.
> return 0;
> }
>
[..]
> if (range->enc_capa & IW_ENC_CAPA_4WAY_HANDSHAKE)
> - drv->capa.flags |= WPA_DRIVER_FLAGS_4WAY_HANDSHAKE;
> + drv->capa.flags |= (WPA_DRIVER_FLAGS_4WAY_HANDSHAKE_PSK &
> + WPA_DRIVER_FLAGS_4WAY_HANDSHAKE_8021X);
> drv->capa.auth = WPA_DRIVER_AUTH_OPEN |
And here too.
Andrei
More information about the Hostap
mailing list