Explorar el Código

qcacld-3.0: Copy peer mac address when register new NDP peer

Since peer mac instead of sta_id used to find pointer to peer in
dp_register_peer, so copy and pass peer mac address when register new
ndp peer.

Change-Id: I47ab345fff83d9c03208c5c1457db0fb7f6ed9c0
CRs-Fixed: 2546705
Wu Gao hace 5 años
padre
commit
cef8a74bef
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      core/hdd/src/wlan_hdd_nan_datapath.c

+ 1 - 0
core/hdd/src/wlan_hdd_nan_datapath.c

@@ -865,6 +865,7 @@ int hdd_ndp_new_peer_handler(uint8_t vdev_id, uint16_t sta_id,
 	roam_info = qdf_mem_malloc(sizeof(*roam_info));
 	if (!roam_info)
 		return -ENOMEM;
+	qdf_copy_macaddr(&roam_info->bssid, peer_mac_addr);
 
 	/* this function is called for each new peer */
 	hdd_roam_register_sta(adapter, roam_info, &tmp_bss_descp);