qcacld-3.0: Selectively reduce the hdd/osif logs

Reduce loglevel of some logs from info to debug.

Change-Id: Ie90515989a45bc41274bd79afe4c5e407561256b
CRs-Fixed: 2608793
This commit is contained in:
Arun Kumar Khandavalli 2020-01-20 11:46:36 +05:30 committed by nshrivas
parent d7df29402b
commit afcb0553ff
18 changed files with 150 additions and 135 deletions

View File

@ -1379,10 +1379,12 @@ static void hdd_send_association_event(struct net_device *dev,
ucfg_p2p_status_connect(adapter->vdev);
hdd_info("%s(vdevid-%d): " QDF_MAC_ADDR_STR " connected to "
QDF_MAC_ADDR_STR, dev->name, adapter->vdev_id,
QDF_MAC_ADDR_ARRAY(adapter->mac_addr.bytes),
QDF_MAC_ADDR_ARRAY(wrqu.ap_addr.sa_data));
hdd_nofl_info("%s(vdevid-%d): " QDF_MAC_ADDR_STR
" connected to "
QDF_MAC_ADDR_STR, dev->name, adapter->vdev_id,
QDF_MAC_ADDR_ARRAY(adapter->mac_addr.bytes),
QDF_MAC_ADDR_ARRAY(wrqu.ap_addr.sa_data));
hdd_send_update_beacon_ies_event(adapter, roam_info);
/*
@ -1454,8 +1456,8 @@ static void hdd_send_association_event(struct net_device *dev,
dev->name, adapter->vdev_id,
QDF_MAC_ADDR_ARRAY(sta_ctx->conn_info.bssid.bytes));
} else { /* Not Associated */
hdd_info("%s(vdevid-%d): disconnected", dev->name,
adapter->vdev_id);
hdd_nofl_info("%s(vdevid-%d): disconnected", dev->name,
adapter->vdev_id);
memset(wrqu.ap_addr.sa_data, '\0', ETH_ALEN);
policy_mgr_decr_session_set_pcl(hdd_ctx->psoc,
adapter->device_mode, adapter->vdev_id);
@ -1809,7 +1811,7 @@ static QDF_STATUS hdd_dis_connect_handler(struct hdd_adapter *adapter,
sme_ft_reset(mac_handle, adapter->vdev_id);
sme_reset_key(mac_handle, adapter->vdev_id);
if (!hdd_remove_beacon_filter(adapter))
hdd_err("hdd_remove_beacon_filter() failed");
hdd_debug("hdd_remove_beacon_filter() failed");
if (sme_is_beacon_report_started(mac_handle, adapter->vdev_id)) {
hdd_debug("Sending beacon pause indication to userspace");
@ -5550,7 +5552,7 @@ int hdd_set_genie_to_csr(struct hdd_adapter *adapter,
if (hdd_ctx->force_rsne_override &&
(security_ie[0] == DOT11F_EID_RSN)) {
hdd_warn("Test mode enabled set def Auth and enc type. RSN IE passed in connect req: ");
qdf_trace_hex_dump(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_WARN,
qdf_trace_hex_dump(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_DEBUG,
roam_profile->pRSNReqIE,
roam_profile->nRSNReqIELength);

View File

@ -446,7 +446,7 @@ QDF_STATUS hdd_set_idle_ps_config(struct hdd_context *hdd_ctx, bool val)
}
if (hdd_ctx->imps_enabled == val) {
hdd_info("Already in the requested power state:%d", val);
hdd_nofl_debug("Already in the requested power state:%d", val);
return QDF_STATUS_SUCCESS;
}

View File

@ -1960,7 +1960,7 @@ int wlan_hdd_cfg80211_start_acs(struct hdd_adapter *adapter)
qdf_mem_copy(sap_config->self_macaddr.bytes,
adapter->mac_addr.bytes, sizeof(struct qdf_mac_addr));
hdd_info("ACS Started for %s", adapter->dev->name);
hdd_debug("ACS Started for %s", adapter->dev->name);
qdf_status = wlansap_acs_chselect(WLAN_HDD_GET_SAP_CTX_PTR(adapter),
acs_event_callback,
@ -2923,6 +2923,8 @@ static int __wlan_hdd_cfg80211_do_acs(struct wiphy *wiphy,
}
hw_mode = nla_get_u8(tb[QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE]);
hdd_nofl_info("ACS request vid %d hw mode %d", adapter->vdev_id,
hw_mode);
if (tb[QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED])
ht_enabled =
nla_get_flag(tb[QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED]);
@ -9095,7 +9097,7 @@ static int __wlan_hdd_cfg80211_wifi_logger_get_ring_data(struct wiphy *wiphy,
* As part of DRIVER ring ID, flush both driver and fw logs.
* For other Ring ID's driver doesn't have any rings to flush
*/
hdd_info("Bug report triggered by framework");
hdd_debug("Bug report triggered by framework");
status = cds_flush_logs(WLAN_LOG_TYPE_NON_FATAL,
WLAN_LOG_INDICATOR_FRAMEWORK,
@ -17576,7 +17578,7 @@ bool wlan_hdd_handle_sap_sta_dfs_conc(struct hdd_adapter *adapter,
/* sap is on non-dfs channel, nothing to handle */
if (!wlan_reg_is_dfs_for_freq(hdd_ctx->pdev,
hdd_ap_ctx->operating_chan_freq)) {
hdd_info("sap is on non-dfs channel, sta is allowed");
hdd_debug("sap is on non-dfs channel, sta is allowed");
return true;
}
/*
@ -18731,8 +18733,8 @@ static void hdd_populate_crypto_cipher_type(u32 cipher,
HDD_SET_BIT(set_val, crypto_cipher_type);
status = wlan_crypto_set_vdev_param(vdev, cipher_param_type, set_val);
if (QDF_IS_STATUS_ERROR(status))
hdd_err("Failed to set cipher params %d type %0x to crypto",
cipher_param_type, set_val);
hdd_debug("Failed to set cipher params %d type %0x to crypto",
cipher_param_type, set_val);
}
/**
@ -20139,9 +20141,9 @@ static int __wlan_hdd_cfg80211_connect(struct wiphy *wiphy,
TRACE_CODE_HDD_CFG80211_CONNECT,
adapter->vdev_id, adapter->device_mode);
hdd_info("%s(vdevid-%d): Device_mode %s(%d)",
ndev->name, adapter->vdev_id,
qdf_opmode_str(adapter->device_mode), adapter->device_mode);
hdd_debug("%s(vdevid-%d): Device_mode %s(%d)",
ndev->name, adapter->vdev_id,
qdf_opmode_str(adapter->device_mode), adapter->device_mode);
if (adapter->device_mode != QDF_STA_MODE &&
adapter->device_mode != QDF_P2P_CLIENT_MODE) {
@ -20350,7 +20352,7 @@ int wlan_hdd_disconnect(struct hdd_adapter *adapter, u16 reason)
wlan_hdd_wait_for_roaming(mac_handle, adapter);
/*stop tx queues */
hdd_info("Disabling queues");
hdd_debug("Disabling queues");
wlan_hdd_netif_queue_control(adapter,
WLAN_STOP_ALL_NETIF_QUEUE_N_CARRIER, WLAN_CONTROL_PATH);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2019-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
@ -349,7 +349,7 @@ int wlan_hdd_create_mib_stats_file(struct hdd_adapter *adapter)
if (QDF_IS_STATUS_ERROR(qdf_mutex_create(
&mibstats_lock))) {
hdd_err("mibstats lock init failed!");
hdd_debug("mibstats lock init failed!");
return QDF_STATUS_E_FAILURE;
}

View File

@ -283,7 +283,7 @@ int hdd_hif_open(struct device *dev, void *bdev, const struct hif_bus_id *bid,
ret = hdd_napi_create();
hdd_debug("hdd_napi_create returned: %d", ret);
if (ret == 0)
hdd_warn("NAPI: no instances are created");
hdd_debug("NAPI: no instances are created");
else if (ret < 0) {
hdd_err("NAPI creation error, rc: 0x%x, reinit: %d",
ret, reinit);
@ -1068,7 +1068,7 @@ int wlan_hdd_bus_suspend_noirq(void)
int errno;
uint32_t pending_events;
hdd_info("start bus_suspend_noirq");
hdd_debug("start bus_suspend_noirq");
errno = wlan_hdd_validate_context(hdd_ctx);
if (errno) {
hdd_err("Invalid HDD context: errno %d", errno);
@ -1109,7 +1109,7 @@ int wlan_hdd_bus_suspend_noirq(void)
hdd_ctx->suspend_resume_stats.suspends++;
hdd_info("bus_suspend_noirq done");
hdd_debug("bus_suspend_noirq done");
return 0;
resume_hif_noirq:
@ -1221,7 +1221,7 @@ int wlan_hdd_bus_resume_noirq(void)
int status;
QDF_STATUS qdf_status;
hdd_info("starting bus_resume_noirq");
hdd_debug("starting bus_resume_noirq");
if (cds_is_driver_recovering())
return 0;
@ -1246,7 +1246,7 @@ int wlan_hdd_bus_resume_noirq(void)
status = hif_bus_resume_noirq(hif_ctx);
QDF_BUG(!status);
hdd_info("bus_resume_noirq done");
hdd_debug("bus_resume_noirq done");
return status;
}

View File

@ -713,9 +713,9 @@ static int __hdd_hostapd_set_mac_address(struct net_device *dev, void *addr)
return -EINVAL;
}
hdd_info("Changing MAC to " QDF_MAC_ADDR_STR " of interface %s ",
QDF_MAC_ADDR_ARRAY(mac_addr.bytes),
dev->name);
hdd_debug("Changing MAC to " QDF_MAC_ADDR_STR " of interface %s ",
QDF_MAC_ADDR_ARRAY(mac_addr.bytes),
dev->name);
hdd_update_dynamic_mac(hdd_ctx, &adapter->mac_addr, &mac_addr);
memcpy(&adapter->mac_addr, psta_mac_addr->sa_data, ETH_ALEN);
memcpy(dev->dev_addr, psta_mac_addr->sa_data, ETH_ALEN);
@ -1269,7 +1269,7 @@ static int get_max_rate_vht(int nss, int ch_width, int sgi, int vht_mcs_map)
supported_vht_mcs_rate = supported_vht_mcs_rate_nss2;
} else {
/* Not Supported */
hdd_err("nss %d not supported", nss);
hdd_debug("nss %d not supported", nss);
return maxrate;
}
@ -1663,7 +1663,7 @@ static void hdd_hostapd_set_sap_key(struct hdd_adapter *adapter)
crypto_key = wlan_crypto_get_key(adapter->vdev, 0);
if (!crypto_key) {
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_DEBUG,
"Crypto KEY is NULL");
return;
}
@ -1775,13 +1775,17 @@ QDF_STATUS hdd_hostapd_sap_event_cb(struct sap_event *sap_event,
adapter->vdev_id =
sap_event->sapevt.sapStartBssCompleteEvent.sessionId;
sap_config->chan_freq =
sap_event->sapevt.sapStartBssCompleteEvent.
operating_chan_freq;
sap_config->ch_params.ch_width =
sap_event->sapevt.sapStartBssCompleteEvent.ch_width;
hdd_nofl_info("AP started vid %d freq %d BW %d",
adapter->vdev_id,
ap_ctx->operating_chan_freq,
sap_config->ch_params.ch_width);
sap_config->ch_params = ap_ctx->sap_context->ch_params;
sap_config->sec_ch_freq = ap_ctx->sap_context->sec_ch_freq;
@ -1946,7 +1950,8 @@ QDF_STATUS hdd_hostapd_sap_event_cb(struct sap_event *sap_event,
ap_ctx->dfs_cac_block_tx = true;
hdd_ctx->dev_dfs_cac_status = DFS_CAC_NEVER_DONE;
}
hdd_debug("bss_stop_reason=%d", ap_ctx->bss_stop_reason);
hdd_nofl_info("Ap stopped vid %d reason=%d", adapter->vdev_id,
ap_ctx->bss_stop_reason);
if ((BSS_STOP_DUE_TO_MCC_SCC_SWITCH !=
ap_ctx->bss_stop_reason) &&
(BSS_STOP_DUE_TO_VENDOR_CONFIG_CHAN !=
@ -2298,8 +2303,8 @@ QDF_STATUS hdd_hostapd_sap_event_cb(struct sap_event *sap_event,
cache_stainfo->reason_code = disassoc_comp->reason_code;
cache_stainfo->disassoc_ts = qdf_system_ticks();
}
hdd_info(" disassociated " QDF_MAC_ADDR_STR,
QDF_MAC_ADDR_ARRAY(wrqu.addr.sa_data));
hdd_nofl_info("SAP disassociated " QDF_MAC_ADDR_STR,
QDF_MAC_ADDR_ARRAY(wrqu.addr.sa_data));
qdf_status = qdf_event_set(&hostapd_state->qdf_sta_disassoc_event);
if (!QDF_IS_STATUS_SUCCESS(qdf_status))
@ -2546,8 +2551,6 @@ QDF_STATUS hdd_hostapd_sap_event_cb(struct sap_event *sap_event,
return hdd_handle_acs_scan_event(sap_event, adapter);
case eSAP_ACS_CHANNEL_SELECTED:
hdd_debug("ACS Completed for wlan%d",
adapter->dev->ifindex);
ap_ctx->sap_config.acs_cfg.pri_ch_freq =
sap_event->sapevt.sap_ch_selected.pri_ch_freq;
ap_ctx->sap_config.acs_cfg.ht_sec_ch_freq =
@ -2558,6 +2561,11 @@ QDF_STATUS hdd_hostapd_sap_event_cb(struct sap_event *sap_event,
sap_event->sapevt.sap_ch_selected.vht_seg1_center_ch_freq;
ap_ctx->sap_config.acs_cfg.ch_width =
sap_event->sapevt.sap_ch_selected.ch_width;
hdd_nofl_info("ACS Completed vid %d freq %d BW %d",
adapter->vdev_id,
ap_ctx->sap_config.acs_cfg.pri_ch_freq,
ap_ctx->sap_config.acs_cfg.ch_width);
wlan_hdd_cfg80211_acs_ch_select_evt(adapter);
return QDF_STATUS_SUCCESS;
@ -2649,8 +2657,8 @@ stopbss:
/* reclaim all resources allocated to the BSS */
qdf_status = hdd_softap_stop_bss(adapter);
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
hdd_warn("hdd_softap_stop_bss failed %d",
qdf_status);
hdd_debug("hdd_softap_stop_bss failed %d",
qdf_status);
if (ucfg_ipa_is_enabled()) {
ucfg_ipa_uc_disconnect_ap(hdd_ctx->pdev,
adapter->dev);
@ -3147,8 +3155,8 @@ QDF_STATUS wlan_hdd_get_channel_for_sap_restart(
*/
intf_ch_freq = wlansap_check_cc_intf(sap_context);
policy_mgr_get_chan_by_session_id(psoc, vdev_id, &sap_ch_freq);
hdd_info("sap_vdev %d intf_ch: %d, orig freq: %d",
vdev_id, intf_ch_freq, sap_ch_freq);
hdd_debug("sap_vdev %d intf_ch: %d, orig freq: %d",
vdev_id, intf_ch_freq, sap_ch_freq);
if (QDF_MCC_TO_SCC_SWITCH_FORCE_PREFERRED_WITHOUT_DISCONNECTION !=
mcc_to_scc_switch) {
if (QDF_IS_STATUS_ERROR(
@ -3169,8 +3177,8 @@ sap_restart:
} else {
sap_context->csa_reason = csa_reason;
}
hdd_info("SAP restart orig chan freq: %d, new freq: %d",
hdd_ap_ctx->sap_config.chan_freq, intf_ch_freq);
hdd_debug("SAP restart orig chan freq: %d, new freq: %d",
hdd_ap_ctx->sap_config.chan_freq, intf_ch_freq);
ch_params.ch_width = CH_WIDTH_MAX;
hdd_ap_ctx->bss_stop_reason = BSS_STOP_DUE_TO_MCC_SCC_SWITCH;
@ -3179,7 +3187,7 @@ sap_restart:
&ch_params);
*ch_freq = intf_ch_freq;
hdd_info("SAP channel change with CSA/ECSA");
hdd_debug("SAP channel change with CSA/ECSA");
hdd_sap_restart_chan_switch_cb(psoc, vdev_id, *ch_freq,
ch_params.ch_width, false);
wlansap_context_put(sap_context);
@ -3353,7 +3361,7 @@ QDF_STATUS hdd_init_ap_mode(struct hdd_adapter *adapter, bool reinit)
hdd_enter();
hdd_info("SSR in progress: %d", reinit);
hdd_debug("SSR in progress: %d", reinit);
qdf_atomic_init(&adapter->session.ap.acs_in_progress);
sap_context = hdd_hostapd_init_sap_session(adapter, reinit);
@ -4362,7 +4370,7 @@ static void wlan_hdd_set_sap_hwmode(struct hdd_adapter *adapter)
wlan_hdd_check_11ax_support(beacon, config);
hdd_info("SAP hw_mode: %d", config->SapHw_mode);
hdd_debug("SAP hw_mode: %d", config->SapHw_mode);
}
/**
@ -4727,7 +4735,7 @@ int wlan_hdd_restore_channels(struct hdd_context *hdd_ctx,
if (!cache_chann || !cache_chann->num_channels) {
qdf_mutex_release(&hdd_ctx->cache_channel_lock);
hdd_err("channel list is NULL or num channels are zero");
hdd_nofl_debug("channel list is NULL or num channels are zero");
return -EINVAL;
}
@ -6219,6 +6227,7 @@ static int __wlan_hdd_cfg80211_start_ap(struct wiphy *wiphy,
adapter, qdf_opmode_str(adapter->device_mode),
adapter->device_mode, cds_is_sub_20_mhz_enabled());
hdd_nofl_info("Request to start AP vid %d", adapter->vdev_id);
if (policy_mgr_is_hw_mode_change_in_progress(hdd_ctx->psoc)) {
status = policy_mgr_wait_for_connection_update(
hdd_ctx->psoc);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2012-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
@ -865,8 +865,8 @@ static __iw_softap_setparam(struct net_device *dev,
if (wlan_reg_is_dfs_for_freq(pdev, ap_ctx->operating_chan_freq))
tgt_dfs_process_radar_ind(pdev, &radar);
else
hdd_err("Ignore set radar, op ch_freq(%d) is not dfs",
ap_ctx->operating_chan_freq);
hdd_debug("Ignore set radar, op ch_freq(%d) is not dfs",
ap_ctx->operating_chan_freq);
break;
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2012-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
@ -6461,7 +6461,7 @@ static int hdd_driver_rxfilter_command_handler(uint8_t *command,
ret = hdd_set_rx_filter(adapter, action, 0x01);
break;
default:
hdd_warn("Unsupported RXFILTER type %d", type);
hdd_debug("Unsupported RXFILTER type %d", type);
break;
}

View File

@ -1437,7 +1437,7 @@ void hdd_update_macaddr(struct hdd_context *hdd_ctx,
qdf_mem_copy(hdd_ctx->provisioned_mac_addr[0].bytes,
hw_macaddr.bytes, QDF_MAC_ADDR_SIZE);
hdd_ctx->num_provisioned_addr++;
hdd_info("hdd_ctx->provisioned_mac_addr[0]: "
hdd_debug("hdd_ctx->provisioned_mac_addr[0]: "
QDF_MAC_ADDR_STR,
QDF_MAC_ADDR_ARRAY(hdd_ctx->
provisioned_mac_addr[0].bytes));
@ -1446,7 +1446,7 @@ void hdd_update_macaddr(struct hdd_context *hdd_ctx,
hw_macaddr.bytes,
QDF_MAC_ADDR_SIZE);
hdd_ctx->num_derived_addr++;
hdd_info("hdd_ctx->derived_mac_addr[0]: "
hdd_debug("hdd_ctx->derived_mac_addr[0]: "
QDF_MAC_ADDR_STR,
QDF_MAC_ADDR_ARRAY(hdd_ctx->derived_mac_addr[0].bytes));
}
@ -1469,7 +1469,7 @@ void hdd_update_macaddr(struct hdd_context *hdd_ctx,
/* Set locally administered bit */
hdd_ctx->derived_mac_addr[i].bytes[0] |= 0x02;
hdd_ctx->derived_mac_addr[i].bytes[3] = macaddr_b3;
hdd_info("hdd_ctx->derived_mac_addr[%d]: "
hdd_debug("hdd_ctx->derived_mac_addr[%d]: "
QDF_MAC_ADDR_STR, i,
QDF_MAC_ADDR_ARRAY(hdd_ctx->derived_mac_addr[i].bytes));
hdd_ctx->num_derived_addr++;
@ -2247,7 +2247,7 @@ int hdd_update_tgt_cfg(hdd_handle_t hdd_handle, struct wma_tgt_cfg *cfg)
hdd_update_tgt_vht_cap(hdd_ctx, &cfg->vht_cap);
if (cfg->services.en_11ax) {
hdd_info("11AX: 11ax is enabled - update HDD config");
hdd_debug("11AX: 11ax is enabled - update HDD config");
hdd_update_tgt_he_cap(hdd_ctx, cfg);
hdd_update_wiphy_he_cap(hdd_ctx);
}
@ -2818,7 +2818,7 @@ void hdd_update_hw_sw_info(struct hdd_context *hdd_ctx)
buf = qdf_mem_malloc(WE_MAX_STR_LEN);
if (buf) {
buf_len = hdd_wlan_get_version(hdd_ctx, WE_MAX_STR_LEN, buf);
hdd_info("%s", buf);
hdd_nofl_debug("%s", buf);
qdf_mem_free(buf);
}
}
@ -3321,11 +3321,11 @@ int hdd_wlan_start_modules(struct hdd_context *hdd_ctx, bool reinit)
switch (hdd_ctx->driver_status) {
case DRIVER_MODULES_UNINITIALIZED:
hdd_info("Wlan transitioning (UNINITIALIZED -> CLOSED)");
hdd_nofl_debug("Wlan transitioning (UNINITIALIZED -> CLOSED)");
unint = true;
/* Fall through dont add break here */
case DRIVER_MODULES_CLOSED:
hdd_info("Wlan transitioning (CLOSED -> ENABLED)");
hdd_nofl_debug("Wlan transitioning (CLOSED -> ENABLED)");
hdd_debug_domain_set(QDF_DEBUG_DOMAIN_ACTIVE);
@ -3508,7 +3508,7 @@ int hdd_wlan_start_modules(struct hdd_context *hdd_ctx, bool reinit)
}
hdd_ctx->driver_status = DRIVER_MODULES_ENABLED;
hdd_info("Wlan transitioned (now ENABLED)");
hdd_nofl_debug("Wlan transitioned (now ENABLED)");
hdd_exit();
@ -4009,8 +4009,9 @@ static int __hdd_set_mac_address(struct net_device *dev, void *addr)
if (QDF_IS_STATUS_ERROR(qdf_ret_status))
return -EINVAL;
hdd_info("Changing MAC to " QDF_MAC_ADDR_STR " of the interface %s ",
QDF_MAC_ADDR_ARRAY(mac_addr.bytes), dev->name);
hdd_nofl_debug("Changing MAC to "
QDF_MAC_ADDR_STR " of the interface %s ",
QDF_MAC_ADDR_ARRAY(mac_addr.bytes), dev->name);
hdd_update_dynamic_mac(hdd_ctx, &adapter->mac_addr, &mac_addr);
memcpy(&adapter->mac_addr, psta_mac_addr->sa_data, ETH_ALEN);
@ -4055,8 +4056,8 @@ static uint8_t *wlan_hdd_get_derived_intf_addr(struct hdd_context *hdd_ctx)
if (i < 0 || i >= hdd_ctx->num_derived_addr)
return NULL;
qdf_atomic_set_bit(i, &hdd_ctx->derived_intf_addr_mask);
hdd_info("Assigning MAC from derived list" QDF_MAC_ADDR_STR,
QDF_MAC_ADDR_ARRAY(hdd_ctx->derived_mac_addr[i].bytes));
hdd_nofl_debug("Assigning MAC from derived list" QDF_MAC_ADDR_STR,
QDF_MAC_ADDR_ARRAY(hdd_ctx->derived_mac_addr[i].bytes));
/* Copy the mac in dynamic mac list at first free position */
for (j = 0; j < QDF_MAX_CONCURRENCY_PERSONA; j++) {
@ -4086,8 +4087,8 @@ static uint8_t *wlan_hdd_get_provisioned_intf_addr(struct hdd_context *hdd_ctx)
if (i < 0 || i >= hdd_ctx->num_provisioned_addr)
return NULL;
qdf_atomic_set_bit(i, &hdd_ctx->provisioned_intf_addr_mask);
hdd_info("Assigning MAC from provisioned list" QDF_MAC_ADDR_STR,
QDF_MAC_ADDR_ARRAY(hdd_ctx->provisioned_mac_addr[i].bytes));
hdd_debug("Assigning MAC from provisioned list" QDF_MAC_ADDR_STR,
QDF_MAC_ADDR_ARRAY(hdd_ctx->provisioned_mac_addr[i].bytes));
/* Copy the mac in dynamic mac list at first free position */
for (j = 0; j < QDF_MAX_CONCURRENCY_PERSONA; j++) {
@ -4146,17 +4147,17 @@ void wlan_hdd_release_intf_addr(struct hdd_context *hdd_ctx,
mac_pos_in_mask,
&hdd_ctx->
provisioned_intf_addr_mask);
hdd_info("Releasing MAC from provisioned list");
hdd_info(
QDF_MAC_ADDR_STR,
QDF_MAC_ADDR_ARRAY(releaseAddr));
hdd_debug("Releasing MAC from provisioned list");
hdd_debug(
QDF_MAC_ADDR_STR,
QDF_MAC_ADDR_ARRAY(releaseAddr));
} else {
qdf_atomic_clear_bit(
mac_pos_in_mask, &hdd_ctx->
derived_intf_addr_mask);
hdd_info("Releasing MAC from derived list");
hdd_info(QDF_MAC_ADDR_STR,
QDF_MAC_ADDR_ARRAY(releaseAddr));
hdd_debug("Releasing MAC from derived list");
hdd_debug(QDF_MAC_ADDR_STR,
QDF_MAC_ADDR_ARRAY(releaseAddr));
}
qdf_zero_macaddr(&hdd_ctx->
dynamic_mac_list[i].dynamic_mac);
@ -4209,7 +4210,7 @@ static void __hdd_set_multicast_list(struct net_device *dev)
goto out;
if (hdd_ctx->driver_status == DRIVER_MODULES_CLOSED) {
hdd_err("%s: Driver module is closed", __func__);
hdd_debug("%s: Driver module is closed", __func__);
goto out;
}
@ -4260,8 +4261,8 @@ static void __hdd_set_multicast_list(struct net_device *dev)
errno = hdd_cache_mc_addr_list(mc_list_request);
if (errno) {
hdd_err("Failed to cache MC address list for vdev %u; errno:%d",
adapter->vdev_id, errno);
hdd_debug("Failed to cache MC address list for vdev %u; errno:%d",
adapter->vdev_id, errno);
goto free_req;
}
@ -4590,11 +4591,11 @@ int hdd_vdev_destroy(struct hdd_adapter *adapter)
long rc;
vdev_id = adapter->vdev_id;
hdd_info("destroying vdev %d", vdev_id);
hdd_nofl_debug("destroying vdev %d", vdev_id);
/* vdev created sanity check */
if (!test_bit(SME_SESSION_OPENED, &adapter->event_flags)) {
hdd_err("vdev %u does not exist", vdev_id);
hdd_nofl_debug("vdev %u does not exist", vdev_id);
return -EINVAL;
}
@ -4653,7 +4654,7 @@ release_vdev:
return errno;
}
hdd_info("vdev %d destroyed successfully", vdev_id);
hdd_nofl_debug("vdev %d destroyed successfully", vdev_id);
return 0;
}
@ -4723,7 +4724,7 @@ int hdd_vdev_create(struct hdd_adapter *adapter)
struct vdev_osif_priv *osif_priv;
struct wlan_vdev_create_params vdev_params = {0};
hdd_info("creating new vdev");
hdd_nofl_debug("creating new vdev");
/* do vdev create via objmgr */
hdd_ctx = WLAN_HDD_GET_CTX(adapter);
@ -4802,7 +4803,7 @@ int hdd_vdev_create(struct hdd_adapter *adapter)
hdd_store_nss_chains_cfg_in_vdev(adapter);
hdd_info("vdev %d created successfully", adapter->vdev_id);
hdd_nofl_debug("vdev %d created successfully", adapter->vdev_id);
return 0;
@ -5142,7 +5143,7 @@ static int hdd_configure_chain_mask(struct hdd_adapter *adapter)
return 0;
error:
hdd_err("WMI PDEV set param failed");
hdd_debug("WMI PDEV set param failed");
return -EINVAL;
}
@ -5799,8 +5800,8 @@ struct hdd_adapter *hdd_open_adapter(struct hdd_context *hdd_ctx, uint8_t sessio
hdd_err("Interface %s wow debug_fs init failed",
netdev_name(adapter->dev));
hdd_info("%s interface created. iftype: %d", netdev_name(adapter->dev),
session_type);
hdd_debug("%s interface created. iftype: %d", netdev_name(adapter->dev),
session_type);
if (adapter->device_mode == QDF_STA_MODE)
wlan_hdd_debugfs_csr_init(adapter);
@ -6042,7 +6043,7 @@ QDF_STATUS hdd_stop_adapter(struct hdd_context *hdd_ctx,
status = wlan_hdd_flush_pmksa_cache(adapter);
if (QDF_IS_STATUS_ERROR(status))
hdd_err("Cannot flush PMKIDCache");
hdd_debug("Cannot flush PMKIDCache");
hdd_deregister_hl_netdev_fc_timer(adapter);
@ -10276,7 +10277,7 @@ int hdd_trigger_psoc_idle_restart(struct hdd_context *hdd_ctx)
if (hdd_ctx->driver_status == DRIVER_MODULES_ENABLED) {
hdd_psoc_idle_timer_stop(hdd_ctx);
hdd_info("Driver modules already Enabled");
hdd_nofl_debug("Driver modules already Enabled");
return 0;
}
@ -12398,7 +12399,7 @@ int hdd_wlan_stop_modules(struct hdd_context *hdd_ctx, bool ftm_mode)
hdd_debug("Modules already closed");
goto done;
case DRIVER_MODULES_ENABLED:
hdd_info("Wlan transitioning (CLOSED <- ENABLED)");
hdd_debug("Wlan transitioning (CLOSED <- ENABLED)");
if (hdd_get_conparam() == QDF_GLOBAL_FTM_MODE ||
hdd_get_conparam() == QDF_GLOBAL_EPPING_MODE)
@ -12530,7 +12531,7 @@ int hdd_wlan_stop_modules(struct hdd_context *hdd_ctx, bool ftm_mode)
/* Once the firmware sequence is completed reset this flag */
hdd_ctx->imps_enabled = false;
hdd_ctx->driver_status = DRIVER_MODULES_CLOSED;
hdd_info("Wlan transitioned (now CLOSED)");
hdd_debug("Wlan transitioned (now CLOSED)");
done:
cds_set_module_stop_in_progress(false);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2017-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
@ -257,7 +257,7 @@ struct wlan_objmgr_vdev *__hdd_objmgr_get_vdev(struct hdd_adapter *adapter,
qdf_spin_unlock_bh(&adapter->vdev_lock);
if (!vdev)
hdd_err("VDEV is NULL (via %s)", func);
hdd_debug("VDEV is NULL (via %s)", func);
return vdev;
}

View File

@ -1107,7 +1107,7 @@ void hdd_enable_mc_addr_filtering(struct hdd_adapter *adapter,
adapter->vdev_id,
trigger);
if (QDF_IS_STATUS_ERROR(status))
hdd_err("failed to enable mc list; status:%d", status);
hdd_debug("failed to enable mc list; status:%d", status);
out:
hdd_exit();
@ -1164,7 +1164,7 @@ void hdd_disable_and_flush_mc_addr_list(struct hdd_adapter *adapter,
adapter->vdev_id,
trigger);
if (QDF_IS_STATUS_ERROR(status))
hdd_err("failed to disable mc list; status:%d", status);
hdd_debug("failed to disable mc list; status:%d", status);
flush_mc_list:
status = ucfg_pmo_flush_mc_addr_list(hdd_ctx->psoc,
@ -2489,7 +2489,7 @@ static int __wlan_hdd_cfg80211_get_txpower(struct wiphy *wiphy,
case QDF_SAP_MODE:
case QDF_P2P_GO_MODE:
if (!test_bit(SOFTAP_BSS_STARTED, &adapter->event_flags)) {
hdd_err("SAP is not started yet");
hdd_debug("SAP is not started yet");
return 0;
}
break;

View File

@ -335,7 +335,7 @@ int hdd_softap_inspect_dhcp_packet(struct hdd_adapter *adapter,
macaddr->bytes);
if (!hdd_sta_info) {
hdd_err("Station not found");
hdd_debug("Station not found");
return -EINVAL;
}
@ -990,7 +990,7 @@ QDF_STATUS hdd_softap_deregister_sta(struct hdd_adapter *adapter,
OL_TXRX_PDEV_ID,
*mac_addr);
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
hdd_err("cdp_clear_peer failed for sta: " QDF_MAC_ADDR_STR
hdd_debug("cdp_clear_peer failed for sta: " QDF_MAC_ADDR_STR
", Status=%d [0x%08X]",
QDF_MAC_ADDR_ARRAY(mac_addr->bytes), qdf_status,
qdf_status);
@ -1002,7 +1002,7 @@ QDF_STATUS hdd_softap_deregister_sta(struct hdd_adapter *adapter,
adapter->vdev_id,
WLAN_IPA_CLIENT_DISCONNECT,
mac_addr->bytes) != QDF_STATUS_SUCCESS)
hdd_err("WLAN_CLIENT_DISCONNECT event failed");
hdd_debug("WLAN_CLIENT_DISCONNECT event failed");
}
hdd_sta_info_detach(&adapter->sta_info_list, sta_info);
@ -1034,8 +1034,8 @@ QDF_STATUS hdd_softap_register_sta(struct hdd_adapter *adapter,
sta_info = hdd_get_sta_info_by_mac(&adapter->sta_info_list,
sta_mac->bytes);
if (sta_info) {
hdd_info("clean up old entry for STA MAC " QDF_MAC_ADDR_STR,
QDF_MAC_ADDR_ARRAY(sta_mac->bytes));
hdd_debug("clean up old entry for STA MAC " QDF_MAC_ADDR_STR,
QDF_MAC_ADDR_ARRAY(sta_mac->bytes));
hdd_softap_deregister_sta(adapter, sta_info);
}
@ -1055,7 +1055,7 @@ QDF_STATUS hdd_softap_register_sta(struct hdd_adapter *adapter,
sta_mac->bytes);
if (!sta_info) {
hdd_err("STA not found");
hdd_debug("STA not found");
return QDF_STATUS_E_INVAL;
}
@ -1085,8 +1085,8 @@ QDF_STATUS hdd_softap_register_sta(struct hdd_adapter *adapter,
qdf_status = cdp_peer_register(soc, OL_TXRX_PDEV_ID, &txrx_desc);
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
hdd_err("cdp_peer_register() failed to register. Status = %d [0x%08X]",
qdf_status, qdf_status);
hdd_debug("cdp_peer_register() failed to register. Status = %d [0x%08X]",
qdf_status, qdf_status);
return qdf_status;
}
@ -1099,8 +1099,8 @@ QDF_STATUS hdd_softap_register_sta(struct hdd_adapter *adapter,
sta_info->is_qos_enabled = wmm_enabled;
if (!auth_required) {
hdd_info("open/shared auth STA MAC= " QDF_MAC_ADDR_STR
". Changing TL state to AUTHENTICATED at Join time",
hdd_debug("open/shared auth STA MAC= " QDF_MAC_ADDR_STR
". Changing TL state to AUTHENTICATED at Join time",
QDF_MAC_ADDR_ARRAY(sta_info->sta_mac.bytes));
/* Connections that do not need Upper layer auth,
@ -1118,8 +1118,8 @@ QDF_STATUS hdd_softap_register_sta(struct hdd_adapter *adapter,
sta_mac);
} else {
hdd_info("ULA auth STA MAC = " QDF_MAC_ADDR_STR
". Changing TL state to CONNECTED at Join time",
hdd_debug("ULA auth STA MAC = " QDF_MAC_ADDR_STR
". Changing TL state to CONNECTED at Join time",
QDF_MAC_ADDR_ARRAY(sta_info->sta_mac.bytes));
qdf_status = hdd_change_peer_state(adapter,
@ -1195,8 +1195,9 @@ QDF_STATUS hdd_softap_stop_bss(struct hdd_adapter *adapter)
sta_info);
if (QDF_IS_STATUS_ERROR(status) && sta_info)
hdd_err("Deregistering STA " QDF_MAC_ADDR_STR " failed",
QDF_MAC_ADDR_ARRAY(sta_info->sta_mac.bytes));
hdd_debug("Deregistering STA " QDF_MAC_ADDR_STR
" failed",
QDF_MAC_ADDR_ARRAY(sta_info->sta_mac.bytes));
}
if (adapter->device_mode == QDF_SAP_MODE &&
@ -1237,8 +1238,8 @@ QDF_STATUS hdd_softap_change_sta_state(struct hdd_adapter *adapter,
sta_mac->bytes);
if (!sta_info) {
hdd_err("Failed to find right station MAC: " QDF_MAC_ADDR_STR,
QDF_MAC_ADDR_ARRAY(sta_mac->bytes));
hdd_debug("Failed to find right station MAC: " QDF_MAC_ADDR_STR,
QDF_MAC_ADDR_ARRAY(sta_mac->bytes));
return QDF_STATUS_E_INVAL;
}
@ -1250,8 +1251,8 @@ QDF_STATUS hdd_softap_change_sta_state(struct hdd_adapter *adapter,
qdf_status =
hdd_change_peer_state(adapter, mac_addr.bytes,
state, false);
hdd_info("Station " QDF_MAC_ADDR_STR " changed to state %d",
QDF_MAC_ADDR_ARRAY(mac_addr.bytes), state);
hdd_debug("Station " QDF_MAC_ADDR_STR " changed to state %d",
QDF_MAC_ADDR_ARRAY(mac_addr.bytes), state);
if (QDF_STATUS_SUCCESS == qdf_status) {
sta_info->peer_state = OL_TXRX_PEER_STATE_AUTH;

View File

@ -568,8 +568,8 @@ bool hdd_get_interface_info(struct hdd_adapter *adapter,
}
if (eConnectionState_Connecting ==
sta_ctx->conn_info.conn_state) {
hdd_err("Session ID %d, Connection is in progress",
adapter->vdev_id);
hdd_debug("Session ID %d, Connection is in progress",
adapter->vdev_id);
info->state = WIFI_ASSOCIATING;
}
if ((eConnectionState_Associated ==
@ -1484,8 +1484,8 @@ __wlan_hdd_cfg80211_ll_stats_get(struct wiphy *wiphy,
return -EINVAL;
if (!adapter->is_link_layer_stats_set) {
hdd_warn("is_link_layer_stats_set: %d",
adapter->is_link_layer_stats_set);
hdd_nofl_debug("is_link_layer_stats_set: %d",
adapter->is_link_layer_stats_set);
return -EINVAL;
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2015-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
@ -90,7 +90,7 @@ static int __wlan_hdd_cfg80211_set_gateway_params(struct wiphy *wiphy,
ucfg_mlme_is_subnet_detection_enabled(hdd_ctx->psoc,
&subnet_detection_enabled);
if (!subnet_detection_enabled) {
hdd_info("LFR Subnet Detection disabled in INI");
hdd_debug("LFR Subnet Detection disabled in INI");
return -ENOTSUPP;
}
@ -98,12 +98,12 @@ static int __wlan_hdd_cfg80211_set_gateway_params(struct wiphy *wiphy,
* and only in the connected state.
*/
if (QDF_STA_MODE != adapter->device_mode) {
hdd_err("Received GW param update for non-STA mode adapter");
hdd_debug("Received GW param update for non-STA mode adapter");
return -ENOTSUPP;
}
if (!hdd_conn_is_connected(WLAN_HDD_GET_STATION_CTX_PTR(adapter))) {
hdd_err("Received GW param update in disconnected state!");
hdd_debug("Received GW param update in disconnected state!");
return -ENOTSUPP;
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-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
@ -2368,7 +2368,7 @@ void wlan_hdd_tsf_init(struct hdd_context *hdd_ctx)
status = hdd_tsf_set_gpio(hdd_ctx);
if (QDF_STATUS_SUCCESS != status) {
hdd_err("set tsf GPIO failed, status: %d", status);
hdd_debug("set tsf GPIO failed, status: %d", status);
goto fail;
}

View File

@ -512,7 +512,7 @@ void wlan_hdd_classify_pkt(struct sk_buff *skb)
*/
static void hdd_clear_tx_rx_connectivity_stats(struct hdd_adapter *adapter)
{
hdd_info("Clear txrx connectivity stats");
hdd_debug("Clear txrx connectivity stats");
qdf_mem_zero(&adapter->hdd_stats.hdd_arp_stats,
sizeof(adapter->hdd_stats.hdd_arp_stats));
qdf_mem_zero(&adapter->hdd_stats.hdd_dns_stats,
@ -1520,14 +1520,14 @@ static void hdd_resolve_rx_ol_mode(struct hdd_context *hdd_ctx)
cdp_cfg_get(soc, cfg_dp_gro_enable))) {
cdp_cfg_get(soc, cfg_dp_lro_enable) &&
cdp_cfg_get(soc, cfg_dp_gro_enable) ?
hdd_err("Can't enable both LRO and GRO, disabling Rx offload") :
hdd_info("LRO and GRO both are disabled");
hdd_debug("Can't enable both LRO and GRO, disabling Rx offload") :
hdd_debug("LRO and GRO both are disabled");
hdd_ctx->ol_enable = 0;
} else if (cdp_cfg_get(soc, cfg_dp_lro_enable)) {
hdd_debug("Rx offload LRO is enabled");
hdd_ctx->ol_enable = CFG_LRO_ENABLED;
} else {
hdd_info("Rx offload: GRO is enabled");
hdd_debug("Rx offload: GRO is enabled");
hdd_ctx->ol_enable = CFG_GRO_ENABLED;
}
}
@ -1790,9 +1790,9 @@ static int hdd_rx_ol_send_config(struct hdd_context *hdd_ctx)
if (wma_lro_init(&lro_config))
return -EAGAIN;
else
hdd_dp_info("LRO Config: lro_enable: 0x%x tcp_flag 0x%x tcp_flag_mask 0x%x",
lro_config.lro_enable, lro_config.tcp_flag,
lro_config.tcp_flag_mask);
hdd_debug("LRO Config: lro_enable: 0x%x tcp_flag 0x%x tcp_flag_mask 0x%x",
lro_config.lro_enable, lro_config.tcp_flag,
lro_config.tcp_flag_mask);
return 0;
}
@ -2816,11 +2816,11 @@ void hdd_send_rps_ind(struct hdd_adapter *adapter)
hdd_ctxt = WLAN_HDD_GET_CTX(adapter);
rps_data.num_queues = NUM_TX_QUEUES;
hdd_info("cpu_map_list '%s'", hdd_ctxt->config->cpu_map_list);
hdd_debug("cpu_map_list '%s'", hdd_ctxt->config->cpu_map_list);
/* in case no cpu map list is provided, simply return */
if (!strlen(hdd_ctxt->config->cpu_map_list)) {
hdd_err("no cpu map list found");
hdd_debug("no cpu map list found");
goto err;
}
@ -2838,8 +2838,8 @@ void hdd_send_rps_ind(struct hdd_adapter *adapter)
cpu_map_list_len : rps_data.num_queues;
for (i = 0; i < rps_data.num_queues; i++) {
hdd_info("cpu_map_list[%d] = 0x%x",
i, rps_data.cpu_map_list[i]);
hdd_debug("cpu_map_list[%d] = 0x%x",
i, rps_data.cpu_map_list[i]);
}
strlcpy(rps_data.ifname, adapter->dev->name,
@ -2853,7 +2853,7 @@ void hdd_send_rps_ind(struct hdd_adapter *adapter)
return;
err:
hdd_err("Wrong RPS configuration. enabling rx_thread");
hdd_debug("Wrong RPS configuration. enabling rx_thread");
cds_cfg->rps_enabled = false;
}

View File

@ -3046,7 +3046,7 @@ static int hdd_check_wext_control(enum hdd_wext_control wext_control,
hdd_err_rl("Rejecting disabled ioctl %x", info->cmd);
return -ENOTSUPP;
case hdd_wext_deprecated:
hdd_debug("Using deprecated ioctl %x", info->cmd);
hdd_nofl_debug("Using deprecated ioctl %x", info->cmd);
return 0;
case hdd_wext_enabled:
return 0;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2017-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
@ -109,7 +109,7 @@ void hdd_notify_teardown_tdls_links(struct wlan_objmgr_psoc *psoc)
vdev = ucfg_get_tdls_vdev(psoc, WLAN_OSIF_ID);
if (!vdev) {
osif_err("Unable to get the vdev");
osif_debug("Unable to get the vdev");
return;
}
osif_priv = wlan_vdev_get_ospriv(vdev);