fix spinning on NULL protocol name

Signed-off-by: Andy Green <andy.green@linaro.org>
protocol struct add user controlled id member

Signed-off-by: Andy Green <andy.green@linaro.org>