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