mirror of
				https://github.com/immortalwrt/immortalwrt.git
				synced 2025-10-30 07:49:55 +08:00 
			
		
		
		
	wifi-scripts: ucode: fix check for empty crypto object while scanning
it can be empty Signed-off-by: Leon M. Busch-George <leon@georgemail.eu> Link: https://github.com/openwrt/openwrt/pull/20526 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
		 Leon M. Busch-George
					Leon M. Busch-George
				
			
				
					committed by
					
						 Robert Marko
						Robert Marko
					
				
			
			
				
	
			
			
			 Robert Marko
						Robert Marko
					
				
			
						parent
						
							017fc35b52
						
					
				
				
					commit
					66e5e9671f
				
			| @ -72,7 +72,7 @@ function print_scan(cells) { | ||||
| 		printf('\t  Mode: %s  Frequency: %s GHz  Band: %s GHz  Channel: %d\n', cell.mode, cell.frequency, cell.band, cell.channel); | ||||
| 		printf('\t  Signal: %d dBm  Quality: %2d/70\n', cell.dbm, cell.quality); | ||||
|  | ||||
| 		if (!length(cell.crypto.key_mgmt)) | ||||
| 		if (!cell.crypto || !length(cell.crypto.key_mgmt)) | ||||
| 			printf('\t  Encryption: NONE\n'); | ||||
| 		else | ||||
| 			printf('\t  Encryption: %s (%s)\n', join(' / ', cell.crypto.key_mgmt), join(' / ', cell.crypto.pair)); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user