Change-Id: I34aa6cc2574c5f7bcbb5db96772bf0734982abaf
return CONNECTION_ERROR_NOT_SUPPORTED;
}
- if (enable == CONNECTION_MPTCP_DISABLE) {
+ if (enable <= CONNECTION_MPTCP_DISABLE
+ || enable > CONNECTION_MPTCP_ENABLE_SOCKOPT) {
CONNECTION_LOG(CONNECTION_ERROR, "Use connection_mptcp_disable()");
return CONNECTION_ERROR_INVALID_PARAMETER;
}
{
int rv = 0;
- rv = net_mptcp_set_enable((int)enable);
+ rv = net_mptcp_set_enabled((int)enable);
if (rv == NET_ERR_ACCESS_DENIED) {
CONNECTION_LOG(CONNECTION_ERROR, "Access denied");
return CONNECTION_ERROR_PERMISSION_DENIED;