diff options
author | sam <sam@FreeBSD.org> | 2009-09-04 22:34:57 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-09-04 22:34:57 +0000 |
commit | 4975956f2e300e103617874b15013dda58e1aab0 (patch) | |
tree | 1740c329d123d25b2dcd4c6caff6d975cce3ffa5 | |
parent | df693f271c66ef54fac011bce0af784f0da20dcd (diff) | |
download | FreeBSD-src-4975956f2e300e103617874b15013dda58e1aab0.zip FreeBSD-src-4975956f2e300e103617874b15013dda58e1aab0.tar.gz |
must also plumb static wep keys to the local sta db in sta mode; not
sure when this became necessary and might be caused by some missing
code to do auto-configuration of DWDS usage
Noticed by: Felix Feng <unixwind@gmail.com>
-rw-r--r-- | sys/dev/mwl/if_mwl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/mwl/if_mwl.c b/sys/dev/mwl/if_mwl.c index c320cdb..991bc79 100644 --- a/sys/dev/mwl/if_mwl.c +++ b/sys/dev/mwl/if_mwl.c @@ -1738,6 +1738,10 @@ mwl_key_set(struct ieee80211vap *vap, const struct ieee80211_key *k, * WEP keys when the sta reaches AUTH state. */ macaddr = vap->iv_bss->ni_bssid; + if ((k->wk_flags & IEEE80211_KEY_GROUP) == 0) { + /* XXX plumb to local sta db too for static key wep */ + mwl_hal_keyset(hvap, &hk, vap->iv_myaddr); + } } else if (vap->iv_opmode == IEEE80211_M_WDS && vap->iv_state != IEEE80211_S_RUN) { /* |