Recent terror wave linked with Afghan situation, says DG ISP