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