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:
bings 2018-01-21 15:37:46 +08:00 • committed by snandini
commit 10f2645d36
3 changed files with 10 additions and 6 deletions

View file

@ -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:

View file

@ -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)

View file

@ -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);