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

station: Only set our OCVC if the AP supports it

This commit is contained in:
Denis Kenzior 2021-10-08 13:33:11 -05:00
parent adceab280b
commit 3d736d4c20

View File

@ -1085,7 +1085,7 @@ build_ie:
&disable_ocv))
disable_ocv = false;
info.ocvc = !disable_ocv;
info.ocvc = !disable_ocv && bss_info.ocvc;
/* Extended Key IDs can only be used if supported by both AP and STA */
if (wiphy_supports_ext_key_id(wiphy) && bss_info.extended_key_id)