Modify the privilege for battry RX / TX function
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / bt-common.c
index 496d94b..2161643 100644 (file)
@@ -133,11 +133,11 @@ bt_user_info_t *_bt_get_user_data(int type)
        return &user_info[type];
 }
 
-int _bt_common_send_rfcomm_rx_details(bluetooth_rfcomm_received_data_t *data)
+int _bt_common_send_rfcomm_rx_details(int len)
 {
        uid_t uid = getuid();
        pid_t pid = getpid();
-       int size = data->buffer_size;
+       int size = len;
        int ret = BLUETOOTH_ERROR_NONE;
 
        BT_INFO("+");
@@ -175,14 +175,13 @@ int _bt_common_send_rfcomm_tx_details(int len)
                in_param1, in_param2, in_param3, in_param4, &out_param);
 
        BT_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param);
-       BT_DBG("-");
+       BT_INFO("-");
        return ret;
 }
 
 void _bt_common_event_cb(int event, int result, void *param,
                                        void *callback, void *user_data)
 {
-       BT_DBG("+");
        bluetooth_event_param_t bt_event = { 0, };
        bt_event.event = event;
        bt_event.result = result;
@@ -2496,6 +2495,8 @@ BT_EXPORT_API int bluetooth_unregister_callback(void)
 
        _bt_set_obex_server_id(BT_NO_SERVER);
 
+       _bt_reset_battery_monitor_info();
+
        _bt_gdbus_deinit_proxys();
 
        if (profile_gproxy) {