Return-path: Received: from mga03.intel.com ([143.182.124.21]:40629 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750891AbaERHKU (ORCPT ); Sun, 18 May 2014 03:10:20 -0400 From: "Grumbach, Emmanuel" To: "andrea.merello@gmail.com" , "Berg, Johannes" CC: Linux Wireless List , "oku@masqmail.cx" , "joerg.albert@gmx.de" , "alex@foogod.com" , "n0_5p4m_p13453@hotmail.com" , "proski@gnu.org" , "agx@sigxcpu.org" , "kalle.valo@iki.fi" , "sesmo@gmx.net" , John Linville Subject: RE: [RFC] mac80211: at76x50x_usb driver broken by commit 3afc216.. and RX path involved in scan Date: Sun, 18 May 2014 07:10:08 +0000 Message-ID: <0BA3FCBA62E2DC44AF3030971E174FB303DF6AA5@HASMSX103.ger.corp.intel.com> (sfid-20140518_091331_943726_058EA62D) References: In-Reply-To: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: PiBIZWxsbywNCj4gDQo+IEl0IGhhcHBlbmVkIHRoYXQgc2luY2UgRW1tYW51ZWwncyBjb21taXQN Cj4gM2FmYzIxNjdmNjBhMzI3YTJjMWUxZTI2MDBlZjIwOWEzYzJiNzViNyAoY2ZnODAyMTEvbWFj ODAyMTE6IGlnbm9yZQ0KPiBzaWduYWwgaWYgdGhlIGZyYW1lIHdhcyBoZWFyZCBvbiB3cm9uZyBj aGFubmVsKSBteSBhdG1lbC1iYXNlZCB3aWZpDQo+IGRldmljZSBjb3VsZG4ndCBzY2FuIGFueW1v cmUuDQo+IA0KPiBJIGxvb2tlZCBhdCB0aGlzIGlzc3VlIGFuZCBJIGZvdW5kIHRoZSBjYXVzZSwg YnV0IGN1cnJlbnRseSBJIGhhdmUNCj4gc29tZSBkb3VidHMsIGFuZCBJIHdvdWxkIGxpa2UgYXNr aW5nIGZvciBjbGFyaWZpY2F0aW9uIGFuZCBjb21tZW50cywNCj4gYmVmb3JlIHRyeWluZyB0byBw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AyMTEvbWxtZS5jDQpAQCAtMjc5MSw4ICsyNzkxLDEzIEBAIHN0YXRpYyB2b2lkIGllZWU4MDIx MV9yeF9ic3NfaW5mbyhzdHJ1Y3QgaWVlZTgwMjExX3N1Yl9pZl9kYXRhICpzZGF0YSwNCiAgICAg ICAgc2RhdGFfYXNzZXJ0X2xvY2soc2RhdGEpOw0KIA0KICAgICAgICBjaGFubmVsID0gaWVlZTgw MjExX2dldF9jaGFubmVsKGxvY2FsLT5ody53aXBoeSwgcnhfc3RhdHVzLT5mcmVxKTsNCi0gICAg ICAgaWYgKCFjaGFubmVsKQ0KLSAgICAgICAgICAgICAgIHJldHVybjsNCisgICAgICAgaWYgKCFj aGFubmVsICYmIGVsZW1zLT5kc19wYXJhbXMpIHsNCisgICAgICAgICAgICAgICBpbnQgZnJlcSA9 IGllZWU4MDIxMV9jaGFubmVsX3RvX2ZyZXF1ZW5jeShlbGVtcy0+ZHNfcGFyYW1zWzBdLA0KKyAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJ4 X3N0YXR1cy0+YmFuZCk7DQorICAgICAgICAgICAgICAgY2hhbm5lbCA9IGllZWU4MDIxMV9nZXRf Y2hhbm5lbChsb2NhbC0+aHcud2lwaHksIGZyZXEpOw0KKyAgICAgICAgICAgICAgIGlmICghY2hh bm5lbCB8fCBjaGFubmVsLT5mbGFncyAmIElFRUU4MDIxMV9DSEFOX0RJU0FCTEVEKQ0KKyAgICAg ICAgICAgICAgICAgICAgICAgcmV0dXJuOw0KKyAgICAgICB9DQogDQogICAgICAgIGJzcyA9IGll ZWU4MDIxMV9ic3NfaW5mb191cGRhdGUobG9jYWwsIHJ4X3N0YXR1cywgbWdtdCwgbGVuLCBlbGVt cywNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjaGFubmVsKTsNCg0K PiANCj4gRmluYWxseSBteSBsYXRlc3QgcXVlc3Rpb24gaXM6DQo+IEVtb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