adi_v5: enforce check on AP number value