I think the only way to achieve this would be pulling out the SIM card. There is offline mode for switching off the GSM, but this will also disable WiFi.