Return-path: Received: from mga01.intel.com ([192.55.52.88]:39652 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751985AbaFFHhx (ORCPT ); Fri, 6 Jun 2014 03:37:53 -0400 From: "Coelho, Luciano" To: "michal.kazior@tieto.com" CC: "linux-wireless@vger.kernel.org" , "Grumbach, Emmanuel" , "johannes@sipsolutions.net" Subject: Re: [PATCH 3/3] mac80211: stop only the queues assigned to the vif during channel switch Date: Fri, 6 Jun 2014 07:37:31 +0000 Message-ID: <1402040251.2004.20.camel@dubbel> (sfid-20140606_093757_236194_FEB2E8C0) References: <1401985567-27336-3-git-send-email-emmanuel.grumbach@intel.com> <1402036258.2004.10.camel@dubbel> In-Reply-To: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: T24gRnJpLCAyMDE0LTA2LTA2IGF0IDA4OjQ0ICswMjAwLCBNaWNoYWwgS2F6aW9yIHdyb3RlOg0K PiBPbiA2IEp1bmUgMjAxNCAwODozMSwgQ29lbGhvLCBMdWNpYW5vIDxsdWNpYW5vLmNvZWxob0Bp bnRlbC5jb20+IHdyb3RlOg0KPiA+IE9uIEZyaSwgMjAxNC0wNi0wNiBhdCAwNzo1MSArMDIwMCwg TWljaGFsIEthemlvciB3cm90ZToNCj4gPj4gT24gNSBKdW5lIDIwMTQgMTg6MjYsIEVtbWFudWVs IEdydW1iYWNoIDxlbW1hbnVlbC5ncnVtYmFjaEBpbnRlbC5jb20+IHdyb3RlOg0KPiBbLi4uXQ0K PiA+PiA+IEBAIC0zMTQ2LDkgKzMxNDUsOCBAQCBzdGF0aWMgaW50IF9faWVlZTgwMjExX2NzYV9m aW5hbGl6ZShzdHJ1Y3QgaWVlZTgwMjExX3N1Yl9pZl9kYXRhICpzZGF0YSkNCj4gPj4gPiAgICAg ICAgIGNmZzgwMjExX2NoX3N3aXRjaF9ub3RpZnkoc2RhdGEtPmRldiwgJnNkYXRhLT5jc2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