OSDN Git Service

Change UART speed before Bluetooth firmware download.
authorJames Luan <james.luan@motorola.com>
Fri, 28 Aug 2009 18:23:33 +0000 (13:23 -0500)
committerNick Pelly <npelly@google.com>
Mon, 31 Aug 2009 23:22:43 +0000 (16:22 -0700)
tools/hciattach_tialt.c

index dcd3de4..325e006 100644 (file)
@@ -263,9 +263,8 @@ int texasalt_init(int fd, int speed, struct termios *ti)
                                brf_chip);
 
                sprintf(fw, "/etc/firmware/%s.bin", c_brf_chip[brf_chip]);
-               texas_load_firmware(fd, fw);
-
                texas_change_speed(fd, ti, speed);
+               texas_load_firmware(fd, fw);
        }
        nanosleep(&tm, NULL);
        return 0;