Can’t you just use airplane mode and toggle wifi off, both in the control panel? Together with airplane mode, the wifi toggle does actually turn WiFi completely off. I believe that airplane mode even remembers that preference. Or do you have a use case for having wifi turned off but mobile services turned on?