Selaa lähdekoodia

qcacld-3.0: Update public action frames to supplicant

qcacld-2.0 to qcacld-3.0 propagation

Currently broadcast action frames are dropped in
__hdd_indicate_mgmt_frame(), host tries to get pAdapter using
destination mac address and returns from function as pAdpater is NULL.

Add changes to use existing pAdapter when destination address
of received packet is broadcast.

Change-Id: I9a149116b9a3ec9b4abef4808849876069f2e13c
CRs-Fixed: 2045740
Sreelakshmi Konamki 8 vuotta sitten
vanhempi
sitoutus
2b1cd5275e
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      core/hdd/src/wlan_hdd_p2p.c

+ 4 - 1
core/hdd/src/wlan_hdd_p2p.c

@@ -2582,7 +2582,10 @@ void __hdd_indicate_mgmt_frame(hdd_adapter_t *pAdapter,
 	subType = WLAN_HDD_GET_SUBTYPE_FRM_FC(pbFrames[0]);
 
 	/* Get pAdapter from Destination mac address of the frame */
-	if ((type == SIR_MAC_MGMT_FRAME) && (subType != SIR_MAC_MGMT_PROBE_REQ)) {
+	if ((type == SIR_MAC_MGMT_FRAME) &&
+	    (subType != SIR_MAC_MGMT_PROBE_REQ) &&
+	    !qdf_is_macaddr_broadcast(
+	     (struct qdf_mac_addr *)&pbFrames[WLAN_HDD_80211_FRM_DA_OFFSET])) {
 		pAdapter =
 			hdd_get_adapter_by_macaddr(pHddCtx,
 						   &pbFrames