PERFORCE change 117712 for review
Sam Leffler
sam at FreeBSD.org
Mon Apr 9 04:02:44 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=117712
Change 117712 by sam at 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;
More information about the p4-projects
mailing list