mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-11-04 08:57:29 +01:00 
			
		
		
		
	auto-t: add RRM test for scan duration
mac80211_hwsim does not actually support SET_SCAN_DWELL, but since we are not setting duration mandatory the request should still be accepted.
This commit is contained in:
		
							parent
							
								
									1b35eda3dd
								
							
						
					
					
						commit
						40a79dc90b
					
				@ -21,6 +21,8 @@ beacon_with_ssid = '51000000000002ffffffffffff02010000077373696452524d'
 | 
			
		||||
beacon_passive = '510b0000000000ffffffffffff020100'
 | 
			
		||||
# Active beacon with wildcard BSSID
 | 
			
		||||
beacon_active = '510b0000000001ffffffffffff020100'
 | 
			
		||||
# Passive beacon with duration set
 | 
			
		||||
beacon_passive_duration = '510b0000c80000ffffffffffff020100'
 | 
			
		||||
 | 
			
		||||
class Test(unittest.TestCase):
 | 
			
		||||
 | 
			
		||||
@ -91,6 +93,16 @@ class Test(unittest.TestCase):
 | 
			
		||||
        hapd.req_beacon(device.address, beacon_active)
 | 
			
		||||
        # TODO: See if we are scanning here (scan not initiated from station)
 | 
			
		||||
 | 
			
		||||
        event = hapd.wait_for_event('BEACON-RESP-RX')
 | 
			
		||||
        if event:
 | 
			
		||||
            print(event)
 | 
			
		||||
 | 
			
		||||
        sleep(0.5)
 | 
			
		||||
 | 
			
		||||
         # This should passive scan on channel 11, returning otherSSID
 | 
			
		||||
        hapd.req_beacon(device.address, beacon_passive_duration)
 | 
			
		||||
        # TODO: See if we are scanning here (scan not initiated from station)
 | 
			
		||||
 | 
			
		||||
        event = hapd.wait_for_event('BEACON-RESP-RX')
 | 
			
		||||
        if event:
 | 
			
		||||
            print(event)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user