use baud rate from bt_control_iphone

This commit is contained in:
matthias.ringwald 2012-04-05 15:34:28 +00:00
parent 71d5d6607b
commit a6df61e87f

View File

@ -163,7 +163,7 @@ static int h4_open(void *transport_config)
goto err_out3;
}
cfmakeraw(&toptions);
speed_t brate = 3000000;
speed_t brate = (speed_t) hci_uart_config->baudrate_init;
cfsetspeed(&toptions, brate);
toptions.c_iflag |= IGNPAR;
toptions.c_cflag = 0x00038b00;