RE: [RFC] drivers: add separate driver flags for 802.1X and WPA/WPA2-Personal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> 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

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux