svn commit: r193340 - head/sys/net80211

Sam Leffler sam at FreeBSD.org
Tue Jun 2 20:00:45 UTC 2009


Author: sam
Date: Tue Jun  2 20:00:43 2009
New Revision: 193340
URL: http://svn.freebsd.org/changeset/base/193340

Log:
  partially fix mode setting; this no longer returns an error but still
  needs to handle the case where the vap is up+running
  
  Noticed by:	"Paul B. Mahol" <onemda at gmail.com>

Modified:
  head/sys/net80211/ieee80211.c

Modified: head/sys/net80211/ieee80211.c
==============================================================================
--- head/sys/net80211/ieee80211.c	Tue Jun  2 20:00:32 2009	(r193339)
+++ head/sys/net80211/ieee80211.c	Tue Jun  2 20:00:43 2009	(r193340)
@@ -1186,7 +1186,7 @@ ieee80211_media_change(struct ifnet *ifp
 		return EINVAL;
 	if (vap->iv_des_mode != newmode) {
 		vap->iv_des_mode = newmode;
-		return ENETRESET;
+		/* XXX kick state machine if up+running */
 	}
 	return 0;
 }


More information about the svn-src-head mailing list