From: Steve Brown Date: Sun, 03 Jul 2011 10:58:50 -0400 Subject: [ath9k-devel] [RFC/RFT] ath9k: support for multiple beacon intervals In-Reply-To: References: <1309299148.14951.29.camel@mythtv.ewol.com> Message-ID: <1309705130.14951.130.camel@mythtv.ewol.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Fri, 2011-07-01 at 10:49 +0200, Bj?rn Smedman wrote: > If possible I would prefer an implementation that sets SWBA interrupts > to the greatest common divisor of all beacon intervals. > /Bj?rn The purpose of the patch is to support a Mesh Access Point by allowing both ap and mesh vifs on the same interface. Support for different ap beacon intervals isn't a goal. The general case gets pretty complicated. If there is an AP vif, cur_conf->beacon_interval appears to want to be the AP interval. Other timings depend on it. If the SWBA interrupt is based on the minimum of the mesh or ap interval, it will always be that of the ap vif. The mesh beacons don't seem to be used for timing, so even if one interval is not a multiple of the other, some jitter in the mesh beaconing shouldn't be a problem. The AP beacons would always go out on schedule and the mesh beacons would be interleaved every (mesh%ap + 1) ap beacons. Steve