Return-path: Received: from mga01.intel.com ([192.55.52.88]:25766 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751755Ab3KNPIx (ORCPT ); Thu, 14 Nov 2013 10:08:53 -0500 From: "Coelho, Luciano" To: Simon Wunderlich CC: "linux-wireless@vger.kernel.org" , "johannes@sipsolutions.net" , "yeohchunyeow@gmail.com" , "yeohchunyeow@cozybit.com" Subject: Re: [PATCH v5 5/5] mac80211: only set CSA beacon when at least one beacon must be transmitted Date: Thu, 14 Nov 2013 15:07:35 +0000 Message-ID: <1384441625.22010.7.camel@porter.coelho.fi> (sfid-20131114_160856_665352_036B6C1A) References: <1384430976-13708-1-git-send-email-luciano.coelho@intel.com> <1384430976-13708-5-git-send-email-luciano.coelho@intel.com> <201311141553.16912.sw@simonwunderlich.de> In-Reply-To: <201311141553.16912.sw@simonwunderlich.de> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: T24gVGh1LCAyMDEzLTExLTE0IGF0IDE1OjUzICswMTAwLCBTaW1vbiBXdW5kZXJsaWNoIHdyb3Rl Og0KPiA+IEBAIC0zMTIyLDkgKzMxNTgsMTYgQEAgaW50IGllZWU4MDIxMV9jaGFubmVsX3N3aXRj aChzdHJ1Y3Qgd2lwaHkgKndpcGh5LA0KPiA+IHN0cnVjdCBuZXRfZGV2aWNlICpkZXYsIHBhcmFt cy0+Y2hhbmRlZi5jaGFuLT5iYW5kKQ0KPiA+ICAJCQlyZXR1cm4gLUVJTlZBTDsNCj4gPiANCj4g PiAtCQllcnIgPSBpZWVlODAyMTFfaWJzc19jc2FfYmVhY29uKHNkYXRhLCBwYXJhbXMpOw0KPiA+ IC0JCWlmIChlcnIgPCAwKQ0KPiA+IC0JCQlyZXR1cm4gZXJyOw0KPiA+ICsJCS8qIHNlZSBjb21t ZW50cyBhbmQgVE9ETyBpbiB0aGUgTkw4MDIxMV9JRlRZUEVfQVAgYmxvY2sgKi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