mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-30 18:07:52 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			940 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			940 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From 8297e637263deaff4194ed632ebf8df37553a1be Mon Sep 17 00:00:00 2001
 | |
| From: John Crispin <john@phrozen.org>
 | |
| Date: Tue, 9 Jan 2024 12:36:01 +0100
 | |
| Subject: [PATCH 25/68] hostapd: add missing NULL pointer check on radar
 | |
|  notification
 | |
| 
 | |
| Signed-off-by: John Crispin <john@phrozen.org>
 | |
| ---
 | |
|  package/network/services/hostapd/src/src/ap/ubus.c | 3 +++
 | |
|  1 file changed, 3 insertions(+)
 | |
| 
 | |
| diff --git a/package/network/services/hostapd/src/src/ap/ubus.c b/package/network/services/hostapd/src/src/ap/ubus.c
 | |
| index 52f83c50f7..54361ea460 100644
 | |
| --- a/package/network/services/hostapd/src/src/ap/ubus.c
 | |
| +++ b/package/network/services/hostapd/src/src/ap/ubus.c
 | |
| @@ -2125,6 +2125,9 @@ void hostapd_ubus_notify_radar_detected(struct hostapd_iface *iface, int frequen
 | |
|  	struct hostapd_data *hapd;
 | |
|  	int i;
 | |
|  
 | |
| +	if (!ctx)
 | |
| +		return;
 | |
| +
 | |
|  	blob_buf_init(&b, 0);
 | |
|  	blobmsg_add_u16(&b, "frequency", frequency);
 | |
|  	blobmsg_add_u16(&b, "width", chan_width);
 | |
| -- 
 | |
| 2.34.1
 | |
| 
 | 
