Return-Path: From: "Li, Nami" To: Luiz Augusto von Dentz CC: Slawomir Bochenski , "linux-bluetooth@vger.kernel.org" Subject: RE: [PATCH obexd] Return correct obex service driver in obex_session_start Date: Fri, 1 Jul 2011 07:50:58 +0000 Message-ID: References: <1309419294-9903-1-git-send-email-nami.li@atheros.com> In-Reply-To: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: SGksIEx1aXoNCg0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206IEx1aXogQXVndXN0 byB2b24gRGVudHogW21haWx0bzpsdWl6LmRlbnR6QGdtYWlsLmNvbV0gDQpTZW50OiAyMDEx5bm0 N+aciDHml6UgMTQ6NTINClRvOiBMaSwgTmFtaQ0KQ2M6IFNsYXdvbWlyIEJvY2hlbnNraTsgbGlu dXgtYmx1ZXRvb3RoQHZnZXIua2VybmVsLm9yZw0KU3ViamVjdDogUmU6IFtQQVRDSCBvYmV4ZF0g UmV0dXJuIGNvcnJlY3Qgb2JleCBzZXJ2aWNlIGRyaXZlciBpbiBvYmV4X3Nlc3Npb25fc3RhcnQN Cg0KSGksDQoNCk9uIEZyaSwgSnVsIDEsIDIwMTEgYXQgNTo1MCBBTSwgTGksIE5hbWkgPG5hbWlA cWNhLnF1YWxjb21tLmNvbT4gd3JvdGU6DQo+DQo+DQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0t LS0tDQo+IEZyb206IFNsYXdvbWlyIEJvY2hlbnNraSBbbWFpbHRvOmxrc2xhd2VrQGdtYWlsLmNv bV0NCj4gU2VudDogMjAxMeW5tDbmnIgzMOaXpSAxODoyNg0KPiBUbzogTGksIE5hbWkNCj4gQ2M6 IEx1aXogQXVndXN0byB2b24gRGVudHo7IGxpbnV4LWJsdWV0b290aEB2Z2VyLmtlcm5lbC5vcmcN Cj4gU3ViamVjdDogUmU6IFtQQVRDSCBvYmV4ZF0gUmV0dXJuIGNvcnJlY3Qgb2Jle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