Add to check wifi dpm for modify profile 00/74100/1 accepted/tizen/common/20160613.144927 accepted/tizen/ivi/20160613.123657 accepted/tizen/mobile/20160613.123815 accepted/tizen/tv/20160613.123647 accepted/tizen/wearable/20160613.123751 submit/tizen/20160613.080206
authorhyunuktak <hyunuk.tak@samsung.com>
Mon, 13 Jun 2016 00:10:53 +0000 (09:10 +0900)
committerhyunuktak <hyunuk.tak@samsung.com>
Mon, 13 Jun 2016 00:10:57 +0000 (09:10 +0900)
Change-Id: Ie4655db9595d55b17eac2e5a9c4a909434f19ed2
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
packaging/libnet-client.spec
src/network-profile-intf.c

index cc149a266cb598517d6357d88e8d352bae947a19..cdaf34ebaccb9bea3f87af51fb2e8af647a1a6af 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          libnet-client
 Summary:       Network Client library (Shared library)
-Version:       1.1.53
+Version:       1.1.54
 Release:       1
 Group:         System/Network
 License:       Flora-1.1
index 198fa4066c332ef14907adde56017b42f2c4e440..2590432e65ab73ad3f7e6909257d33fc02014ee8 100755 (executable)
@@ -2686,6 +2686,12 @@ EXPORT_API int net_modify_profile(const char* profile_name, net_profile_info_t*
                return NET_ERR_APP_NOT_REGISTERED;
        }
 
+       if (!_net_get_dpm_wifi_state()) {
+               NETWORK_LOG(NETWORK_ERROR, "Wifi device policy restricts");
+               __NETWORK_FUNC_EXIT__;
+               return NET_ERR_SECURITY_RESTRICTED;
+       }
+
        if (!_net_get_dpm_wifi_profile_state()) {
                NETWORK_LOG(NETWORK_ERROR, "Wifi profile device policy restricts");
                __NETWORK_FUNC_EXIT__;