@remote_compatible
def test_ap_fragmentation_rts_set_high(dev, apdev):
    'WPA2-PSK AP with fragmentation and RTS thresholds larger than frame length'
    ssid = 'test-wpa2-psk'
    passphrase = 'qwertyuiop'
    params = hostapd.wpa2_params(ssid=ssid, passphrase=passphrase)
    params['rts_threshold'] = '1000'
    params['fragm_threshold'] = '2000'
    hapd = hostapd.add_ap(apdev[0], params)
    dev[0].connect(ssid, psk=passphrase, scan_freq='2412')
    hwsim_utils.test_connectivity(dev[0], hapd)
    dev[0].request('DISCONNECT')
    hapd.disable()
    hapd.set('fragm_threshold', '-1')
    hapd.set('rts_threshold', '-1')
    hapd.enable()
WPA2-PSK AP with fragmentation and RTS thresholds larger than frame length
@remote_compatible
def test_ap_fragmentation_rts_set_high(dev, apdev):
    
    ssid = 'test-wpa2-psk'
    passphrase = 'qwertyuiop'
    params = hostapd.wpa2_params(ssid=ssid, passphrase=passphrase)
    params['rts_threshold'] = '1000'
    params['fragm_threshold'] = '2000'
    hapd = hostapd.add_ap(apdev[0], params)
    dev[0].connect(ssid, psk=passphrase, scan_freq='2412')
    hwsim_utils.test_connectivity(dev[0], hapd)
    dev[0].request('DISCONNECT')
    hapd.disable()
    hapd.set('fragm_threshold', '-1')
    hapd.set('rts_threshold', '-1')
    hapd.enable()