From: Sunil Dutt Date: Fri, 16 Aug 2019 04:53:24 +0000 (+0530) Subject: nl80211: Request update connection params only for drivers with SME X-Git-Tag: hostap_2_10~2464 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c574a3ff1804351756daca09fa5a96afc8c96a87;p=thirdparty%2Fhostap.git nl80211: Request update connection params only for drivers with SME Update Connection Params is intended for drivers that implement internal SME and expect these updated connection params from wpa_supplicant. Do not send this request for the drivers using SME from wpa_supplicant. Signed-off-by: Jouni Malinen --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index d71511cb5..7b31b52c7 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -10899,6 +10899,14 @@ static int nl80211_update_connection_params( int ret = -1; enum nl80211_auth_type type; + /* Update Connection Params is intended for drivers that implement + * internal SME and expect these updated connection params from + * wpa_supplicant. Do not send this request for the drivers using + * SME from wpa_supplicant. + */ + if (drv->capa.flags & WPA_DRIVER_FLAGS_SME) + return 0; + msg = nl80211_drv_msg(drv, 0, NL80211_CMD_UPDATE_CONNECT_PARAMS); if (!msg) goto fail;