Explorar el Código

qcacmn: Consider dbr registration status while spectral open

The spectral pdev open handler returns success even if the registration
to Direct Buffer Rx(DBR) module is not successful. Fix this by
updating it with the status of registration of the spectral event handler
with DBR while executing operations on pdev open.

CRs-Fixed: 3272684
Change-Id: If336180f4e7e811f5a353a86eea49e0e56f50338
Sreeramya Soratkal hace 2 años
padre
commit
2b23d2e388
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      spectral/dispatcher/src/wlan_spectral_utils_api.c

+ 2 - 1
spectral/dispatcher/src/wlan_spectral_utils_api.c

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved
  *
  *
  * Permission to use, copy, modify, and/or distribute this software for
@@ -496,7 +497,7 @@ QDF_STATUS spectral_pdev_open(struct wlan_objmgr_pdev *pdev)
 		tgt_set_spectral_dma_debug(pdev, SPECTRAL_DMA_BUFFER_DEBUG, 1);
 
 	status = spectral_register_dbr(pdev);
-	return QDF_STATUS_SUCCESS;
+	return status;
 }
 
 QDF_STATUS spectral_register_dbr(struct wlan_objmgr_pdev *pdev)