mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 14:23:55 +00:00
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:
parent
245e410ba7
commit
b8d2606bae
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138663
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue