[PATCH 2/2] driver_bsd.c: Use new MLME method of association.

Roy Marples roy
Tue May 26 01:45:21 PDT 2009


Old way does not work with all drivers on NetBSD and FreeBSD are
also using this so should be a safe change.
Fixes #312

Signed-off-by: Roy Marples <roy at marples.name>
---
 src/drivers/driver_bsd.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/src/drivers/driver_bsd.c b/src/drivers/driver_bsd.c
index ba56d5e..c6f9b9a 100644
--- a/src/drivers/driver_bsd.c
+++ b/src/drivers/driver_bsd.c
@@ -1172,10 +1172,6 @@ wpa_driver_bsd_associate(void *priv, struct wpa_driver_associate_params *params)
 	/* XXX error handling is wrong but unclear what to do... */
 	if (wpa_driver_bsd_set_wpa_ie(drv, params->wpa_ie, params->wpa_ie_len) < 0)
 		return -1;
-#ifndef NEW_FREEBSD_MLME_ASSOC
-	if (wpa_driver_bsd_set_ssid(drv, params->ssid, params->ssid_len) < 0)
-		return -1;
-#endif
 
 	privacy = !(params->pairwise_suite == CIPHER_NONE &&
 	    params->group_suite == CIPHER_NONE &&
@@ -1193,11 +1189,9 @@ wpa_driver_bsd_associate(void *priv, struct wpa_driver_associate_params *params)
 
 	os_memset(&mlme, 0, sizeof(mlme));
 	mlme.im_op = IEEE80211_MLME_ASSOC;
-#ifdef NEW_FREEBSD_MLME_ASSOC
 	if (params->ssid != NULL)
 		os_memcpy(mlme.im_ssid, params->ssid, params->ssid_len);
 	mlme.im_ssid_len = params->ssid_len;
-#endif
 	if (params->bssid != NULL)
 		os_memcpy(mlme.im_macaddr, params->bssid, IEEE80211_ADDR_LEN);
 	if (set80211var(drv, IEEE80211_IOC_MLME, &mlme, sizeof(mlme)) < 0)
-- 
1.6.2.5




More information about the Hostap mailing list