From: Jouni Malinen Date: Fri, 13 Jun 2014 22:24:06 +0000 (+0300) Subject: wext: Verify set_ssid results consistently (CID 62842) X-Git-Tag: hostap_2_3~304 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac79fcfa762490e4ce0610756dcd5418de9b1916;p=thirdparty%2Fhostap.git wext: Verify set_ssid results consistently (CID 62842) Note in debug log if SSID clearing to stop pending cfg80211 association attempts fail. Signed-off-by: Jouni Malinen --- diff --git a/src/drivers/driver_wext.c b/src/drivers/driver_wext.c index e5734bddc..a4f9cec7a 100644 --- a/src/drivers/driver_wext.c +++ b/src/drivers/driver_wext.c @@ -2027,7 +2027,11 @@ int wpa_driver_wext_associate(void *priv, * Stop cfg80211 from trying to associate before we are done * with all parameters. */ - wpa_driver_wext_set_ssid(drv, (u8 *) "", 0); + if (wpa_driver_wext_set_ssid(drv, (u8 *) "", 0) < 0) { + wpa_printf(MSG_DEBUG, + "WEXT: Failed to clear SSID to stop pending cfg80211 association attempts (if any)"); + /* continue anyway */ + } } if (wpa_driver_wext_set_drop_unencrypted(drv, params->drop_unencrypted)