Extract code from hciconfig.