HS20: Extend wifi profile for passpoint AP information 32/19232/1
authortaesubkim <taesub.kim@samsung.com>
Wed, 9 Apr 2014 06:57:01 +0000 (15:57 +0900)
committertaesubkim <taesub.kim@samsung.com>
Wed, 9 Apr 2014 06:57:44 +0000 (15:57 +0900)
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
Change-Id: I2df07d80a41c1c702e0d6c14125d547a7cabf098

include/profile/network-pm-wlan.h
packaging/libnet-client.spec
src/network-profile-intf.c

index 9551c90..c2f8ce0 100644 (file)
@@ -330,6 +330,8 @@ typedef struct
        wlan_connection_mode_type_t wlan_mode;
        /** Security mode and authentication info */
        wlan_security_info_t security_info;
+       /** Passpoint AP or not */
+       gboolean passpoint;
 
        /** network information */
        net_dev_info_t net_info;
index 8f674f4..2e3bbd1 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libnet-client
 Summary:    Network Client library (Shared library)
-Version:    0.1.77_53
+Version:    0.1.77_54
 Release:    1
 Group:      System/Network
 License:    Flora License
index 1c1818d..acb301f 100644 (file)
@@ -1070,6 +1070,15 @@ static int __net_extract_wifi_info(GVariantIter *array, net_profile_info_t* Prof
                        else if (g_strcmp0(value, "mixed") == 0)
                                Wlan->security_info.enc_mode = WLAN_ENC_MODE_TKIP_AES_MIXED;
 
+               } else if (g_strcmp0(key, "Passpoint") == 0) {
+                       gboolean passpoint;
+
+                       passpoint = g_variant_get_boolean(var);
+                       if (passpoint)
+                               Wlan->passpoint = TRUE;
+                       else
+                               Wlan->passpoint = FALSE;
+
                } else if (g_strcmp0(key, "Strength") == 0) {
                        Wlan->Strength = g_variant_get_byte(var);
                } else if (g_strcmp0(key, "Name") == 0) {