qcacld-3.0: Rename file name and function name for sysfs 'tx_stbc'

Rename file name and modify function names to keep it inline
with sysfs attribute name 'tx_stbc'

Change-Id: I274c1405fab7385202431b48d65603c38783222b
CRs-Fixed: 2731064
This commit is contained in:
Srinivas Girigowda
2020-07-09 16:13:50 -07:00
committed by snandini
부모 fe1406f727
커밋 c9933da318
6개의 변경된 파일32개의 추가작업 그리고 32개의 파일을 삭제

6
Kbuild
파일 보기

@@ -301,8 +301,8 @@ endif
ifeq ($(CONFIG_WLAN_WOWL_DEL_PTRN), y) ifeq ($(CONFIG_WLAN_WOWL_DEL_PTRN), y)
HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_wowl_del_ptrn.o HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_wowl_del_ptrn.o
endif endif
ifeq ($(CONFIG_WLAN_GET_TX_STBC), y) ifeq ($(CONFIG_WLAN_SYSFS_TX_STBC), y)
HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_get_tx_stbc.o HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_tx_stbc.o
endif endif
ifeq ($(CONFIG_WLAN_GET_STATS), y) ifeq ($(CONFIG_WLAN_GET_STATS), y)
HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_get_stats.o HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_get_stats.o
@@ -2644,7 +2644,7 @@ cppflags-$(CONFIG_WLAN_SCAN_DISABLE) += -DCONFIG_WLAN_SCAN_DISABLE
cppflags-$(CONFIG_WLAN_WOW_ITO) += -DCONFIG_WLAN_WOW_ITO cppflags-$(CONFIG_WLAN_WOW_ITO) += -DCONFIG_WLAN_WOW_ITO
cppflags-$(CONFIG_WLAN_WOWL_ADD_PTRN) += -DCONFIG_WLAN_WOWL_ADD_PTRN cppflags-$(CONFIG_WLAN_WOWL_ADD_PTRN) += -DCONFIG_WLAN_WOWL_ADD_PTRN
cppflags-$(CONFIG_WLAN_WOWL_DEL_PTRN) += -DCONFIG_WLAN_WOWL_DEL_PTRN cppflags-$(CONFIG_WLAN_WOWL_DEL_PTRN) += -DCONFIG_WLAN_WOWL_DEL_PTRN
cppflags-$(CONFIG_WLAN_GET_TX_STBC) += -DCONFIG_WLAN_GET_TX_STBC cppflags-$(CONFIG_WLAN_SYSFS_TX_STBC) += -DCONFIG_WLAN_SYSFS_TX_STBC
cppflags-$(CONFIG_WLAN_GET_STATS) += -DCONFIG_WLAN_GET_STATS cppflags-$(CONFIG_WLAN_GET_STATS) += -DCONFIG_WLAN_GET_STATS
cppflags-$(CONFIG_WLAN_SET_WLAN_DBG) += -DCONFIG_WLAN_SET_WLAN_DBG cppflags-$(CONFIG_WLAN_SET_WLAN_DBG) += -DCONFIG_WLAN_SET_WLAN_DBG
cppflags-$(CONFIG_WLAN_TXRX_FW_ST_RST) += -DCONFIG_WLAN_TXRX_FW_ST_RST cppflags-$(CONFIG_WLAN_TXRX_FW_ST_RST) += -DCONFIG_WLAN_TXRX_FW_ST_RST

파일 보기

@@ -206,7 +206,7 @@ ifeq ($(CONFIG_WLAN_SYSFS), y)
CONFIG_WLAN_WOW_ITO := y CONFIG_WLAN_WOW_ITO := y
CONFIG_WLAN_WOWL_ADD_PTRN := y CONFIG_WLAN_WOWL_ADD_PTRN := y
CONFIG_WLAN_WOWL_DEL_PTRN := y CONFIG_WLAN_WOWL_DEL_PTRN := y
CONFIG_WLAN_GET_TX_STBC := y CONFIG_WLAN_SYSFS_TX_STBC := y
CONFIG_WLAN_GET_STATS := y CONFIG_WLAN_GET_STATS := y
CONFIG_WLAN_SET_WLAN_DBG := y CONFIG_WLAN_SET_WLAN_DBG := y
CONFIG_WLAN_TXRX_FW_ST_RST := y CONFIG_WLAN_TXRX_FW_ST_RST := y

파일 보기

@@ -52,7 +52,7 @@
#include <wlan_hdd_sysfs_wow_ito.h> #include <wlan_hdd_sysfs_wow_ito.h>
#include <wlan_hdd_sysfs_wowl_add_ptrn.h> #include <wlan_hdd_sysfs_wowl_add_ptrn.h>
#include <wlan_hdd_sysfs_wowl_del_ptrn.h> #include <wlan_hdd_sysfs_wowl_del_ptrn.h>
#include <wlan_hdd_sysfs_get_tx_stbc.h> #include <wlan_hdd_sysfs_tx_stbc.h>
#include <wlan_hdd_sysfs_get_stats.h> #include <wlan_hdd_sysfs_get_stats.h>
#include <wlan_hdd_sysfs_set_wlan_dbg.h> #include <wlan_hdd_sysfs_set_wlan_dbg.h>
#include <wlan_hdd_sysfs_txrx_fw_st_rst.h> #include <wlan_hdd_sysfs_txrx_fw_st_rst.h>
@@ -656,7 +656,7 @@ hdd_sysfs_create_sta_adapter_root_obj(struct hdd_adapter *adapter)
hdd_sysfs_dcm_create(adapter); hdd_sysfs_dcm_create(adapter);
hdd_sysfs_wowl_add_ptrn_create(adapter); hdd_sysfs_wowl_add_ptrn_create(adapter);
hdd_sysfs_wowl_del_ptrn_create(adapter); hdd_sysfs_wowl_del_ptrn_create(adapter);
hdd_sysfs_get_tx_stbc_create(adapter); hdd_sysfs_tx_stbc_create(adapter);
hdd_sysfs_get_stats_create(adapter); hdd_sysfs_get_stats_create(adapter);
hdd_sysfs_txrx_fw_st_rst_create(adapter); hdd_sysfs_txrx_fw_st_rst_create(adapter);
hdd_sysfs_gtx_bw_mask_create(adapter); hdd_sysfs_gtx_bw_mask_create(adapter);
@@ -686,7 +686,7 @@ hdd_sysfs_destroy_sta_adapter_root_obj(struct hdd_adapter *adapter)
hdd_sysfs_gtx_bw_mask_destroy(adapter); hdd_sysfs_gtx_bw_mask_destroy(adapter);
hdd_sysfs_txrx_fw_st_rst_destroy(adapter); hdd_sysfs_txrx_fw_st_rst_destroy(adapter);
hdd_sysfs_get_stats_destroy(adapter); hdd_sysfs_get_stats_destroy(adapter);
hdd_sysfs_get_tx_stbc_destroy(adapter); hdd_sysfs_tx_stbc_destroy(adapter);
hdd_sysfs_wowl_del_ptrn_destroy(adapter); hdd_sysfs_wowl_del_ptrn_destroy(adapter);
hdd_sysfs_wowl_add_ptrn_destroy(adapter); hdd_sysfs_wowl_add_ptrn_destroy(adapter);
hdd_sysfs_dcm_destroy(adapter); hdd_sysfs_dcm_destroy(adapter);
@@ -710,7 +710,7 @@ hdd_sysfs_create_sap_adapter_root_obj(struct hdd_adapter *adapter)
hdd_sysfs_unit_test_target_create(adapter); hdd_sysfs_unit_test_target_create(adapter);
hdd_sysfs_modify_acl_create(adapter); hdd_sysfs_modify_acl_create(adapter);
hdd_sysfs_connect_info_interface_create(adapter); hdd_sysfs_connect_info_interface_create(adapter);
hdd_sysfs_get_tx_stbc_create(adapter); hdd_sysfs_tx_stbc_create(adapter);
hdd_sysfs_get_stats_create(adapter); hdd_sysfs_get_stats_create(adapter);
hdd_sysfs_txrx_fw_st_rst_create(adapter); hdd_sysfs_txrx_fw_st_rst_create(adapter);
hdd_sysfs_gtx_bw_mask_create(adapter); hdd_sysfs_gtx_bw_mask_create(adapter);
@@ -742,7 +742,7 @@ hdd_sysfs_destroy_sap_adapter_root_obj(struct hdd_adapter *adapter)
hdd_sysfs_gtx_bw_mask_destroy(adapter); hdd_sysfs_gtx_bw_mask_destroy(adapter);
hdd_sysfs_txrx_fw_st_rst_destroy(adapter); hdd_sysfs_txrx_fw_st_rst_destroy(adapter);
hdd_sysfs_get_stats_destroy(adapter); hdd_sysfs_get_stats_destroy(adapter);
hdd_sysfs_get_tx_stbc_destroy(adapter); hdd_sysfs_tx_stbc_destroy(adapter);
hdd_sysfs_connect_info_interface_destroy(adapter); hdd_sysfs_connect_info_interface_destroy(adapter);
hdd_sysfs_modify_acl_destroy(adapter); hdd_sysfs_modify_acl_destroy(adapter);
hdd_sysfs_unit_test_target_destroy(adapter); hdd_sysfs_unit_test_target_destroy(adapter);

파일 보기

@@ -112,7 +112,7 @@ hdd_sysfs_set_dp_trace_store(struct kobject *kobj,
} }
static struct kobj_attribute set_dp_trace_attribute = static struct kobj_attribute set_dp_trace_attribute =
__ATTR(dp_trace, 0220, NULL, __ATTR(set_dp_trace, 0220, NULL,
hdd_sysfs_set_dp_trace_store); hdd_sysfs_set_dp_trace_store);
static uint32_t dump_dp_trace_count = 0; static uint32_t dump_dp_trace_count = 0;

파일 보기

@@ -15,7 +15,7 @@
*/ */
/** /**
* DOC: wlan_hdd_sysfs_get_tx_stbc.c * DOC: wlan_hdd_sysfs_tx_stbc.c
* *
* implementation for creating sysfs file tx_stbc * implementation for creating sysfs file tx_stbc
*/ */
@@ -24,7 +24,7 @@
#include <wlan_hdd_sysfs.h> #include <wlan_hdd_sysfs.h>
#include "osif_vdev_sync.h" #include "osif_vdev_sync.h"
#include "sme_api.h" #include "sme_api.h"
#include <wlan_hdd_sysfs_get_tx_stbc.h> #include <wlan_hdd_sysfs_tx_stbc.h>
static int hdd_sysfs_get_tx_stbc(struct hdd_adapter *adapter, int *value) static int hdd_sysfs_get_tx_stbc(struct hdd_adapter *adapter, int *value)
{ {
@@ -45,7 +45,7 @@ static int hdd_sysfs_get_tx_stbc(struct hdd_adapter *adapter, int *value)
} }
static ssize_t static ssize_t
__hdd_sysfs_get_tx_stbc_show(struct net_device *net_dev, char *buf) __hdd_sysfs_tx_stbc_show(struct net_device *net_dev, char *buf)
{ {
struct hdd_adapter *adapter = netdev_priv(net_dev); struct hdd_adapter *adapter = netdev_priv(net_dev);
struct hdd_context *hdd_ctx; struct hdd_context *hdd_ctx;
@@ -75,9 +75,9 @@ __hdd_sysfs_get_tx_stbc_show(struct net_device *net_dev, char *buf)
} }
static ssize_t static ssize_t
hdd_sysfs_get_tx_stbc_show(struct device *dev, hdd_sysfs_tx_stbc_show(struct device *dev,
struct device_attribute *attr, struct device_attribute *attr,
char *buf) char *buf)
{ {
struct net_device *net_dev = container_of(dev, struct net_device, dev); struct net_device *net_dev = container_of(dev, struct net_device, dev);
struct osif_vdev_sync *vdev_sync; struct osif_vdev_sync *vdev_sync;
@@ -87,7 +87,7 @@ hdd_sysfs_get_tx_stbc_show(struct device *dev,
if (err_size) if (err_size)
return err_size; return err_size;
err_size = __hdd_sysfs_get_tx_stbc_show(net_dev, buf); err_size = __hdd_sysfs_tx_stbc_show(net_dev, buf);
osif_vdev_sync_op_stop(vdev_sync); osif_vdev_sync_op_stop(vdev_sync);
@@ -95,9 +95,9 @@ hdd_sysfs_get_tx_stbc_show(struct device *dev,
} }
static DEVICE_ATTR(tx_stbc, 0440, static DEVICE_ATTR(tx_stbc, 0440,
hdd_sysfs_get_tx_stbc_show, NULL); hdd_sysfs_tx_stbc_show, NULL);
int hdd_sysfs_get_tx_stbc_create(struct hdd_adapter *adapter) int hdd_sysfs_tx_stbc_create(struct hdd_adapter *adapter)
{ {
int error; int error;
@@ -109,7 +109,7 @@ int hdd_sysfs_get_tx_stbc_create(struct hdd_adapter *adapter)
return error; return error;
} }
void hdd_sysfs_get_tx_stbc_destroy(struct hdd_adapter *adapter) void hdd_sysfs_tx_stbc_destroy(struct hdd_adapter *adapter)
{ {
device_remove_file(&adapter->dev->dev, &dev_attr_tx_stbc); device_remove_file(&adapter->dev->dev, &dev_attr_tx_stbc);
} }

파일 보기

@@ -15,17 +15,17 @@
*/ */
/** /**
* DOC: wlan_hdd_sysfs_get_tx_stbc.h * DOC: wlan_hdd_sysfs_tx_stbc.h
* *
* implementation for creating sysfs file tx_stbc * Implementation for creating sysfs file tx_stbc
*/ */
#ifndef _WLAN_HDD_SYSFS_GET_TX_STBC_H #ifndef _WLAN_HDD_SYSFS_TX_STBC_H
#define _WLAN_HDD_SYSFS_GET_TX_STBC_H #define _WLAN_HDD_SYSFS_TX_STBC_H
#if defined(WLAN_SYSFS) && defined(CONFIG_WLAN_GET_TX_STBC) #if defined(WLAN_SYSFS) && defined(CONFIG_WLAN_SYSFS_TX_STBC)
/** /**
* hdd_sysfs_get_tx_stbc_create() - API to create tx_stbc sysfs file * hdd_sysfs_tx_stbc_create() - API to create tx_stbc sysfs file
* @adapter: pointer to adapter * @adapter: pointer to adapter
* *
* this file is created per adapter. * this file is created per adapter.
@@ -37,26 +37,26 @@
* *
* Return: 0 on success and errno on failure * Return: 0 on success and errno on failure
*/ */
int hdd_sysfs_get_tx_stbc_create(struct hdd_adapter *adapter); int hdd_sysfs_tx_stbc_create(struct hdd_adapter *adapter);
/** /**
* hdd_sysfs_get_tx_stbc_destroy() - * hdd_sysfs_tx_stbc_destroy() -
* API to destroy tx_stbc sysfs file * API to destroy tx_stbc sysfs file
* @adapter: pointer to adapter * @adapter: pointer to adapter
* *
* Return: none * Return: none
*/ */
void hdd_sysfs_get_tx_stbc_destroy(struct hdd_adapter *adapter); void hdd_sysfs_tx_stbc_destroy(struct hdd_adapter *adapter);
#else #else
static inline int static inline int
hdd_sysfs_get_tx_stbc_create(struct hdd_adapter *adapter) hdd_sysfs_tx_stbc_create(struct hdd_adapter *adapter)
{ {
return 0; return 0;
} }
static inline void static inline void
hdd_sysfs_get_tx_stbc_destroy(struct hdd_adapter *adapter) hdd_sysfs_tx_stbc_destroy(struct hdd_adapter *adapter)
{ {
} }
#endif #endif
#endif /* #ifndef _WLAN_HDD_SYSFS_GET_TX_STBC_H */ #endif /* #ifndef _WLAN_HDD_SYSFS_TX_STBC_H */