Wifi is disabled automatically in lock screen. So, technically you are not really using wifi as you expected.