Return-path: Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:27085 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751578AbbJUDlq (ORCPT ); Tue, 20 Oct 2015 23:41:46 -0400 From: Amitkumar Karwar To: Avinash Patil , Marty Faltesek CC: "linux-wireless@vger.kernel.org" , "Nishant Sarmukadam" , Denton Gentry , "Avery Pennarun" Subject: RE: [PATCH] mwifiex: toggle carrier state in start_ap/stop_ap. Date: Wed, 21 Oct 2015 03:41:40 +0000 Message-ID: <6a3b7114d8dd48ecba00189eb9918380@SC-EXCH04.marvell.com> (sfid-20151021_054149_774827_08B70D67) References: <1445280550-13673-1-git-send-email-mfaltesek@google.com> In-Reply-To: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: SGkgQXZpbmFzaA0KDQo+IEZyb206IGxpbnV4LXdpcmVsZXNzLW93bmVyQHZnZXIua2VybmVsLm9y ZyBbbWFpbHRvOmxpbnV4LXdpcmVsZXNzLQ0KPiBvd25lckB2Z2VyLmtlcm5lbC5vcmddIE9uIEJl aGFsZiBPZiBBdmluYXNoIFBhdGlsDQo+IFNlbnQ6IFdlZG5lc2RheSwgT2N0b2JlciAyMSwgMjAx NSAxOjUwIEFNDQo+IFRvOiBNYXJ0eSBGYWx0ZXNlaw0KPiBDYzogbGludXgtd2lyZWxlc3NAdmdl ci5rZXJuZWwub3JnOyBBbWl0a3VtYXIgS2Fyd2FyOyBOaXNoYW50DQo+IFNhcm11a2FkYW07IERl bnRvbiBHZW50cnk7IEF2ZXJ5IFBlbm5hcnVuDQo+IFN1YmplY3Q6IFJlOiBbUEFUQ0hdIG13aWZp ZXg6IHRvZ2dsZSBjYXJyaWVyIHN0YXRlIGluIHN0YXJ0X2FwL3N0b3BfYXAuDQo+IA0KPiBIZWxs byBNYXJ0eSwNCj4gDQo+IA0KPiBPbiBNb24sIE9jdCAxOSwgMjAxN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