def main(options):
    """
    Main function.
    @param options
    """
    options.my_ip = all_radios_ip[options.my_id]

    radio =  build_radio(options)
    radio.id = options.my_id
    radio.set_gain(radios_gain[radio.id])

    tb = OpERAFlow('OperaFlow')
    tb.add_radio(radio, 'radio')
    tb.start()

    channel_list = [Channel(ch=0, freq=1.11e9, bw=200e3),
                    Channel(ch=1, freq=1.51e9, bw=400e3),
                    Channel(ch=2, freq=1.7e9, bw=500e3),
                    Channel(ch=3, freq=1.9e9, bw=400e3),
                    ]

    cognitive_radio_loop(options, radio, channel_list)

    tb.stop()
    tb.wait()
def main(options):
    """
    Main function
    @param options
    """
    options.my_ip = all_radios_ip[options.my_id]

    radio = build_radio(options)
    radio.id = options.my_id

    tb = OpERAFlow('OperaFlow')
    tb.add_radio(radio, 'radio')
    tb.start()

    channel_list = [Channel(ch=0, freq=2.2e9, bw=200e3), ]

    cognitive_radio_loop(options, radio, channel_list)

    tb.stop()
    tb.wait()