Sfoglia il codice sorgente

qcacld-3.0: Update vdev in fisa_flow to takecare vdev change

Fisa flow in FT still exists even after vdev teardown. Same vdev
type is reinitialized with different vdev pointer.
So take care to update the fisa_flow vdev with current vdev.

Change-Id: Ib52c6d1ea5354532a42fd0065db740c96d78ebc6
CRs-Fixed: 2621691
Manjunathappa Prakash 5 anni fa
parent
commit
b1c5012090
1 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 5 2
      core/dp/txrx3.0/dp_fisa_rx.c

+ 5 - 2
core/dp/txrx3.0/dp_fisa_rx.c

@@ -502,9 +502,12 @@ dp_rx_get_fisa_flow(struct dp_rx_fst *fisa_hdl, struct dp_vdev *vdev,
 
 	flow_idx_valid = is_flow_idx_valid(flow_invalid, flow_timeout);
 	if (flow_idx_valid) {
-		qdf_assert_always(flow_idx < fisa_hdl->max_entries);
 		dp_fisa_debug("flow_idx is valid 0x%x", flow_idx);
-		return &sw_ft_base[flow_idx];
+		qdf_assert_always(flow_idx < fisa_hdl->max_entries);
+		sw_ft_entry = &sw_ft_base[flow_idx];
+		sw_ft_entry->vdev = vdev;
+
+		return sw_ft_entry;
 	}
 
 	/* else new flow, add entry to FT */