wireless: fix memory corruption bug when using vlans/station entries in the config