Fix the termination issue 2.0alpha master 2.0_alpha accepted/tizen/20130520.102751 submit/master/20120920.151046 submit/tizen/20130517.015436
authorInjun Yang <injun.yang@samsung.com>
Fri, 7 Sep 2012 15:34:00 +0000 (00:34 +0900)
committerInjun Yang <injun.yang@samsung.com>
Fri, 7 Sep 2012 15:34:00 +0000 (00:34 +0900)
Issue : data-router is not terminated
Cause : Undefined vconf key used
Fix description
- Change vconf key
- Remove unused vconf key

Change-Id: I00b1dd9fd02cb8a5c11eb52089bf2597c9febc2a

debian/changelog
packaging/data-router.spec
src/dr-noti-handler.c

index aa9b325513d399260499b873c424fc44af80cefd..80997ee03d5fa81757a6e761309e7e703b9adae0 100755 (executable)
@@ -1,3 +1,11 @@
+data-router (0.2.14) unstable; urgency=low
+
+  * Upload the package
+  * Git: slp/pkgs/d/data-router
+  * Tag: data-router_0.2.14
+
+ -- InJun Yang <injun.yang@samsung.com>  Sat, 08 Sep 2012 00:10:56 +0900
+
 data-router (0.2.13) unstable; urgency=low
 
   * Remove libdata-router package
 data-router (0.2.13) unstable; urgency=low
 
   * Remove libdata-router package
index ab3dd5cf1d566ca407a8530db9137a4e77bec402..cbcd1dd773cc2e68c1371a50d79e0b5ae47bb40b 100644 (file)
@@ -1,6 +1,6 @@
 Name:       data-router
 Summary:    Data Router
 Name:       data-router
 Summary:    Data Router
-Version:    0.2.13
+Version:    0.2.14
 Release:    0
 Group:      TO_BE/FILLED_IN
 License:    TO BE FILLED IN
 Release:    0
 Group:      TO_BE/FILLED_IN
 License:    TO BE FILLED IN
@@ -29,7 +29,7 @@ rm -rf %{buildroot}
 
 
 %post
 
 
 %post
-/usr/bin/vconftool set -t int memory/data_router/osp_serial_open "0" -i
+/usr/bin/vconftool set -t int memory/data_router/osp_serial_open "0" -u 0 -i -f
 %postun
 
 
 %postun
 
 
index 5b6cd03e33e9779602c67471c159afc18a9fb785..4429a1f1e4398efac40cddd484ba7a814eb5c152 100644 (file)
@@ -46,14 +46,13 @@ static void __usb_noti_handler(void *data)
        int usb_state = -1;
        int usb_mode = -1;
        int ret;
        int usb_state = -1;
        int usb_mode = -1;
        int ret;
-       int mobileap_mode;
 
        if (_get_usb_state(&usb_state) < 0) {
                ERR(" Unable to get usb status !\n");
                return;
        }
 
 
        if (_get_usb_state(&usb_state) < 0) {
                ERR(" Unable to get usb status !\n");
                return;
        }
 
-       ret = vconf_get_int(VCONFKEY_SETAPPL_USB_SEL_MODE_INT, &usb_mode);
+       ret = vconf_get_int(VCONFKEY_SETAPPL_USB_MODE_INT, &usb_mode);
        if (ret != 0) {
                DBG("Vconf get failed\n");
                return;
        if (ret != 0) {
                DBG("Vconf get failed\n");
                return;
@@ -62,16 +61,6 @@ static void __usb_noti_handler(void *data)
        DBG("USB noti handler, USB state : %d, Mode : %d\n", usb_state, usb_mode);
        DBG("usb_fd = 0x%x\n", dr_info.usb.usb_fd);
 
        DBG("USB noti handler, USB state : %d, Mode : %d\n", usb_state, usb_mode);
        DBG("usb_fd = 0x%x\n", dr_info.usb.usb_fd);
 
-       ret = vconf_get_int(VCONFKEY_MOBILE_HOTSPOT_MODE, &mobileap_mode);
-       if (ret != 0) {
-               DBG("Vconf get failed\n");
-               return;
-       }
-
-       if (mobileap_mode & VCONFKEY_MOBILE_HOTSPOT_MODE_USB) {
-               DBG("MobileAP_USB enabled. Do not initialize USB\n");
-               return;
-       }
 
        /*
         * If USB driver builted in the Kernel, VCONFKEY_SYSMAN_USB_CONNECTED is not used.
 
        /*
         * If USB driver builted in the Kernel, VCONFKEY_SYSMAN_USB_CONNECTED is not used.
@@ -95,7 +84,7 @@ static void __usb_mode_noti_handler(void *data)
        int usb_mode = -1;
        int ret;
 
        int usb_mode = -1;
        int ret;
 
-       ret = vconf_get_int(VCONFKEY_SETAPPL_USB_SEL_MODE_INT, &usb_mode);
+       ret = vconf_get_int(VCONFKEY_SETAPPL_USB_MODE_INT, &usb_mode);
        if (ret != 0) {
                DBG("Vconf get failed\n");
                return;
        if (ret != 0) {
                DBG("Vconf get failed\n");
                return;
@@ -135,10 +124,10 @@ gboolean _register_vconf_notification(void)
        }
 
        ret =
        }
 
        ret =
-           vconf_notify_key_changed(VCONFKEY_SETAPPL_USB_SEL_MODE_INT,
+           vconf_notify_key_changed(VCONFKEY_SETAPPL_USB_MODE_INT,
                                     (vconf_callback_fn) __usb_mode_noti_handler, NULL);
        if (ret < 0) {
                                     (vconf_callback_fn) __usb_mode_noti_handler, NULL);
        if (ret < 0) {
-               ERR("Error !!! VCONFKEY reg noti  : %s\n", VCONFKEY_SETAPPL_USB_SEL_MODE_INT);
+               ERR("Error !!! VCONFKEY reg noti  : %s\n", VCONFKEY_SETAPPL_USB_MODE_INT);
        }
 
        return TRUE;
        }
 
        return TRUE;
@@ -147,7 +136,7 @@ gboolean _register_vconf_notification(void)
 void _unregister_vconf_notification(void)
 {
        vconf_ignore_key_changed(VCONFKEY_SYSMAN_USB_STATUS, (vconf_callback_fn) __usb_noti_handler);
 void _unregister_vconf_notification(void)
 {
        vconf_ignore_key_changed(VCONFKEY_SYSMAN_USB_STATUS, (vconf_callback_fn) __usb_noti_handler);
-       vconf_ignore_key_changed(VCONFKEY_SETAPPL_USB_SEL_MODE_INT, (vconf_callback_fn) __usb_mode_noti_handler);
+       vconf_ignore_key_changed(VCONFKEY_SETAPPL_USB_MODE_INT, (vconf_callback_fn) __usb_mode_noti_handler);
        return;
 }
 
        return;
 }