Unlocking of modems or phones is not illegal as long as the IMEI remains intact. While it may go contrary to the terms of use by the providers, it is not illegal...
I don't know why some get the idea the Communication Acts makes it illegal to unlock a phone or a modem.