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

[bluetooth-dev] Setting baudrate in CSR



Currently, btd does not set the baudrate given with -s if the chip is CSR. 
Doing that is very simple: just add a few lines to the function 
csr_init_hw:

after

  sleep(1); /* wait for HW */
#endif

add

#ifndef BTD_USERSTACK
  if (ioctl(bt_cfd, HCISETBAUDRATE, &spd) < 0)
  {
    perror("HCISETBAUDRATE");
    exit(1);
  }
#else
  hci_set_baudrate(spd);
#endif

Note that this will not work with old version of CSR firmware, but it does 
with newer ones.

Fabrizio Gennari
Philips Research Monza
via G.Casati 23, 20052 Monza (MI), Italy
tel. +39 039 2037816, fax +39 039 2037800
-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com