Working with uint8_t*

config.bssid = new uint8_t[6];

Why are you using dynamic memory allocation?