Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Apr 2007 04:02:43 GMT
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 117712 for review
Message-ID:  <200704090402.l3942h45060493@repoman.freebsd.org>

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

Change 117712 by sam@sam_ebb on 2007/04/09 04:01:43

	return ENOENT when no sta entry is present for the mac
	address supplied to a get wpa ie ioctl; may want to do this
	for all similar ioctls--it helps identify faulty params
	which otherwise all result in EINVAL

Affected files ...

.. //depot/projects/wifi/sys/net80211/ieee80211_ioctl.c#72 edit

Differences ...

==== //depot/projects/wifi/sys/net80211/ieee80211_ioctl.c#72 (text+ko) ====

@@ -182,7 +182,7 @@
 		return error;
 	ni = ieee80211_find_node(&ic->ic_sta, wpaie.wpa_macaddr);
 	if (ni == NULL)
-		return EINVAL;		/* XXX */
+		return ENOENT;		/* XXX */
 	memset(wpaie.wpa_ie, 0, sizeof(wpaie.wpa_ie));
 	if (ni->ni_wpa_ie != NULL) {
 		int ielen = ni->ni_wpa_ie[1] + 2;



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