changed pointer to generated MAC to uint8_t to fix check MAC