Date: Wed, 6 May 2009 18:27:12 +0000 (UTC) From: Rui Paulo <rpaulo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r191851 - projects/mesh11s/sys/dev/ath Message-ID: <200905061827.n46IRCJ3026016@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rpaulo Date: Wed May 6 18:27:12 2009 New Revision: 191851 URL: http://svn.freebsd.org/changeset/base/191851 Log: Add a few more MBSS handling cases. Sponsored by: The FreeBSD Foundation Modified: projects/mesh11s/sys/dev/ath/if_ath.c Modified: projects/mesh11s/sys/dev/ath/if_ath.c ============================================================================== --- projects/mesh11s/sys/dev/ath/if_ath.c Wed May 6 18:24:56 2009 (r191850) +++ projects/mesh11s/sys/dev/ath/if_ath.c Wed May 6 18:27:12 2009 (r191851) @@ -883,9 +883,11 @@ ath_vap_create(struct ieee80211com *ic, ic_opmode = opmode; break; case IEEE80211_M_IBSS: + case IEEE80211_M_MBSS: if (sc->sc_nvaps != 0) { /* XXX only 1 for now */ device_printf(sc->sc_dev, - "only 1 ibss vap supported\n"); + "only 1 %s vap supported\n", + (opmode == IEEE80211_M_IBSS) ? "ibss" : "mbss"); goto bad; } ic_opmode = opmode; @@ -924,11 +926,6 @@ ath_vap_create(struct ieee80211com *ic, flags &= ~IEEE80211_CLONE_BSSID; } ic_opmode = IEEE80211_M_HOSTAP; - break; - case IEEE80211_M_MBSS: - ic_opmode = IEEE80211_M_IBSS; - /* XXXRP TBD */ - break; default: device_printf(sc->sc_dev, "unknown opmode %d\n", opmode); goto bad; @@ -1034,6 +1031,7 @@ ath_vap_create(struct ieee80211com *ic, /* fall thru... */ #endif case IEEE80211_M_HOSTAP: + case IEEE80211_M_MBSS: sc->sc_opmode = HAL_M_HOSTAP; break; case IEEE80211_M_MONITOR: @@ -5609,6 +5607,7 @@ ath_newstate(struct ieee80211vap *vap, e #endif case IEEE80211_M_HOSTAP: case IEEE80211_M_IBSS: + case IEEE80211_M_MBSS: /* * Allocate and setup the beacon frame. *
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905061827.n46IRCJ3026016>