Return-Path: MIME-Version: 1.0 Date: Fri, 4 Apr 2008 13:54:42 -0500 Message-ID: <1207335282.19116.5.camel@mlimonciello> From: To: Subject: [Bluez-devel] [PATCH] Add HID->HCI switching support for newer Dell BT cards Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============2097626798==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --===============2097626798== Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="=-L9QVnqVtI+kjp+YFDUBm" Content-class: urn:content-classes:message --=-L9QVnqVtI+kjp+YFDUBm Content-Type: multipart/mixed; boundary="=-K9TRzP5X10arYqAg1RMu" --=-K9TRzP5X10arYqAg1RMu Content-Type: multipart/alternative; boundary="=-ki0OmxpHPEY9SorVuQI1" --=-ki0OmxpHPEY9SorVuQI1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, As I've recently discovered, the more recent (Dell Wireless 370+) BT adapters with the latest firmware don't come up in Bluetooth Radio mode. They come up in a HID/UHE dongle like mode before the OS loads and expect the OS to transition the device to HCI mode. Unfortunately, the transition to HCI mode isn't done in the same fashion as the existing switch_hidproxy function available in hid2hci. I'm attaching a patch to hid2hci that adds a function for the expected behavior on these newer adapters.=20 The device that needs to have the report sent to it is claimed by usbhid at OS load time, so there are some calls in there to release it from usbhid. I tested this against a Dell 370 BT adapter. =EF=BB=BFThis should be the s= ame for the newer adapters (after the 370), but I haven't verified them yet, so there may be an additional patch needed for it. Thanks, =20 --- Mario Limonciello Dell | Linux Engineering mario_limonciello@dell.com --=-ki0OmxpHPEY9SorVuQI1 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello,

As I've recently discovered, the more recent (Dell Wireless 370+) BT adapte= rs with the latest firmware don't come up in Bluetooth Radio mode.  Th= ey come up in a HID/UHE dongle like mode before the OS loads and expect the= OS to transition the device to HCI mode.  Unfortunately, the transiti= on to HCI mode isn't done in the same fashion as the existing switch_hidpro= xy function available in hid2hci.  I'm attaching a patch to hid2hci th= at adds a function for the expected behavior on these newer adapters.

The device that needs to have the report sent to it is claimed by usbhid at= OS load time, so there are some calls in there to release it from usbhid.<= BR>
I tested this against a Dell 370 BT adapter.  This should be t= he same for the newer adapters (after the 370), but I haven't verified them= yet, so there may be an additional patch needed for it.

Thanks,

---
Mario Limonciello Dell <= B>| Linux Engineering
mario_limonciello@dell.com<= /FONT>


--=-ki0OmxpHPEY9SorVuQI1-- --=-K9TRzP5X10arYqAg1RMu Content-Disposition: attachment; filename=007_dell_bluetooth.patch Content-Type: text/x-patch; name=007_dell_bluetooth.patch; charset=UTF-8 Content-Transfer-Encoding: base64 ZGlmZiAtTnVyIC14ICcqLm9yaWcnIC14ICcqficgYmx1ZXotdXRpbHMtMy4yNi90b29scy9oaWQy aGNpLmMgYmx1ZXotdXRpbHMtMy4yNi5uZXcvdG9vbHMvaGlkMmhjaS5jDQotLS0gYmx1ZXotdXRp bHMtMy4yNi90b29scy9oaWQyaGNpLmMJMjAwOC0wMi0wMSAxNzoxNjozNC4wMDAwMDAwMDAgLTA2 MDANCisrKyBibHVlei11dGlscy0zLjI2Lm5ldy90b29scy9oaWQyaGNpLmMJMjAwOC0wNC0wNCAx MzozNDoxMy4wMDAwMDAwMDAgLTA1MDANCkBAIC0yMTEsNiArMjExLDQyIEBADQogCXJldHVybiBl cnI7DQogfQ0KIA0KK3N0YXRpYyBpbnQgc3dpdGNoX2RlbGwoc3RydWN0IGRldmljZV9pbmZvICpk ZXZpbmZvKQ0KK3sNCisJY2hhciByZXBvcnRbXSA9IHsgMHg3RiwgMHgxMywgMHgwMCwgMHgwMH07 DQorDQorCXN0cnVjdCB1c2JfZGV2X2hhbmRsZSAqaGFuZGxlOw0KKwlpbnQgZXJyOw0KKw0KKwkv L3JlbGVhc2UgYW55IGxvY2tzIHRoYXQgdGhlIGtlcm5lbCB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8qIExvZ2l0ZWNoIGRpTm92byBF ZGdlICovDQogCXsgSENJLCAweDA0NmQsIDB4YzcxNCwgc3dpdGNoX2xvZ2l0ZWNoIH0sCS8qIExv Z2l0ZWNoIGRpTm92byBFZGdlICovDQorCXsgSENJLCAweDQxM2MsIDB4ODE1OCwgc3dpdGNoX2Rl bGwgfSwJCS8qIERlbGwgV2lyZWxlc3MgMzcwICovDQogCXsgLTEgfQ0KIH07DQogDQo= --=-K9TRzP5X10arYqAg1RMu-- --=-L9QVnqVtI+kjp+YFDUBm Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBH9nly2CrZjkA73YsRAo0nAJ9atS7yXv0s4LahBP1LohMPYKjjLgCgmIbt tpb/CdPz/c362Dj2dM2cUz0= =deVU -----END PGP SIGNATURE----- --=-L9QVnqVtI+kjp+YFDUBm-- --===============2097626798== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace --===============2097626798== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel --===============2097626798==--