Regarding to TI WL1283 support in the "hciattach" command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

Recently, I got one TI WL1283 devkit, which is not supported in the
current bluez code. When I am trying to attach it to my ubuntu desktop
by running the
    "hciattach ttyUSB0 texasalt 115200"
command, I failed because "wl1283" can not be recognized.
In order to make it work, I read through the code in
"tools/hciattach_tialt.c", and made several code changes in
"texasalt_init()" function. And here is the diff:

index 1ba009c..2514ee0 100644
--- a/tools/hciattach_tialt.c
+++ b/tools/hciattach_tialt.c
@@ -211,7 +211,7 @@ int texasalt_init(int fd, int speed, struct termios *ti)
        {
                unsigned short lmp_subv = resp[13] | (resp[14] << 8);
                unsigned short brf_chip = (lmp_subv & 0x7c00) >> 10;
-               static const char *c_brf_chip[8] = {
+               static const char *c_brf_chip[11] = {
                        "unknown",
                        "unknown",
                        "brf6100",
@@ -219,7 +219,10 @@ int texasalt_init(int fd, int speed, struct termios *ti)
                        "brf6300",
                        "brf6350",
                        "unknown",
-                       "wl1271"
+                       "wl1271",
+                       "unknown",
+                       "unknown",
+                       "wl1283"
                };
                char fw[100];

@@ -231,7 +234,7 @@ int texasalt_init(int fd, int speed, struct termios *ti)
                                "\tchip: %s (%d)\n",
                                lmp_subv & 0x7f,
                                ((lmp_subv & 0x8000) >> (15-3)) |
((lmp_subv & 0x380) >> 7),
-                               ((brf_chip > 7) ? "unknown" :
c_brf_chip[brf_chip]),
+                               ((brf_chip > 10) ? "unknown" :
c_brf_chip[brf_chip]),
                                brf_chip);

                sprintf(fw, "/etc/firmware/%s.bin", c_brf_chip[brf_chip]);

Is there anybody from TI can update the code to support WL1283? Or can
I commit the code to bluez? Thank you!

-- 
best regards,
Xi Minjun
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux