qcacmn: Off-chan txrx componentization changes

Add new module id for offchan txrx compotent and call offchan init/deint.

Change-Id: I803925d2dafdbe3800636de4e5ac4ae69c4851d0
CRs-Fixed: 2030050
This commit is contained in:
Kiran Venkatappa
2017-04-04 00:09:10 +05:30
کامیت شده توسط Sandeep Puligilla
والد 3a0005c210
کامیت 3453674e75
4فایلهای تغییر یافته به همراه36 افزوده شده و 0 حذف شده

مشاهده پرونده

@@ -52,6 +52,9 @@
#include <wlan_dfs_init_deinit_api.h>
#endif
#ifdef WLAN_OFFCHAN_TXRX_ENABLE
#include <wlan_offchan_txrx_api.h>
#endif
/**
* DOC: This file provides various init/deinit trigger point for new
* components.
@@ -461,6 +464,28 @@ static QDF_STATUS dispatcher_deinit_dfs(void)
}
#endif
#ifdef WLAN_OFFCHAN_TXRX_ENABLE
static QDF_STATUS dispatcher_offchan_txrx_init(void)
{
return wlan_offchan_txrx_init();
}
static QDF_STATUS dispatcher_offchan_txrx_deinit(void)
{
return wlan_offchan_txrx_deinit();
}
#else
static QDF_STATUS dispatcher_offchan_txrx_init(void)
{
return QDF_STATUS_SUCCESS;
}
static QDF_STATUS dispatcher_offchan_txrx_deinit(void)
{
return QDF_STATUS_SUCCESS;
}
#endif /*WLAN_OFFCHAN_TXRX_ENABLE*/
QDF_STATUS dispatcher_init(void)
{
if (QDF_STATUS_SUCCESS != wlan_objmgr_global_obj_init())
@@ -508,8 +533,13 @@ QDF_STATUS dispatcher_init(void)
if (QDF_STATUS_SUCCESS != dispatcher_regulatory_init())
goto regulatory_init_fail;
if (QDF_STATUS_SUCCESS != dispatcher_offchan_txrx_init())
goto offchan_init_fail;
return QDF_STATUS_SUCCESS;
offchan_init_fail:
dispatcher_regulatory_deinit();
regulatory_init_fail:
dispatcher_deinit_dfs();
dfs_init_fail:
@@ -546,6 +576,8 @@ EXPORT_SYMBOL(dispatcher_init);
QDF_STATUS dispatcher_deinit(void)
{
QDF_BUG(QDF_STATUS_SUCCESS == dispatcher_offchan_txrx_deinit());
QDF_BUG(QDF_STATUS_SUCCESS == dispatcher_regulatory_deinit());
QDF_BUG(QDF_STATUS_SUCCESS == dispatcher_deinit_dfs());