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