mesh: Register msg_ctx for hostapd/AP code
The use of hostapd code for a mesh interface did not register hapd->msg_ctx. This needs to be done similarly to the existing cases in wpa_supplicant AP and IBSS mode uses so that wpa_msg() calls from the hostapd/AP code get delivered properly. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
		
							parent
							
								
									4e47eec5a9
								
							
						
					
					
						commit
						d6a65a83fb
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -184,6 +184,7 @@ static int wpa_supplicant_mesh_init(struct wpa_supplicant *wpa_s, | |||
| 	if (!bss) | ||||
| 		goto out_free; | ||||
| 
 | ||||
| 	ifmsh->bss[0]->msg_ctx = wpa_s; | ||||
| 	os_memcpy(bss->own_addr, wpa_s->own_addr, ETH_ALEN); | ||||
| 	bss->driver = wpa_s->driver; | ||||
| 	bss->drv_priv = wpa_s->drv_priv; | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Jouni Malinen
						Jouni Malinen