Automatic switching between cmwap and cmnet

Change-Id: If9552c2c55489e583c78f3bbedfa9550ec07652e