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
enum connman_service_type type;
const void *ssid;
unsigned int ssid_len;
- const char *str;
network = __connman_service_get_network(service);
if (!network) {
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: