Return-Path: From: "Li, Nami" To: Slawomir Bochenski CC: Luiz Augusto von Dentz , "linux-bluetooth@vger.kernel.org" Subject: RE: [PATCH obexd] Return correct obex service driver in obex_session_start Date: Fri, 1 Jul 2011 02:50:46 +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: DQoNCi0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQpGcm9tOiBTbGF3b21pciBCb2NoZW5za2kg W21haWx0bzpsa3NsYXdla0BnbWFpbC5jb21dIA0KU2VudDogMjAxMeW5tDbmnIgzMOaXpSAxODoy Ng0KVG86IExpLCBOYW1pDQpDYzogTHVpeiBBdWd1c3RvIHZvbiBEZW50ejsgbGludXgtYmx1ZXRv b3RoQHZnZXIua2VybmVsLm9yZw0KU3ViamVjdDogUmU6IFtQQVRDSCBvYmV4ZF0gUmV0dXJuIGNv cnJlY3Qgb2JleCBzZXJ2aWNlIGRyaXZlciBpbiBvYmV4X3Nlc3Npb25fc3RhcnQNCg0KT24gVGh1 LCBKdW4gMzAsIDIwMTEgYXQgMTI6MDEgUE0sIExpLCBOYW1pIDxuYW1pQHFjYS5xdWFsY29tbS5j b20+IHdyb3RlOg0KPiBXZWxsLCBpZiB0aGUgcHJvZmlsZSBpcyBPUFAsIHRoZW4geW91IGNhbiBn ZXQgY29ycmVjdCBzZXJ2aWNlIGRyaXZlci4gQnV0IGlmIHRoZSBwcm9maWxlIGlzIEZUUCwgYmVj YXVzZSBpbiBmdHAuYzoNCj4NCj4gc3RhdGljIHN0cnVjdCBvYmV4X3NlcnZpY2VfZHJpdmVyIGZ0 cCA9IHsNCj4gwqAgwqAgwqAgwqAubmFtZSA9ICJGaWxlIFRyYW5zZmVyIHNlcnZlciIsDQo+IMKg IMKgIMKgIMKgLnNlcnZpY2UgPSBPQkVYX0ZUUCwNCj4gwqAgwqAgwqAgwqAu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