Эх сурвалжийг харах

qcacld-3.0: Authenticate the mac address of registered peer only

hdd_roam_register_sta() picks the right mac address for
register peer. If it's called with peer mac address, it registers
that mac address and if it's called with broadcast mac address, it
picks adapter mac address which is self mac address.
In case of NDI, it's called with broadcast mac address. Peer
registration(cdp_peer_register) happens fine by picking adapter
mac address but tries to update peer state by picking broadcast
address. This fails and results in blocking/dropping the Tx data.

Authenticate the mac address registered to avoid this.

Change-Id: I8413585ca9c585eabed8e58755fac49eb5d9788d
CRs-Fixed: 2966158
Srinivas Dasari 3 жил өмнө
parent
commit
cbee8c2553

+ 2 - 1
core/hdd/src/wlan_hdd_assoc.c

@@ -2160,7 +2160,8 @@ QDF_STATUS hdd_roam_register_sta(struct hdd_adapter *adapter,
 		return qdf_status;
 	}
 
-	hdd_cm_set_peer_authenticate(adapter, bssid, is_auth_required);
+	hdd_cm_set_peer_authenticate(adapter, &txrx_desc.peer_addr,
+				     is_auth_required);
 
 	return qdf_status;
 }