mirror of
				https://github.com/berlin-open-wireless-lab/DAWN.git
				synced 2025-03-09 15:40:12 +00:00 
			
		
		
		
	ubus.c: only add nr entries matching our own SSID
The preferred neighbors list may have BSSIDs with different SSIDs. Add only those that match the interface's SSID. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
This commit is contained in:
		
							parent
							
								
									181549f7bb
								
							
						
					
					
						commit
						e596ff1317
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -2236,7 +2236,7 @@ int ap_get_nr(struct blob_buf* b_local, struct dawn_mac own_bssid_addr, const ch | |||
|         for (struct mac_entry_s* n = preferred_list; n; n = n->next_mac) { | ||||
|             dawn_mutex_require(&ap_array_mutex); | ||||
|             ap* j = ap_array_get_ap(n->mac); | ||||
|             if (j) | ||||
|             if (j && !strncmp((char*)j->ssid, ssid, SSID_MAX_LEN)) | ||||
|                 blobmsg_add_nr(b_local, j); | ||||
|         } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue