Enable CAPI access permission check for TV Profile 82/43082/1
authorManeesh Jain <maneesh.jain@samsung.com>
Tue, 7 Jul 2015 13:54:18 +0000 (19:24 +0530)
committerManeesh Jain <maneesh.jain@samsung.com>
Tue, 7 Jul 2015 13:54:18 +0000 (19:24 +0530)
Change-Id: I599f21ed71adfc6c9f2198e2d011b9a0bffe5795
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
packaging/capi-network-wifi-direct.spec
src/include/wifi-direct-client-proxy.h
src/wifi-direct-client-proxy.c

index f7e5770..8e79360 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-network-wifi-direct
 Summary:    Network WiFi-Direct library in Tizen CAPI
-Version:    1.2.36
+Version:    1.2.37
 Release:    1
 Group:      Network & Connectivity/Wireless
 License:    Apache-2.0
index 0475bb0..5def24d 100755 (executable)
@@ -75,7 +75,6 @@
 #define WIFIDIRECT_DISPLAY_FEATURE                             "http://tizen.org/feature/network.wifi.direct.display"
 #define WIFIDIRECT_SERVICE_DISCOVERY_FEATURE   "http://tizen.org/feature/network.wifi.direct.service_discovery"
 
-#if !defined TIZEN_TV
 #define CHECK_FEATURE_SUPPORTED(feature_name)\
        do {\
                bool feature_supported = FALSE;\
                }\
        }while(0)
 
-#else
-#define CHECK_FEATURE_SUPPORTED(feature_name)
-#endif
-
 typedef struct
 {
        bool is_registered;
index ba5fd12..9f359a2 100755 (executable)
@@ -950,9 +950,6 @@ int wifi_direct_initialize(void)
                __WDC_LOG_FUNC_END__;
                return WIFI_DIRECT_ERROR_ALREADY_INITIALIZED;
        }
-
-/*TEMP: Hawk-P Tizen TV Platform does not support security check*/
-#if !defined TIZEN_TV
        res = system_info_get_platform_bool("tizen.org/feature/network.wifi.direct", &wifi_direct_enable);
        if (res < 0) {
                WDC_LOGE("Failed to get sys info");
@@ -963,8 +960,6 @@ int wifi_direct_initialize(void)
                WDC_LOGE("Wi-Fi Direct not supported");
                return WIFI_DIRECT_ERROR_NOT_SUPPORTED;
        }
-
-#endif
        sockfd = socket(AF_UNIX, SOCK_STREAM, 0);
        if (sockfd < 0) {
                WDC_LOGE("Error!!! creating sync socket[%s]", strerror(errno));