This work around helps me to use the wifi-ssid at work as condition to switch the gsm-modem of, as long as I am at work. Hope it will help someone else.