ui_newt: do not cache the old device type for edit_profile
scanner: always inline the functions
ui_newt: set new device mac-address from main function