qcacmn: Add error handling in the Spectral control path

Add an attribute which describes the error code
in the response to set config, start scan and stop
scan.

CRs-Fixed: 2500481
Change-Id: I491cd6e061d2d08ceb4d9af2a7de5223e229c280
This commit is contained in:
Edayilliam Jayadev
2019-08-26 14:32:33 +05:30
committad av nshrivas
förälder ae946e39c7
incheckning 9217a212bb
10 ändrade filer med 231 tillägg och 49 borttagningar

Visa fil

@@ -102,7 +102,7 @@ QDF_STATUS tgt_get_spectral_config(struct wlan_objmgr_pdev *pdev,
* tgt_start_spectral_scan() - Start spectral scan
* @pdev: Pointer to pdev object
* @smode: Spectral scan mode
* @res: Spectral control path error code
* @err: Spectral control path error code
*
* Implementation for starting spectral scan
*
@@ -116,13 +116,15 @@ QDF_STATUS tgt_start_spectral_scan(struct wlan_objmgr_pdev *pdev,
* tgt_stop_spectral_scan() - Stop spectral scan
* @pdev: Pointer to pdev object
* @smode: Spectral scan mode
* @err: Spectral control path error code
*
* Implementation for stop spectral scan
*
* Return: QDF_STATUS_SUCCESS on success, else QDF_STATUS_E_FAILURE
*/
QDF_STATUS tgt_stop_spectral_scan(struct wlan_objmgr_pdev *pdev,
enum spectral_scan_mode smode);
enum spectral_scan_mode smode,
enum spectral_cp_error_code *err);
/**
* tgt_is_spectral_active() - Get whether Spectral is active