qcacld-3.0: UT and 11be_rate sysfs support for NDI iface
Userspace may need to send certain unit test commands(targeted to firmware) on NDI interface. But currently it's supported only on STA and SAP interfaces. Enable the same for NDI. Similarly, userspace may want to control the 11be rates of NDPs. These are currently controlled through vdev param WMI_VDEV_PARAM_FIXED_RATE and sysfs interface is exposed through 11be_rate for STA and SAP. Enable the same for NDI. Change-Id: I6a492a65c4ec8c3fb623964eb4c0d939e492f5a6 CRs-Fixed: 3668420
Šī revīzija ir iekļauta:

revīziju iesūtīja
Ravindra Konda

vecāks
b5c25ebb68
revīzija
a05e310646
@@ -9277,6 +9277,7 @@ static void hdd_stop_and_cleanup_ndi(struct wlan_hdd_link_info *link_info)
|
|||||||
struct hdd_adapter *adapter = link_info->adapter;
|
struct hdd_adapter *adapter = link_info->adapter;
|
||||||
struct hdd_context *hdd_ctx = adapter->hdd_ctx;
|
struct hdd_context *hdd_ctx = adapter->hdd_ctx;
|
||||||
|
|
||||||
|
hdd_destroy_adapter_sysfs_files(adapter);
|
||||||
/* For NDI do not use roam_profile */
|
/* For NDI do not use roam_profile */
|
||||||
INIT_COMPLETION(adapter->disconnect_comp_var);
|
INIT_COMPLETION(adapter->disconnect_comp_var);
|
||||||
hdd_peer_cleanup(link_info);
|
hdd_peer_cleanup(link_info);
|
||||||
|
@@ -45,6 +45,7 @@
|
|||||||
#include <cdp_txrx_misc.h>
|
#include <cdp_txrx_misc.h>
|
||||||
#include "wlan_fwol_ucfg_api.h"
|
#include "wlan_fwol_ucfg_api.h"
|
||||||
#include "wlan_dp_ucfg_api.h"
|
#include "wlan_dp_ucfg_api.h"
|
||||||
|
#include "wlan_hdd_sysfs.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* hdd_nan_datapath_target_config() - Configure NAN datapath features
|
* hdd_nan_datapath_target_config() - Configure NAN datapath features
|
||||||
@@ -861,6 +862,7 @@ int hdd_ndi_start(const char *iface_name, uint16_t transaction_id)
|
|||||||
goto err_handler;
|
goto err_handler;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hdd_create_adapter_sysfs_files(adapter);
|
||||||
hdd_exit();
|
hdd_exit();
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@@ -1187,6 +1187,20 @@ void hdd_sysfs_create_ftm_adapter_root_obj(struct hdd_adapter *adapter)
|
|||||||
hdd_sysfs_unit_test_target_create(adapter);
|
hdd_sysfs_unit_test_target_create(adapter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
hdd_sysfs_create_ndi_adapter_root_obj(struct hdd_adapter *adapter)
|
||||||
|
{
|
||||||
|
hdd_sysfs_unit_test_target_create(adapter);
|
||||||
|
hdd_sysfs_11be_rate_create(adapter);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
hdd_sysfs_destroy_ndi_adapter_root_obj(struct hdd_adapter *adapter)
|
||||||
|
{
|
||||||
|
hdd_sysfs_11be_rate_destroy(adapter);
|
||||||
|
hdd_sysfs_unit_test_target_destroy(adapter);
|
||||||
|
}
|
||||||
|
|
||||||
void hdd_create_adapter_sysfs_files(struct hdd_adapter *adapter)
|
void hdd_create_adapter_sysfs_files(struct hdd_adapter *adapter)
|
||||||
{
|
{
|
||||||
int device_mode = adapter->device_mode;
|
int device_mode = adapter->device_mode;
|
||||||
@@ -1212,6 +1226,9 @@ void hdd_create_adapter_sysfs_files(struct hdd_adapter *adapter)
|
|||||||
case QDF_FTM_MODE:
|
case QDF_FTM_MODE:
|
||||||
hdd_sysfs_create_ftm_adapter_root_obj(adapter);
|
hdd_sysfs_create_ftm_adapter_root_obj(adapter);
|
||||||
break;
|
break;
|
||||||
|
case QDF_NDI_MODE:
|
||||||
|
hdd_sysfs_create_ndi_adapter_root_obj(adapter);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -1247,6 +1264,9 @@ void hdd_destroy_adapter_sysfs_files(struct hdd_adapter *adapter)
|
|||||||
case QDF_FTM_MODE:
|
case QDF_FTM_MODE:
|
||||||
hdd_sysfs_destroy_ftm_adapter_root_obj(adapter);
|
hdd_sysfs_destroy_ftm_adapter_root_obj(adapter);
|
||||||
break;
|
break;
|
||||||
|
case QDF_NDI_MODE:
|
||||||
|
hdd_sysfs_destroy_ndi_adapter_root_obj(adapter);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Atsaukties uz šo jaunā problēmā
Block a user