mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-30 18:07:52 +00:00 
			
		
		
		
	hostapd: proxy arp: fail gracefully
Disable proxy arp and continue if snoop interface setup fail. Fixes WIFI-14507 Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
This commit is contained in:
		 Rick Sommerville
					Rick Sommerville
				
			
				
					committed by
					
						 Arif Alam
						Arif Alam
					
				
			
			
				
	
			
			
			 Arif Alam
						Arif Alam
					
				
			
						parent
						
							49b64ec93f
						
					
				
				
					commit
					f936b976f8
				
			| @@ -0,0 +1,27 @@ | ||||
| --- a/src/ap/hostapd.c | ||||
| +++ b/src/ap/hostapd.c | ||||
| @@ -1527,19 +1527,15 @@ int hostapd_setup_bss(struct hostapd_dat | ||||
|  		if (x_snoop_init(hapd)) { | ||||
|  			wpa_printf(MSG_ERROR, | ||||
|  				   "Generic snooping infrastructure initialization failed"); | ||||
| -			return -1; | ||||
| -		} | ||||
| - | ||||
| -		if (dhcp_snoop_init(hapd)) { | ||||
| +			conf->proxy_arp = 0; | ||||
| +		} else if (dhcp_snoop_init(hapd)) { | ||||
|  			wpa_printf(MSG_ERROR, | ||||
|  				   "DHCP snooping initialization failed"); | ||||
| -			return -1; | ||||
| -		} | ||||
| - | ||||
| -		if (ndisc_snoop_init(hapd)) { | ||||
| +			conf->proxy_arp = 0; | ||||
| +		} else if (ndisc_snoop_init(hapd)) { | ||||
|  			wpa_printf(MSG_ERROR, | ||||
|  				   "Neighbor Discovery snooping initialization failed"); | ||||
| -			return -1; | ||||
| +			conf->proxy_arp = 0; | ||||
|  		} | ||||
|  	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user