summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2004-12-10 16:35:37 +0000
committersam <sam@FreeBSD.org>2004-12-10 16:35:37 +0000
commit42039c0abf11ded3c29baa57e31230979aec0858 (patch)
tree302183dbb3f8fddcac755305a2c7dda73df1be4e /sys
parenta014627e190b493ccb18ca8a869a947599b4ffe3 (diff)
downloadFreeBSD-src-42039c0abf11ded3c29baa57e31230979aec0858.zip
FreeBSD-src-42039c0abf11ded3c29baa57e31230979aec0858.tar.gz
fix wep key seting: ENETRESET is the code to return to signal the driver
should push software state to the hardware (was ERESTART which caused the system call to be retried) Submitted by: Tor Egge
Diffstat (limited to 'sys')
-rw-r--r--sys/net80211/ieee80211_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c
index 059d215..170ea8f 100644
--- a/sys/net80211/ieee80211_ioctl.c
+++ b/sys/net80211/ieee80211_ioctl.c
@@ -1975,7 +1975,7 @@ ieee80211_ioctl_set80211(struct ieee80211com *ic, u_long cmd, struct ieee80211re
if (kid >= IEEE80211_WEP_NKID)
return EINVAL;
ic->ic_def_txkey = kid;
- error = ERESTART; /* push to hardware */
+ error = ENETRESET; /* push to hardware */
break;
case IEEE80211_IOC_AUTHMODE:
switch (ireq->i_val) {
OpenPOWER on IntegriCloud