qcacmn: Configure spectral module for Gen2
-Initialize the default Configuration as gen2 for spectral module on MCL. -Add support to general netlink socket. Change-Id: Iab06f66d18c4791f0ff5483781634df2a7268ddb CRs-Fixed: 2183870
This commit is contained in:

committed by
snandini

parent
101778698b
commit
cd793f38a3
@@ -13,6 +13,7 @@ include $(obj)/$(DEPTH)/os/linux/Makefile-linux.common
|
||||
INCS += -I$(HAL) -I$(HAL)/$(OS) -I$(ATH) -I$(ATH_RATE) -I$(ATH_PKTLOG) -I$(WLAN) -I$(IF_WLAN) -I$(ATH_SPECTRAL) -I$(ATHEROSPATH) -I$(obj)/$(DEPTH)/../../apps/spectral/common
|
||||
INCS += -I$(obj)/$(DEPTH)/cmn_dev/umac/cmn_services/inc -I$(obj)/$(DEPTH)/cmn_dev/umac/cmn_services/obj_mgr/inc
|
||||
INCS += -I$(obj)/$(DEPTH)/cmn_dev/umac/cmn_services/cmn_defs/inc
|
||||
INCS += -I$(obj)/$(DEPTH)/cmn_dev/utils/nlink/inc
|
||||
INCS += -I$(obj)/$(DEPTH)/cmn_dev/umac/scan/dispatcher/inc
|
||||
INCS += -I$(obj)/$(DEPTH)/cmn_dev/umac/cmn_services/cmn_defs/inc
|
||||
INCS += -I$(obj)/$(DEPTH)/cmn_dev/umac/global_umac_dispatcher/lmac_if/inc
|
||||
|
@@ -43,4 +43,16 @@ int ucfg_spectral_control(struct wlan_objmgr_pdev *pdev,
|
||||
void *indata,
|
||||
uint32_t insize, void *outdata, uint32_t *outsize);
|
||||
|
||||
/**
|
||||
* ucfg_spectral_scan_set_ppid() - configure pid of spectral tool
|
||||
* @pdev: Pointer to pdev
|
||||
* @ppid: Spectral tool pid
|
||||
*
|
||||
* Configure pid of spectral tool
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
void ucfg_spectral_scan_set_ppid(struct wlan_objmgr_pdev *pdev,
|
||||
uint32_t ppid);
|
||||
|
||||
#endif /* _WLAN_SPECTRAL_UCFG_API_H_ */
|
||||
|
@@ -44,3 +44,23 @@ ucfg_spectral_control(struct wlan_objmgr_pdev *pdev,
|
||||
indata, insize, outdata, outsize);
|
||||
}
|
||||
EXPORT_SYMBOL(ucfg_spectral_control);
|
||||
|
||||
void ucfg_spectral_scan_set_ppid(struct wlan_objmgr_pdev *pdev, uint32_t ppid)
|
||||
{
|
||||
struct pdev_spectral *ps = NULL;
|
||||
|
||||
if (!pdev) {
|
||||
spectral_err("PDEV is NULL!");
|
||||
return;
|
||||
}
|
||||
ps = wlan_objmgr_pdev_get_comp_private_obj(pdev,
|
||||
WLAN_UMAC_COMP_SPECTRAL);
|
||||
if (!ps) {
|
||||
spectral_err("spectral context is NULL!");
|
||||
return;
|
||||
}
|
||||
ps->spectral_pid = ppid;
|
||||
spectral_debug("spectral ppid: %d", ppid);
|
||||
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user