irda: validate peer name and attribute lengths