[libnet-client]:update the tech state of tethering 48/37248/1
authorManeesh Jain <maneesh.jain@samsung.com>
Mon, 23 Mar 2015 11:07:51 +0000 (16:37 +0530)
committerManeesh Jain <maneesh.jain@samsung.com>
Mon, 23 Mar 2015 11:08:43 +0000 (16:38 +0530)
Description: This patch uses to fix power state
of wifi device after connection done with router

Change-Id: I8ec513c02d3132e44972084d08dcb7cd7eaa2577
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
packaging/libnet-client.spec
src/network-internal.c [changed mode: 0644->0755]

index e04479c..b99a628 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libnet-client
 Summary:    Network Client library (Shared library)
-Version:    0.1.77_55
+Version:    0.1.77_56
 Release:    0
 Group:      System/Network
 License:    Flora License
old mode 100644 (file)
new mode 100755 (executable)
index 0d5259e..a3ed17b
@@ -283,10 +283,12 @@ int _net_get_tech_state(GVariant *msg, network_tech_state_info_t* tech_state)
 
                                NETWORK_LOG(NETWORK_ERROR, "key-[%s]-[%d]", key, tech_state->Connected);
                        } else if (g_strcmp0(key, "Tethering") == 0) {
+                               data = g_variant_get_boolean(value);
                                if (data)
                                        tech_state->Tethering = TRUE;
                                else
                                        tech_state->Tethering = FALSE;
+                               NETWORK_LOG(NETWORK_ERROR, "key-[%s]-[%d]", key, tech_state->Tethering);
                        }
                }
        }