Return-path: Received: from mga02.intel.com ([134.134.136.20]:5290 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754270Ab3LEJDH (ORCPT ); Thu, 5 Dec 2013 04:03:07 -0500 From: "Coelho, Luciano" To: Yeoh Chun-Yeow CC: "linux-wireless@vger.kernel.org" , "Simon Wunderlich" , Chun-Yeow Yeoh Subject: Re: [PATCH v6 5/5] mac80211: only set CSA beacon when at least one beacon must be transmitted Date: Thu, 5 Dec 2013 09:03:01 +0000 Message-ID: <1386234180.3878.8.camel@porter.coelho.fi> (sfid-20131205_100314_282749_1CE4F452) References: <1386078502-19845-1-git-send-email-luciano.coelho@intel.com> <1386078502-19845-6-git-send-email-luciano.coelho@intel.com> In-Reply-To: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: T24gV2VkLCAyMDEzLTEyLTA0IGF0IDE3OjQ1ICswODAwLCBZZW9oIENodW4tWWVvdyB3cm90ZToN Cj4gT24gV2VkLCBEZWMgNCwgMjAxMyBhdCA1OjM1IFBNLCBZZW9oIENodW4tWWVvdyA8eWVvaGNo dW55ZW93QGdtYWlsLmNvbT4gd3JvdGU6DQo+ID4+ICAjaWZkZWYgQ09ORklHX01BQzgwMjExX01F U0gNCj4gPj4gICAgICAgICBjYXNlIE5MODAyMTFfSUZUWVBFX01FU0hfUE9JTlQ6DQo+ID4+IEBA IC0zMTU5LDEyICszMjA4LDE4IEBAIGludCBpZWVlODAyMTFfY2hhbm5lbF9zd2l0Y2goc3RydWN0 IHdpcGh5ICp3aXBoeSwgc3RydWN0IG5ldF9kZXZpY2UgKmRldiwNCj4gPj4gICAgICAgICAgICAg ICAgIGlmIChpZm1zaC0+Y3NhX3JvbGUgPT0gSUVFRTgwMjExX01FU0hfQ1NBX1JPTEVfTk9ORSkN Cj4gPj4gICAgICAgICAgICAgICAgICAgICAgICAgaWZtc2gtPmNzYV9yb2xlID0gSUVFRTgwMjEx X01FU0hfQ1NBX1JPTEVfSU5JVDsNCj4gPj4NCj4gPj4gLSAgICAgICAgICAgICAgIGVyciA9IGll ZWU4MDIxMV9tZXNoX2NzYV9iZWFjb24oc2RhdGEsIHBhcmFtcywNCj4gPj4gLSAgICAgICAgICAg ICAgICAgICAgICAgKGlmbXNoLT5jc2Ffcm9sZSA9PSBJRUVFODAyMTFfTUVTSF9DU0FfUk9MRV9J TklUKSk7DQo+ID4+IC0gICAgICAgICAgICAgICBpZiAoZXJyIDwgMCkgew0KPiA+PiAtICAgICAg ICAgICAgICAgICAgICAgICBpZm1zaC0+Y3NhX3JvbGUgPSBJRUVFODAyMTFfTUVTSF9DU0FfUk9M RV9OT05FOw0KPiA+PiAtICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gZXJyOw0KPiA+PiAr ICAgICAgICAgICAgICAgaWYgKHBhcmFtcy0+Y291bnQgPiAxKSB7DQo+ID4+ICsgICAgICAgICAg ICAgICAgICAgICAgIGVyciA9IGllZWU4MDIxMV9tZXNoX2NzYV9iZWFjb24oc2RhdGEsIHBhcmFt cyk7DQo+ID4+ICsgICAgICAgICAgICAgICAgICAgICAgIGlmIChlcnIgPCAwKSB7DQo+ID4+ICsg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWZtc2gtPmNzYV9yb2xlID0gSUVFRTgwMjEx X01FU0hfQ1NBX1JPTEVfTk9ORTsNCj4gPj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICByZXR1cm4gZXJyOw0KPiA+PiArICAgICAgICAgICAgICAgICAgICAgICB9DQo+ID4+ICsgICAg ICAgICAgICAgICAgICAgICAgIGNoYW5nZWQgfD0gZXJyOw0KPiA+PiAgICAgICAgICAgICAgICAg fQ0KPiA+DQo+ID4gU2luY2UgdGhlIGllZWU4MDIxMV9tZXNoX2NzYV9iZWFjb24gaXMgbm90IGNh bGxlZCwgdGhlIGtmcmVlX3JjdSBvZg0KPiA+IHRtcF9jc2Ffc2V0dGluZ3MgaW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