Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Oct 2010 14:37:53 +0000 (UTC)
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r213778 - head/sys/dev/if_ndis
Message-ID:  <201010131437.o9DEbrG5090485@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rpaulo
Date: Wed Oct 13 14:37:52 2010
New Revision: 213778
URL: http://svn.freebsd.org/changeset/base/213778

Log:
  WPA_CSE_WEP104 was being incorrectly checked.
  
  Found with:	clang

Modified:
  head/sys/dev/if_ndis/if_ndis.c

Modified: head/sys/dev/if_ndis/if_ndis.c
==============================================================================
--- head/sys/dev/if_ndis/if_ndis.c	Wed Oct 13 14:27:47 2010	(r213777)
+++ head/sys/dev/if_ndis/if_ndis.c	Wed Oct 13 14:37:52 2010	(r213778)
@@ -2115,7 +2115,7 @@ ndis_set_cipher(sc, cipher)
 
 	len = sizeof(arg);
 
-	if (cipher == WPA_CSE_WEP40 || WPA_CSE_WEP104) {
+	if (cipher == WPA_CSE_WEP40 || cipher == WPA_CSE_WEP104) {
 		if (!(ic->ic_cryptocaps & IEEE80211_CRYPTO_WEP))
 			return (ENOTSUP);
 		arg = NDIS_80211_WEPSTAT_ENC1ENABLED;



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