Return-path: Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:29455 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753011AbbKZI1N (ORCPT ); Thu, 26 Nov 2015 03:27:13 -0500 From: David Lin To: Johannes Berg , Kalle Valo CC: "linux-wireless@vger.kernel.org" , "Chor Teck Law" , Pete Hsieh Subject: RE: [PATCH v7] Add new mac80211 driver mwlwifi. Date: Thu, 26 Nov 2015 08:27:06 +0000 Message-ID: <097ef0472294430d98940ad601a4aade@SC-EXCH02.marvell.com> (sfid-20151126_092718_034998_AC0080EB) References: <1448018530.3141.25.camel@sipsolutions.net> In-Reply-To: <1448018530.3141.25.camel@sipsolutions.net> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: PiBPbiBOb3ZlbWJlciAyMCwgMjAxNSA3OjIyIFBNLCBKb2hhbm5lcyBCZXJnIHdyb3RlOg0KPiAN Cj4gT24gVGh1LCAyMDE1LTExLTEyIGF0IDAzOjUxICswMDAwLCBEYXZpZCBMaW4gd3JvdGU6DQo+ ID4NCj4gPiArc3RhdGljIGludCBwcmludF9tYWNfYWRkcihjaGFyICpwLCB1OCAqbWFjX2FkZHIp IHsNCj4gPiArCWludCBpOw0KPiA+ICsJY2hhciAqc3RyID0gcDsNCj4gPiArDQo+ID4gKwlzdHIg Kz0gc3ByaW50ZihzdHIsICJtYWMgYWRkcmVzczogJTAyeCIsIG1hY19hZGRyWzBdKTsNCj4gPiAr CWZvciAoaSA9IDE7IGkgPCBFVEhfQUxFTjsgaSsrKQ0KPiA+ICsJCXN0ciArPSBzcHJpbnRmKHN0 ciwgIjolMDJ4IiwgbWFjX2FkZHJbaV0pOw0KPiA+ICsJc3RyICs9IHNwcmludGYoc3RyLCAiXG4i KTsNCj4gPiArDQo+ID4gKwlyZXR1cm4gKHN0ciAtIHApOw0KPiA+ICt9DQo+IA0KPiBZb3UgY2Fu IH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