3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

station: set OCVC for handshakes

Setting OCVC true for all connections unless disabled
This commit is contained in:
James Prestwood 2021-09-28 08:46:55 -07:00 committed by Denis Kenzior
parent 69cf481ca9
commit 141b01f82a

View File

@ -995,14 +995,15 @@ static int station_build_handshake_rsn(struct handshake_state *hs,
struct network *network,
struct scan_bss *bss)
{
const struct l_settings *settings = iwd_get_config();
enum security security = network_get_security(network);
bool add_mde = false;
struct erp_cache_entry *erp_cache = NULL;
struct ie_rsn_info bss_info;
uint8_t rsne_buf[256];
struct ie_rsn_info info;
uint8_t *ap_ie;
bool disable_ocv;
memset(&info, 0, sizeof(info));
@ -1080,6 +1081,12 @@ static int station_build_handshake_rsn(struct handshake_state *hs,
goto not_supported;
build_ie:
if (!l_settings_get_bool(settings, "General", "DisableOCV",
&disable_ocv))
disable_ocv = false;
info.ocvc = !disable_ocv;
/* RSN takes priority */
if (bss->rsne) {
ap_ie = bss->rsne;