]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Fix NL80211_CMD_CONNECT with WPA/WPS networks
authorJouni Malinen <jouni.malinen@atheros.com>
Fri, 26 Nov 2010 15:39:31 +0000 (17:39 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 26 Nov 2010 15:39:31 +0000 (17:39 +0200)
src/drivers/driver_nl80211.c

index f0e070471daecf60c5261b3f61ebd8e3c5e0e932..f386fa2135e87e447a911718abf24065dd9da4b5 100644 (file)
@@ -2611,6 +2611,12 @@ static int nl80211_set_conn_keys(struct wpa_driver_associate_params *params,
                privacy = 1;
                break;
        }
+       if (params->wps == WPS_MODE_PRIVACY)
+               privacy = 1;
+       if (params->pairwise_suite &&
+           params->pairwise_suite != WPA_CIPHER_NONE)
+               privacy = 1;
+
        if (!privacy)
                return 0;