generic: ar8216: move chip id reading into a separate function