Fixes: #1716 Removed Mac check, added IP check when dhcp enabled
Fixes: #1782 Removed profile related code