def test_ap_beacon_rate_legacy(dev, apdev):
    'Open AP with Beacon frame TX rate 5.5 Mbps'
    hapd = hostapd.add_ap(apdev[0], {'ssid': 'beacon-rate'})
    res = hapd.get_driver_status_field('capa.flags')
    if ((int(res, 0) & 8796093022208) == 0):
        raise HwsimSkip('Setting Beacon frame TX rate not supported')
    hapd.disable()
    hapd.set('beacon_rate', '55')
    hapd.enable()
    dev[0].connect('beacon-rate', key_mgmt='NONE', scan_freq='2412')
    time.sleep(0.5)
Open AP with Beacon frame TX rate 5.5 Mbps
def test_ap_beacon_rate_legacy(dev, apdev):
    
    hapd = hostapd.add_ap(apdev[0], {'ssid': 'beacon-rate'})
    res = hapd.get_driver_status_field('capa.flags')
    if ((int(res, 0) & 8796093022208) == 0):
        raise HwsimSkip('Setting Beacon frame TX rate not supported')
    hapd.disable()
    hapd.set('beacon_rate', '55')
    hapd.enable()
    dev[0].connect('beacon-rate', key_mgmt='NONE', scan_freq='2412')
    time.sleep(0.5)