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

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

Change-Id: Ibb13c1496ea1dd5bc3b024b99414ac8d72db3be6
CRs-Fixed: 2731064
This commit is contained in:
Srinivas Girigowda 2020-07-09 12:13:54 -07:00 • committed by snandini
commit 82f61cee0f
5 changed files with 22 additions and 22 deletions

6
Kbuild
View file

@ -269,8 +269,8 @@ endif
ifeq ($(CONFIG_WLAN_REASSOC), y)
HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_reassoc.o
endif
ifeq ($(CONFIG_WLAN_SYSFS_GET_STA_INFO), y)
HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_get_sta_info.o
ifeq ($(CONFIG_WLAN_SYSFS_STA_INFO), y)
HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_sta_info.o
endif
ifeq ($(CONFIG_WLAN_DEBUG_CRASH_INJECT), y)
HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_crash_inject.o
@ -2665,7 +2665,7 @@ cppflags-$(CONFIG_FEATURE_WLM_STATS) += -DFEATURE_WLM_STATS
cppflags-$(CONFIG_WLAN_SYSFS_MEM_STATS) += -DCONFIG_WLAN_SYSFS_MEM_STATS
cppflags-$(CONFIG_WLAN_SYSFS_DCM) += -DWLAN_SYSFS_DCM
cppflags-$(CONFIG_WLAN_SYSFS_HE_BSS_COLOR) += -DWLAN_SYSFS_HE_BSS_COLOR
cppflags-$(CONFIG_WLAN_SYSFS_GET_STA_INFO) += -DWLAN_SYSFS_GET_STA_INFO
cppflags-$(CONFIG_WLAN_SYSFS_STA_INFO) += -DWLAN_SYSFS_STA_INFO
ifeq ($(CONFIG_LEAK_DETECTION), y)
cppflags-y += \

View file

@ -195,7 +195,7 @@ CONFIG_QCOM_TDLS := y
CONFIG_WLAN_SYSFS := y
ifeq ($(CONFIG_WLAN_SYSFS), y)
CONFIG_WLAN_SYSFS_GET_STA_INFO := y
CONFIG_WLAN_SYSFS_STA_INFO := y
CONFIG_WLAN_SYSFS_CHANNEL := y
CONFIG_WLAN_SET_FW_MODE_CFG := y
CONFIG_WLAN_SYSFS_MEM_STATS := y

View file

@ -15,17 +15,17 @@
*/
/**
* DOC: wlan_hdd_sysfs_get_sta_info.h
* DOC: wlan_hdd_sysfs_sta_info.h
*
* implementation for creating sysfs file sta_info
*/
#ifndef _WLAN_HDD_SYSFS_GET_STA_INFO_H
#define _WLAN_HDD_SYSFS_GET_STA_INFO_H
#ifndef _WLAN_HDD_SYSFS_STA_INFO_H
#define _WLAN_HDD_SYSFS_STA_INFO_H
#if defined(WLAN_SYSFS) && defined(WLAN_SYSFS_GET_STA_INFO)
#if defined(WLAN_SYSFS) && defined(WLAN_SYSFS_STA_INFO)
/**
* hdd_sysfs_get_sta_info_interface_create() - API to create sta_info sysfs
* hdd_sysfs_sta_info_interface_create() - API to create sta_info sysfs
* interface
* @adapter: pointer to adapter
*
@ -38,25 +38,25 @@
*
* Return: none
*/
void hdd_sysfs_get_sta_info_interface_create(struct hdd_adapter *adapter);
void hdd_sysfs_sta_info_interface_create(struct hdd_adapter *adapter);
/**
* hdd_sysfs_get_sta_info_interface_destroy() - API to destroy sta_info
* hdd_sysfs_sta_info_interface_destroy() - API to destroy sta_info
* @adapter: pointer to adapter
*
* Return: none
*/
void hdd_sysfs_get_sta_info_interface_destroy(struct hdd_adapter *adapter);
void hdd_sysfs_sta_info_interface_destroy(struct hdd_adapter *adapter);
#else
static inline
void hdd_sysfs_get_sta_info_interface_create(struct hdd_adapter *adapter)
void hdd_sysfs_sta_info_interface_create(struct hdd_adapter *adapter)
{
}
static inline
void hdd_sysfs_get_sta_info_interface_destroy(struct hdd_adapter *adapter)
void hdd_sysfs_sta_info_interface_destroy(struct hdd_adapter *adapter)
{
}
#endif
#endif /* #ifndef _WLAN_HDD_SYSFS_GET_STA_INFO_H */
#endif /* #ifndef _WLAN_HDD_SYSFS_STA_INFO_H */

View file

@ -37,7 +37,7 @@
#include <sir_api.h>
#endif
#include "osif_sync.h"
#include "wlan_hdd_sysfs_get_sta_info.h"
#include "wlan_hdd_sysfs_sta_info.h"
#include "wlan_hdd_sysfs_channel.h"
#include <wlan_hdd_sysfs_set_fw_mode_cfg.h>
#include <wlan_hdd_sysfs_reassoc.h>
@ -703,7 +703,7 @@ static void
hdd_sysfs_create_sap_adapter_root_obj(struct hdd_adapter *adapter)
{
hdd_sysfs_channel_interface_create(adapter);
hdd_sysfs_get_sta_info_interface_create(adapter);
hdd_sysfs_sta_info_interface_create(adapter);
hdd_sysfs_crash_inject_create(adapter);
hdd_sysfs_suspend_create(adapter);
hdd_sysfs_resume_create(adapter);
@ -749,7 +749,7 @@ hdd_sysfs_destroy_sap_adapter_root_obj(struct hdd_adapter *adapter)
hdd_sysfs_resume_destroy(adapter);
hdd_sysfs_suspend_destroy(adapter);
hdd_sysfs_crash_inject_destroy(adapter);
hdd_sysfs_get_sta_info_interface_destroy(adapter);
hdd_sysfs_sta_info_interface_destroy(adapter);
hdd_sysfs_channel_interface_destroy(adapter);
}

View file

@ -15,14 +15,14 @@
*/
/**
* DOC: wlan_hdd_sysfs_get_sta_info.c
* DOC: wlan_hdd_sysfs_sta_info.c
*
* implementation for creating sysfs file sta_info
*/
#include <wlan_hdd_includes.h>
#include "osif_vdev_sync.h"
#include "wlan_hdd_sysfs_get_sta_info.h"
#include "wlan_hdd_sysfs_sta_info.h"
static ssize_t __show_sta_info(struct net_device *net_dev, char *buf)
{
@ -94,7 +94,7 @@ static ssize_t show_sta_info(struct device *dev,
static DEVICE_ATTR(sta_info, 0444, show_sta_info, NULL);
void hdd_sysfs_get_sta_info_interface_create(struct hdd_adapter *adapter)
void hdd_sysfs_sta_info_interface_create(struct hdd_adapter *adapter)
{
int error;
@ -103,7 +103,7 @@ void hdd_sysfs_get_sta_info_interface_create(struct hdd_adapter *adapter)
hdd_err("Could not create sta_info sysfs file");
}
void hdd_sysfs_get_sta_info_interface_destroy(struct hdd_adapter *adapter)
void hdd_sysfs_sta_info_interface_destroy(struct hdd_adapter *adapter)
{
device_remove_file(&adapter->dev->dev, &dev_attr_sta_info);
}