fix size calculation of the radio_config