svn commit: r213778 - head/sys/dev/if_ndis

Rui Paulo rpaulo at FreeBSD.org
Wed Oct 13 14:37:53 UTC 2010


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;


More information about the svn-src-all mailing list