svn commit: r216835 - head/sys/dev/mwl

Bernhard Schmidt bschmidt at FreeBSD.org
Fri Dec 31 09:50:15 UTC 2010


Author: bschmidt
Date: Fri Dec 31 09:50:15 2010
New Revision: 216835
URL: http://svn.freebsd.org/changeset/base/216835

Log:
  The mwl's HAL manages an array of MWL_MBSS_MAX VAPs where the first 8 are
  supposed to be APs and the later 24 are pre-configured as STAs. A wrong
  condition during initialization is responsible for not configuring the last
  8 array members. This is results in being able to create more than 8,
  possible uninitialized, AP-VAPs.
  
  PR:		kern/153549
  Submitted by:	Erik Fonnesbeck <efonnes at gmail.com>
  MFC after:	2 weeks

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

Modified: head/sys/dev/mwl/mwlhal.c
==============================================================================
--- head/sys/dev/mwl/mwlhal.c	Fri Dec 31 02:19:38 2010	(r216834)
+++ head/sys/dev/mwl/mwlhal.c	Fri Dec 31 09:50:15 2010	(r216835)
@@ -279,7 +279,7 @@ mwl_hal_attach(device_t dev, uint16_t de
 	hvap->vap_type = MWL_HAL_STA;
 	hvap->bss_type = htole16(WL_MAC_TYPE_PRIMARY_CLIENT);
 	hvap->macid = i;
-	for (i++; i < MWL_MBSS_STA_MAX; i++) {
+	for (i++; i < MWL_MBSS_MAX; i++) {
 		hvap = &mh->mh_vaps[i];
 		hvap->vap_type = MWL_HAL_STA;
 		hvap->bss_type = htole16(WL_MAC_TYPE_SECONDARY_CLIENT);


More information about the svn-src-all mailing list