hciattach: download configuration at user requested baud rate
PATCH v2 1/1 hciattach: download configuration at user requested baud rate
This patch support downloading configuration for Atheros AR300x HCI UART chip at user requested baud rate instead of the initial baud rate.
--- tools/hciattach.c | 2 +- tools/hciattach.h | 3 +- tools/hciattach_ath3k.c | 98 +++++++++++++++++++++++++++++++++------------- 3 files changed, 73 insertions(+), 30 deletions(-)
tools/hciattach.c +1 -1
@@ -311,7 +311,7 @@ static int texasalt(int fd, struct uart_t *u, struct termios *ti)static int ath3k_ps (int fd,struct uart_t *u,struct termios *ti) { -return ath3k_init (fd, u->bdaddr, u->speed); +return ath3k_init (fd, u->speed, u->init_speed, u->bdaddr, ti); }static int ath3k_pm (int fd,struct uart_t *u,struct termios *ti)
tools/hciattach.h +2 -1
@@ -50,6 +50,7 @@ int texas_post(int fd, struct termios *ti);int texasalt_init (int fd,int speed,struct termios *ti);int stlc2500_init (int fd,bdaddr_t *bdaddr);int bgb2xx_init (int dd,bdaddr_t *bdaddr); -int ath3k_init (int fd,char *bdaddr,int speed); +int ath3k_init (int fd,int speed,int init_speed,char *bdaddr, +struct termios *ti);int ath3k_post (int fd,int pm);int qualcomm_init (int fd,int speed,struct termios *ti,const char *bdaddr);
tools/hciattach_ath3k.c +70 -28
140 lines not on this page · raw message
Signature · 1 line
1.7.0.4
Hi Suraj,
Quoted 8 lines · Suraj Sumangala
This patch support downloading configuration for Atheros AR300x HCI UART chip at user requested baud rate instead of the initial baud rate.
--- tools/hciattach.c | 2 +- tools/hciattach.h | 3 +- tools/hciattach_ath3k.c | 98 +++++++++++++++++++++++++++++++++------------- 3 files changed, 73 insertions(+), 30 deletions(-)
Thanks for the update. Now this patch is also pushed upstream.
Johan