config: Fix service provision issue 07/33807/3 tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0_ivi accepted/tizen/common/20150119.084328 accepted/tizen/ivi/20150116.052317 accepted/tizen/mobile/20150119.094359 accepted/tizen/tv/20150119.093517 accepted/tizen/wearable/20150119.093941 submit/tizen/20150116.024418 tizen_3.0_ivi_release
authorZhang zhengguang <zhengguang.zhang@intel.com>
Thu, 15 Jan 2015 08:27:30 +0000 (16:27 +0800)
committerZhang zhengguang <zhengguang.zhang@intel.com>
Fri, 16 Jan 2015 02:36:18 +0000 (10:36 +0800)
Fixes TC-2298

Root cause:
ConnMan will check the wifi security type from nfc daemon
to decide whether to auto connect the related wifi service,
but it can't get the security type in current mechanism,
So that the wifi AP got from nfc tag will not be connected.

Solution:
ConnMan doesn't need to check wifi security type when it
tries to provision service.

Change-Id: I4ee3294214b756f9a39b6dc21cb658acd0640cc7

src/config.c

index 93a788a..61cf8ae 100644 (file)
@@ -1098,7 +1098,6 @@ static int try_provision_service(struct connman_config_service *config,
        enum connman_service_type type;
        const void *ssid;
        unsigned int ssid_len;
-       const char *str;
 
        network = __connman_service_get_network(service);
        if (!network) {
@@ -1129,10 +1128,6 @@ static int try_provision_service(struct connman_config_service *config,
                if (memcmp(config->ssid, ssid, ssid_len))
                        return -ENOENT;
 
-               str = connman_network_get_string(network, "WiFi.Security");
-               if (config->security != __connman_service_string2security(str))
-                       return -ENOENT;
-
                break;
 
        case CONNMAN_SERVICE_TYPE_ETHERNET: