|
@@ -5291,6 +5291,15 @@ static int nl80211_connect_common(struct wpa_driver_nl80211_data *drv,
|
|
if (params->mgmt_frame_protection == MGMT_FRAME_PROTECTION_REQUIRED)
|
|
if (params->mgmt_frame_protection == MGMT_FRAME_PROTECTION_REQUIRED)
|
|
NLA_PUT_U32(msg, NL80211_ATTR_USE_MFP, NL80211_MFP_REQUIRED);
|
|
NLA_PUT_U32(msg, NL80211_ATTR_USE_MFP, NL80211_MFP_REQUIRED);
|
|
|
|
|
|
|
|
+ if (params->rrm_used) {
|
|
|
|
+ u32 drv_rrm_flags = drv->capa.rrm_flags;
|
|
|
|
+ if (!(drv_rrm_flags &
|
|
|
|
+ WPA_DRIVER_FLAGS_DS_PARAM_SET_IE_IN_PROBES) ||
|
|
|
|
+ !(drv_rrm_flags & WPA_DRIVER_FLAGS_QUIET))
|
|
|
|
+ goto nla_put_failure;
|
|
|
|
+ NLA_PUT_FLAG(msg, NL80211_ATTR_USE_RRM);
|
|
|
|
+ }
|
|
|
|
+
|
|
if (params->disable_ht)
|
|
if (params->disable_ht)
|
|
NLA_PUT_FLAG(msg, NL80211_ATTR_DISABLE_HT);
|
|
NLA_PUT_FLAG(msg, NL80211_ATTR_DISABLE_HT);
|
|
|
|
|