[PATCH v3 openEuler-1.0-LTS 2/2] wifi: carl9170: add a proper sanity check for endpoints