mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-10-31 21:27:30 +01:00 
			
		
		
		
	scan: fix out of bound array access for survey results
The survey arrays were exactly the number of valid channels for a
given band (e.g. 14 for 2.4GHz) but since channels start at 1 this
means that the last channel for a band would overflow the array.
Fixes: 35808debaefd ("scan: use GET_SURVEY for SNR calculation in ranking")
			
			
This commit is contained in:
		
							parent
							
								
									3c5081c7a6
								
							
						
					
					
						commit
						d1aa4009bc
					
				| @ -143,9 +143,9 @@ struct scan_survey { | ||||
| }; | ||||
| 
 | ||||
| struct scan_survey_results { | ||||
| 	struct scan_survey survey_2_4[14]; | ||||
| 	struct scan_survey survey_5[196]; | ||||
| 	struct scan_survey survey_6[233]; | ||||
| 	struct scan_survey survey_2_4[15]; | ||||
| 	struct scan_survey survey_5[197]; | ||||
| 	struct scan_survey survey_6[234]; | ||||
| }; | ||||
| 
 | ||||
| struct scan_results { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 James Prestwood
						James Prestwood