@remote_compatible
def test_ap_fragmentation_open(dev, apdev):
    'Open AP with fragmentation threshold'
    ssid = 'fragmentation'
    params = {}
    params['ssid'] = ssid
    params['fragm_threshold'] = '1000'
    hapd = hostapd.add_ap(apdev[0], params)
    dev[0].connect(ssid, key_mgmt='NONE', scan_freq='2412')
    hwsim_utils.test_connectivity(dev[0], hapd)
    dev[0].request('DISCONNECT')
    hapd.disable()
    hapd.set('fragm_threshold', '-1')
    hapd.enable()
Open AP with fragmentation threshold
@remote_compatible
def test_ap_fragmentation_open(dev, apdev):
    
    ssid = 'fragmentation'
    params = {}
    params['ssid'] = ssid
    params['fragm_threshold'] = '1000'
    hapd = hostapd.add_ap(apdev[0], params)
    dev[0].connect(ssid, key_mgmt='NONE', scan_freq='2412')
    hwsim_utils.test_connectivity(dev[0], hapd)
    dev[0].request('DISCONNECT')
    hapd.disable()
    hapd.set('fragm_threshold', '-1')
    hapd.enable()