Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jan 2008 19:11:37 GMT
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 134227 for review
Message-ID:  <200801271911.m0RJBbOB031657@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=134227

Change 134227 by sam@sam_ebb on 2008/01/27 19:11:05

	provide unique errno's for error cases of MLME assoc

Affected files ...

.. //depot/projects/vap/sys/net80211/ieee80211_ioctl.c#22 edit

Differences ...

==== //depot/projects/vap/sys/net80211/ieee80211_ioctl.c#22 (text+ko) ====

@@ -1354,8 +1354,11 @@
 	lookup.esslen = ssid_len;
 	lookup.essid = ssid;
 	ieee80211_scan_iterate(vap, mlmelookup, &lookup);
-	return (lookup.se == NULL || !ieee80211_sta_join(vap, lookup.se) ?
-	    EINVAL : 0);
+	if (lookup.se == NULL)
+		return ENOENT;
+	if (!ieee80211_sta_join(vap, lookup.se))
+		return EIO;		/* XXX unique but could be better */
+	return 0;
 }
 
 static int



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801271911.m0RJBbOB031657>