]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Request update connection params only for drivers with SME
authorSunil Dutt <usdutt@codeaurora.org>
Fri, 16 Aug 2019 04:53:24 +0000 (10:23 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 16 Aug 2019 12:26:18 +0000 (15:26 +0300)
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 <jouni@codeaurora.org>
src/drivers/driver_nl80211.c

index d71511cb5ca9c529a5e2ce0efd59317bc7bbb7fb..7b31b52c7eaf9c95816aaaa703662c79251dc712 100644 (file)
@@ -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;