From c574a3ff1804351756daca09fa5a96afc8c96a87 Mon Sep 17 00:00:00 2001 From: Sunil Dutt Date: Fri, 16 Aug 2019 10:23:24 +0530 Subject: [PATCH] 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 --- src/drivers/driver_nl80211.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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;