diff options
| author | qcabuildsw <qcabuildsw@localhost> | 2016-09-11 14:33:56 -0700 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2016-09-11 15:44:45 -0700 |
| commit | dc63fe5710bef973abbe40ff40b2d7b314eb3b0e (patch) | |
| tree | 4535346fa65e9a682545fae3a614ff3ab3687547 | |
| parent | bad0e26422aae069882854c280db16cdacefe864 (diff) | |
Revert "qcacld-3.0: Call ICNSS APIs for get/set channels and dfs"
This reverts Change-Id: I12e1db54468c7215318333b55d991c53886d21ff
WLAN driver is blocked from promotion as the dependent kernel
change is not merged yet. Getting/setting unsafe channels and
dfs nol are no longer be present after reverting.
CRs-Fixed: 1061220
Change-Id: I110df8d25464ff0d70428aa275538a98667ac57d
| -rw-r--r-- | core/pld/src/pld_common.c | 6 | ||||
| -rw-r--r-- | core/pld/src/pld_snoc.c | 59 | ||||
| -rw-r--r-- | core/pld/src/pld_snoc.h | 25 |
3 files changed, 1 insertions, 89 deletions
diff --git a/core/pld/src/pld_common.c b/core/pld/src/pld_common.c index 858c821746c5..59538421e4e7 100644 --- a/core/pld/src/pld_common.c +++ b/core/pld/src/pld_common.c @@ -622,8 +622,6 @@ int pld_set_wlan_unsafe_channel(struct device *dev, ch_count); break; case PLD_BUS_TYPE_SNOC: - ret = pld_snoc_set_wlan_unsafe_channel(unsafe_ch_list, - ch_count); break; case PLD_BUS_TYPE_SDIO: /* To do get unsafe channel via cnss sdio API */ @@ -659,8 +657,6 @@ int pld_get_wlan_unsafe_channel(struct device *dev, u16 *unsafe_ch_list, ch_count, buf_len); break; case PLD_BUS_TYPE_SNOC: - ret = pld_snoc_get_wlan_unsafe_channel(unsafe_ch_list, - ch_count, buf_len); break; case PLD_BUS_TYPE_SDIO: /* To do get unsafe channel via cnss sdio API */ @@ -691,7 +687,6 @@ int pld_wlan_set_dfs_nol(struct device *dev, void *info, u16 info_len) ret = pld_pcie_wlan_set_dfs_nol(info, info_len); break; case PLD_BUS_TYPE_SNOC: - ret = pld_snoc_wlan_set_dfs_nol(info, info_len); break; case PLD_BUS_TYPE_SDIO: /* To do get nol via cnss sdio API */ @@ -724,7 +719,6 @@ int pld_wlan_get_dfs_nol(struct device *dev, void *info, u16 info_len) ret = pld_pcie_wlan_get_dfs_nol(info, info_len); break; case PLD_BUS_TYPE_SNOC: - ret = pld_snoc_wlan_get_dfs_nol(info, info_len); break; case PLD_BUS_TYPE_SDIO: break; diff --git a/core/pld/src/pld_snoc.c b/core/pld/src/pld_snoc.c index 562ec97b6eb6..bfbedb056c12 100644 --- a/core/pld/src/pld_snoc.c +++ b/core/pld/src/pld_snoc.c @@ -393,63 +393,4 @@ int pld_snoc_get_irq(int ce_id) return icnss_get_irq(ce_id); } -/** - * pld_snoc_set_wlan_unsafe_channel() - Set unsafe channel - * @unsafe_ch_list: unsafe channel list - * @ch_count: number of channel - * - * Return: 0 for success - * Non zero failure code for errors - */ -int pld_snoc_set_wlan_unsafe_channel(u16 *unsafe_ch_list, u16 ch_count) -{ - return icnss_set_wlan_unsafe_channel(unsafe_ch_list, ch_count); -} - -/** - * pld_get_wlan_unsafe_channel() - Get unsafe channel - * @unsafe_ch_list: buffer to unsafe channel list - * @ch_count: number of channel - * @buf_len: buffer length - * - * Return WLAN unsafe channel to the buffer. - * - * Return: 0 for success - * Non zero failure code for errors - */ -int pld_snoc_get_wlan_unsafe_channel(u16 *unsafe_ch_list, u16 *ch_count, - u16 buf_len) -{ - return icnss_get_wlan_unsafe_channel(unsafe_ch_list, ch_count, - buf_len); -} - -/** - * pld_wlan_set_dfs_nol() - Set DFS info - * @info: DFS info - * @info_len: info length - * - * Return: 0 for success - * Non zero failure code for errors - */ -int pld_snoc_wlan_set_dfs_nol(const void *info, u16 info_len) -{ - return icnss_wlan_set_dfs_nol(info, info_len); -} - -/** - * pld_wlan_get_dfs_nol() - Get DFS info - * @info: buffer to DFS info - * @info_len: info length - * - * Return DFS info to the buffer. - * - * Return: 0 for success - * Non zero failure code for errors - */ -int pld_snoc_wlan_get_dfs_nol(void *info, u16 info_len) -{ - return icnss_wlan_get_dfs_nol(info, info_len); -} - #endif diff --git a/core/pld/src/pld_snoc.h b/core/pld/src/pld_snoc.h index e047ae2c35af..ca1ce1d91cd6 100644 --- a/core/pld/src/pld_snoc.h +++ b/core/pld/src/pld_snoc.h @@ -87,25 +87,6 @@ static inline int pld_snoc_get_irq(int ce_id) { return 0; } -static inline int pld_snoc_set_wlan_unsafe_channel(u16 *unsafe_ch_list, - u16 ch_count) -{ - return 0; -} -static inline int pld_snoc_get_wlan_unsafe_channel(u16 *unsafe_ch_list, - u16 *ch_count, - u16 buf_len) -{ - return 0; -} -static inline int pld_snoc_wlan_set_dfs_nol(const void *info, u16 info_len) -{ - return 0; -} -static inline int pld_snoc_wlan_get_dfs_nol(void *info, u16 info_len) -{ - return 0; -} #else int pld_snoc_register_driver(void); void pld_snoc_unregister_driver(void); @@ -123,10 +104,6 @@ int pld_snoc_get_ce_id(int irq); int pld_snoc_power_on(struct device *dev); int pld_snoc_power_off(struct device *dev); int pld_snoc_get_irq(int ce_id); -int pld_snoc_set_wlan_unsafe_channel(u16 *unsafe_ch_list, u16 ch_count); -int pld_snoc_get_wlan_unsafe_channel(u16 *unsafe_ch_list, u16 *ch_count, - u16 buf_len); -int pld_snoc_wlan_set_dfs_nol(const void *info, u16 info_len); -int pld_snoc_wlan_get_dfs_nol(void *info, u16 info_len); #endif + #endif |
