diff options
author | zzy <zhenye@broadcom.com> | 2012-04-04 11:22:30 -0700 |
---|---|---|
committer | Matthew Xie <mattx@google.com> | 2012-07-14 11:19:14 -0700 |
commit | b888218fb9061d8ddf41013dba6d0956b3322fd6 (patch) | |
tree | 58e048fac9c68b8dadf8d41c7635f01e32486734 /btif/src | |
parent | 666f92c7f05a39c059572189b37729b49ba4f043 (diff) | |
download | external_bluetooth_bluedroid-b888218fb9061d8ddf41013dba6d0956b3322fd6.zip external_bluetooth_bluedroid-b888218fb9061d8ddf41013dba6d0956b3322fd6.tar.gz external_bluetooth_bluedroid-b888218fb9061d8ddf41013dba6d0956b3322fd6.tar.bz2 |
patch to add init code for socket interface
Change-Id: If3cd6aeb9fcde7540b4072bb5018e8b89b2d4715
Diffstat (limited to 'btif/src')
-rw-r--r-- | btif/src/btif_core.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/btif/src/btif_core.c b/btif/src/btif_core.c index 2226a0f..66f0a7e 100644 --- a/btif/src/btif_core.c +++ b/btif/src/btif_core.c @@ -67,7 +67,7 @@ #include "bd.h" #include "btif_storage.h" #include "btif_util.h" - +#include "btif_sock.h" /************************************************************************************ ** Constants & Macros ************************************************************************************/ @@ -423,10 +423,14 @@ void btif_enable_bluetooth_evt(tBTA_STATUS status, BD_ADDR local_bd) { /* store state */ btif_enabled = 1; + //init rfcomm & l2cap api + btif_sock_init(); HAL_CBACK(bt_hal_cbacks, adapter_state_changed_cb, BT_STATE_ON); } else { + //cleanup rfcomm & l2cap api + btif_sock_cleanup(); btif_enabled = 0; HAL_CBACK(bt_hal_cbacks, adapter_state_changed_cb, BT_STATE_OFF); } |