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
This commit is contained in:
Sam Leffler 2004-12-10 16:35:37 +00:00
parent 245e410ba7
commit b8d2606bae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138663

View file

@ -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) {