mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-29 09:32:34 +00:00 
			
		
		
		
	 b67f97f213
			
		
	
	b67f97f213
	
	
	
		
			
			Disable proxy arp and continue if snoop interface setup fail. Fixes: WIFI-14507 Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
		
			
				
	
	
		
			28 lines
		
	
	
		
			683 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			683 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| --- 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;
 | |
|  		}
 | |
|  	}
 | |
|  
 |