Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Sep 2009 22:34:57 +0000 (UTC)
From:      Sam Leffler <sam@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r196842 - head/sys/dev/mwl
Message-ID:  <200909042234.n84MYvcJ022111@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sam
Date: Fri Sep  4 22:34:57 2009
New Revision: 196842
URL: http://svn.freebsd.org/changeset/base/196842

Log:
  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>

Modified:
  head/sys/dev/mwl/if_mwl.c

Modified: head/sys/dev/mwl/if_mwl.c
==============================================================================
--- head/sys/dev/mwl/if_mwl.c	Fri Sep  4 21:49:37 2009	(r196841)
+++ head/sys/dev/mwl/if_mwl.c	Fri Sep  4 22:34:57 2009	(r196842)
@@ -1738,6 +1738,10 @@ mwl_key_set(struct ieee80211vap *vap, co
 		 * 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) {
 		/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909042234.n84MYvcJ022111>