[PATCH v2 OLK-6.6] wifi: carl9170: add a proper sanity check for endpoints