Preventing double tunneling using device profile parameter