PERFORCE change 134227 for review
Sam Leffler
sam at FreeBSD.org
Sun Jan 27 11:11:38 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=134227
Change 134227 by sam at 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
More information about the p4-projects
mailing list