mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
qcacld-3.0: Use iwpriv setRadarDbg to configure dfs log level
Use iwpriv command "setRadarDbg" to configure dfs log level because MCL does not have tools to trigger dfs_control. Change-Id: I2d7b30b026dfedbf03002463652fead83220fa2a CRs-Fixed: 2178636
This commit is contained in:
parent
f78a501d3f
commit
10f2645d36
3 changed files with 10 additions and 6 deletions
|
|
@ -3355,9 +3355,9 @@ static __iw_softap_setparam(struct net_device *dev,
|
|||
|
||||
switch (sub_cmd) {
|
||||
case QCASAP_SET_RADAR_DBG:
|
||||
hdd_debug("QCASAP_SET_RADAR_DBG called with: value: %d",
|
||||
set_value);
|
||||
wlan_sap_enable_phy_error_logs(hHal, (bool) set_value);
|
||||
hdd_debug("QCASAP_SET_RADAR_DBG called with: value: %x",
|
||||
set_value);
|
||||
wlan_sap_enable_phy_error_logs(hHal, set_value);
|
||||
break;
|
||||
|
||||
case QCSAP_PARAM_CLR_ACL:
|
||||
|
|
|
|||
|
|
@ -2627,11 +2627,15 @@ QDF_STATUS wlansap_acs_chselect(struct sap_context *sap_context,
|
|||
*
|
||||
* Return: void
|
||||
*/
|
||||
void wlan_sap_enable_phy_error_logs(tHalHandle hal, bool enable_log)
|
||||
void wlan_sap_enable_phy_error_logs(tHalHandle hal, uint32_t enable_log)
|
||||
{
|
||||
int error;
|
||||
|
||||
tpAniSirGlobal mac_ctx = PMAC_STRUCT(hal);
|
||||
|
||||
mac_ctx->sap.enable_dfs_phy_error_logs = enable_log;
|
||||
mac_ctx->sap.enable_dfs_phy_error_logs = !!enable_log;
|
||||
tgt_dfs_control(mac_ctx->pdev, DFS_SET_DEBUG_LEVEL, &enable_log,
|
||||
sizeof(uint32_t), NULL, NULL, &error);
|
||||
}
|
||||
|
||||
uint32_t wlansap_get_chan_width(struct sap_context *sap_ctx)
|
||||
|
|
|
|||
|
|
@ -1098,7 +1098,7 @@ QDF_STATUS sme_update_roam_scan_hi_rssi_scan_params(tHalHandle hal_handle,
|
|||
uint32_t notify_id,
|
||||
int32_t val);
|
||||
|
||||
void wlan_sap_enable_phy_error_logs(tHalHandle hal, bool enable_log);
|
||||
void wlan_sap_enable_phy_error_logs(tHalHandle hal, uint32_t enable_log);
|
||||
#ifdef WLAN_FEATURE_DSRC
|
||||
void sme_set_dot11p_config(tHalHandle hal, bool enable_dot11p);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue