[PATCH 5.10 067/317] wifi: carl9170: add a proper sanity check for endpoints