mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 16:54:21 +00:00 
			
		
		
		
	cfg80211: parse dfs region for internal regdb option
Add support for parsing and setting the dfs region (ETSI, FCC, JP) when the internal regulatory database is used. Before this the DFS region was being ignored even if present on the used db.txt Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com> Reviewed-by: Luis R. Rodriguez <mcgrof@do-not-panic.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
		
							parent
							
								
									55fff50113
								
							
						
					
					
						commit
						f0823475d5
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -46,6 +46,12 @@ BEGIN { | ||||||
| 	sub(/:/, "", country) | 	sub(/:/, "", country) | ||||||
| 	printf "static const struct ieee80211_regdomain regdom_%s = {\n", country | 	printf "static const struct ieee80211_regdomain regdom_%s = {\n", country | ||||||
| 	printf "\t.alpha2 = \"%s\",\n", country | 	printf "\t.alpha2 = \"%s\",\n", country | ||||||
|  | 	if ($NF ~ /DFS-ETSI/) | ||||||
|  | 		printf "\t.dfs_region = NL80211_DFS_ETSI,\n" | ||||||
|  | 	else if ($NF ~ /DFS-FCC/) | ||||||
|  | 		printf "\t.dfs_region = NL80211_DFS_FCC,\n" | ||||||
|  | 	else if ($NF ~ /DFS-JP/) | ||||||
|  | 		printf "\t.dfs_region = NL80211_DFS_JP,\n" | ||||||
| 	printf "\t.reg_rules = {\n" | 	printf "\t.reg_rules = {\n" | ||||||
| 	active = 1 | 	active = 1 | ||||||
| 	regdb = regdb "\t®dom_" country ",\n" | 	regdb = regdb "\t®dom_" country ",\n" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Janusz Dziedzic
						Janusz Dziedzic