Date: Mon, 27 Jun 2011 15:14:39 +0800 From: Adrian Chadd <adrian@freebsd.org> To: freebsd-wireless@freebsd.org Subject: Re: [PATCH] net80211: Fix bss channel on CSA reception Message-ID: <BANLkTimhkGJFUUoQZAAm2cGEwET8bDkBaw@mail.gmail.com> In-Reply-To: <BANLkTimRkak5hNv%2B=y77CGbjX37y0TeVww@mail.gmail.com> References: <BANLkTimRkak5hNv%2B=y77CGbjX37y0TeVww@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
That's not entirely correct; try this one:
Index: ieee80211_proto.c
===================================================================
--- ieee80211_proto.c (revision 223525)
+++ ieee80211_proto.c (working copy)
@@ -1509,9 +1509,12 @@
ic->ic_csa_newchan = NULL;
ic->ic_flags &= ~IEEE80211_F_CSAPENDING;
- TAILQ_FOREACH(vap, &ic->ic_vaps, iv_next)
+ TAILQ_FOREACH(vap, &ic->ic_vaps, iv_next) {
+ /* XXX do all VAPs need this? */
+ vap->iv_bss->ni_chan = ic->ic_curchan;
if (vap->iv_state == IEEE80211_S_CSA)
ieee80211_new_state_locked(vap, IEEE80211_S_RUN, 0);
+ }
}
/*
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTimhkGJFUUoQZAAm2cGEwET8bDkBaw>
