As per our company requirement we are preventing BB user using WiFi within the office for that i have to enable and disable blackberry WiFi over incoming sms. I am able to disable by this code if it is on.

```
if ((wafs & RadioInfo.WAF_WLAN) != 0) {
        Radio.deactivateWAFs(RadioInfo.WAF_WLAN);
    }

```

But my question is how to know when the user try to enable WiFi. so that i can put restriction.

I had tried **[WLANConnectionListener](http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/WLANConnectionListener.html#networkConnected%28%29)** interfae.But did not able to do this.If possible give me some sample code.