Skip to contentSkip to conversation

hciattach: download configuration at user requested baud rate

PATCH In review Suraj Sumangala 2 participants 2 messages Nov 23, 2010 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

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
index 7cb8e9e..e4d5aa1 100644
@@ -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
index 2d26b77..fed0d11 100644
@@ -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
#1 lore raw

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