Author: bschmidt
Date: Mon Jan 17 20:22:03 2011
New Revision: 217513
URL: http://svn.freebsd.org/changeset/base/217513

Log:
  MFC r216835:
  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.
  
  Submitted by: Erik Fonnesbeck <efonnes at gmail.com>

Modified:
  stable/8/sys/dev/mwl/mwlhal.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/dev/mwl/mwlhal.c
==============================================================================
--- stable/8/sys/dev/mwl/mwlhal.c       Mon Jan 17 20:19:35 2011        
(r217512)
+++ stable/8/sys/dev/mwl/mwlhal.c       Mon Jan 17 20:22:03 2011        
(r217513)
@@ -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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to