qcacld-3.0: Add sysfs entry for the ipaucstat

Add the sysfs entry for the ipaucstat.

Previously ipaucstat would be queried via iwpriv
--> iwpriv wlan0 ipaucstat 1

it is now changed to support via sysfs:
--> echo "1" > /sys/class/net/wlanxx/ipaucstat

Change-Id: I5a3195a36cd2d7252eb3ef0312545d338b40d3ec
CRs-Fixed: 2676440
This commit is contained in:
Arun Kumar Khandavalli
2020-05-12 08:51:38 +05:30
committed by nshrivas
vanhempi 5a1000a798
commit 40c74bf143
4 muutettua tiedostoa jossa 188 lisäystä ja 0 poistoa

Näytä tiedosto

@@ -0,0 +1,58 @@
/*
* Copyright (c) 2011-2020, The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef WLAN_HDD_SYSFS_IPA_H
#define WLAN_HDD_SYSFS_IPA_H
#if defined(WLAN_SYSFS) && defined(IPA_OFFLOAD)
enum ipa_debug_cmd {
IPA_UC_STAT = 1,
IPA_UC_INFO,
IPA_UC_RT_DEBUG_HOST_DUMP,
IPA_DUMP_INFO,
};
/**
* hdd_sysfs_ipa_create(): Initialize ipa specific sysfs file
* @adapter: os if adapter
*
* Function to initialize ipa specific mode syfs files.
*
* Return: NONE
*/
void hdd_sysfs_ipa_create(struct hdd_adapter *adapter);
/**
* hdd_sysfs_ipa_destroy(): Remove ipucstat specific sysfs file
* @adapter: os if adapter
*
* Function to remove ipa specific mode syfs files.
*
* Return: NONE
*/
void hdd_sysfs_ipa_destroy(struct hdd_adapter *adapter);
#else
static inline
void hdd_sysfs_ipa_create(struct hdd_adapter *adapter)
{
}
static inline
void hdd_sysfs_ipa_destroy(struct hdd_adapter *adapter)
{
}
#endif
#endif