diff options
| author | Srinivas Girigowda <sgirigow@codeaurora.org> | 2017-03-09 15:10:03 -0800 |
|---|---|---|
| committer | Sandeep Puligilla <spuligil@codeaurora.org> | 2017-03-10 19:32:20 -0800 |
| commit | 2c906a4b79e0e409f89973eea1bc37cf2e99eacb (patch) | |
| tree | eda99840bb10a1307f826a9d8319759fb73bb4c5 | |
| parent | 5dc777465ed6f4c607a346c303bec85b874b58bb (diff) | |
qcacld-3.0: HDD: Reduce the log spam in kmsg
Move the logs to appropriate log levels to reduce
the log spam in kmsg.
Change-Id: I8d026e68c3b0526a5c9047027f7bb57433b3ae37
CRs-Fixed: 2014745
| -rw-r--r-- | core/hdd/src/wlan_hdd_cfg80211.c | 8 | ||||
| -rw-r--r-- | core/hdd/src/wlan_hdd_hostapd.c | 2 | ||||
| -rw-r--r-- | core/hdd/src/wlan_hdd_ipa.c | 4 | ||||
| -rw-r--r-- | core/hdd/src/wlan_hdd_main.c | 7 | ||||
| -rw-r--r-- | core/hdd/src/wlan_hdd_oemdata.c | 28 | ||||
| -rw-r--r-- | core/hdd/src/wlan_hdd_power.c | 2 | ||||
| -rw-r--r-- | core/hdd/src/wlan_hdd_tdls.c | 30 |
7 files changed, 38 insertions, 43 deletions
diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index bd441baf03b6..5f965c9b388d 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -3652,7 +3652,7 @@ __wlan_hdd_cfg80211_get_wifi_info(struct wiphy *wiphy, } if (tb_vendor[QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION]) { - hdd_err("Rcvd req for Driver version"); + hdd_debug("Rcvd req for Driver version"); strlcpy(driver_version, QWLAN_VERSIONSTR, sizeof(driver_version)); skb_len += strlen(driver_version) + 1; @@ -4218,8 +4218,6 @@ __wlan_hdd_cfg80211_wifi_configuration_set(struct wiphy *wiphy, vendor_ie_present = true; hdd_debug("Access policy vendor ie present.attr_len %d", attr_len); - qdf_trace_hex_dump(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_INFO, - &vendor_ie[0], attr_len); } if (tb[QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY]) { @@ -6686,7 +6684,7 @@ static int hdd_set_reset_bpf_offload(hdd_context_t *hdd_ctx, bpf_set_offload->session_id = adapter->sessionId; hdd_debug("BPF set instructions"); - QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_INFO, + QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_DEBUG, bpf_set_offload->program, prog_len); /* Parse and fetch filter Id */ @@ -11500,7 +11498,7 @@ struct cfg80211_bss *wlan_hdd_cfg80211_inform_bss_frame(hdd_adapter_t *pAdapter, /* Supplicant takes the signal strength in terms of mBm(100*dBm) */ rssi = QDF_MIN(rssi, 0) * 100; - hdd_log(LOG1, "BSSID: " MAC_ADDRESS_STR " Channel:%d RSSI:%d TSF %u", + hdd_debug("BSSID: " MAC_ADDRESS_STR " Channel:%d RSSI:%d TSF %u", MAC_ADDR_ARRAY(mgmt->bssid), chan->center_freq, (int)(rssi / 100), bss_desc->timeStamp[0]); diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index ecc03837ee14..873f2e7aae69 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -1272,7 +1272,7 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent, pHostapdState->bssState = BSS_START; /* Set default key index */ - QDF_TRACE(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_INFO, + QDF_TRACE(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_DEBUG, "%s: default key index %hu", __func__, pHddApCtx->wep_def_key_idx); diff --git a/core/hdd/src/wlan_hdd_ipa.c b/core/hdd/src/wlan_hdd_ipa.c index a2491b36f02f..03624e17f22c 100644 --- a/core/hdd/src/wlan_hdd_ipa.c +++ b/core/hdd/src/wlan_hdd_ipa.c @@ -732,7 +732,7 @@ static int hdd_ipa_uc_register_uc_ready(struct hdd_ipa_priv *hdd_ipa) return -EPERM; } if (true == uc_ready_param.is_uC_ready) { - HDD_IPA_LOG(QDF_TRACE_LEVEL_ERROR, "UC Ready"); + HDD_IPA_LOG(QDF_TRACE_LEVEL_DEBUG, "UC Ready"); hdd_ipa->uc_loaded = true; } @@ -4833,7 +4833,7 @@ static int wlan_ipa_add_hdr(struct ipa_ioc_add_hdr *ipa_hdr) ipa_hdr->hdr[0].is_eth2_ofst_valid, ipa_hdr->hdr[0].eth2_ofst); - HDD_IPA_DBG_DUMP(QDF_TRACE_LEVEL_ERROR, "hdr:", + HDD_IPA_DBG_DUMP(QDF_TRACE_LEVEL_DEBUG, "hdr:", ipa_hdr->hdr[0].hdr, HDD_IPA_UC_WLAN_TX_HDR_LEN); ret = ipa_add_hdr(ipa_hdr); diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 092e22bc65ca..ce37736fad9d 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -1935,6 +1935,7 @@ static int __hdd_open(struct net_device *dev) } set_bit(DEVICE_IFACE_OPENED, &adapter->event_flags); + hdd_info("%s interface up", dev->name); if (hdd_conn_is_connected(WLAN_HDD_GET_STATION_CTX_PTR(adapter))) { hdd_info("Enabling Tx Queues"); @@ -3230,7 +3231,7 @@ hdd_adapter_t *hdd_open_adapter(hdd_context_t *hdd_ctx, uint8_t session_type, QDF_STATUS status = QDF_STATUS_E_FAILURE; hdd_cfg80211_state_t *cfgState; - hdd_debug("iface(%s) type(%d)", iface_name, session_type); + hdd_info("%s interface created. iftype: %d", iface_name, session_type); if (hdd_ctx->current_intf_count >= hdd_ctx->max_intf_count) { /* @@ -8694,7 +8695,7 @@ int hdd_wlan_startup(struct device *dev) hdd_driver_memdump_init(); if (hdd_enable_egap(hdd_ctx)) - hdd_warn("enhance green ap is not enabled"); + hdd_debug("enhance green ap is not enabled"); if (hdd_ctx->config->fIsImpsEnabled) hdd_set_idle_ps_config(hdd_ctx, true); @@ -9178,7 +9179,7 @@ void wlan_hdd_send_svc_nlink_msg(int radio, int type, void *data, int len) radio_info->length = (unsigned short) sizeof(radio_info->radio); radio_info->radio = radio; tlv_len = sizeof(*radio_info); - QDF_TRACE(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_INFO, + QDF_TRACE(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_DEBUG, "Added radio index tlv - radio index %d", radio_info->radio); } diff --git a/core/hdd/src/wlan_hdd_oemdata.c b/core/hdd/src/wlan_hdd_oemdata.c index 01799882c9a8..a0d5d0680ef1 100644 --- a/core/hdd/src/wlan_hdd_oemdata.c +++ b/core/hdd/src/wlan_hdd_oemdata.c @@ -248,7 +248,7 @@ static void send_oem_reg_rsp_nlink_msg(void) *deviceMode = pAdapter->device_mode; *vdevId = pAdapter->sessionId; (*numInterfaces)++; - hdd_notice("numInterfaces: %d, deviceMode: %d, vdevId: %d", + hdd_debug("numInterfaces: %d, deviceMode: %d, vdevId: %d", *numInterfaces, *deviceMode, *vdevId); } @@ -262,7 +262,7 @@ static void send_oem_reg_rsp_nlink_msg(void) skb_put(skb, NLMSG_SPACE((sizeof(tAniMsgHdr) + aniHdr->length))); - hdd_notice("sending App Reg Response length (%d) to process pid (%d)", + hdd_debug("sending App Reg Response length: %d to pid: %d", aniHdr->length, p_hdd_ctx->oem_pid); (void)nl_srv_ucast_oem(skb, p_hdd_ctx->oem_pid, MSG_DONTWAIT); @@ -308,7 +308,7 @@ static void send_oem_err_rsp_nlink_msg(int32_t app_pid, uint8_t error_code) skb_put(skb, NLMSG_SPACE(sizeof(tAniMsgHdr) + aniHdr->length)); - hdd_notice("sending oem error response to process pid (%d)", app_pid); + hdd_debug("sending oem error response to pid: %d", app_pid); (void)nl_srv_ucast_oem(skb, app_pid, MSG_DONTWAIT); @@ -366,7 +366,7 @@ void hdd_send_oem_data_rsp_msg(struct oem_data_rsp *oem_data_rsp) skb_put(skb, NLMSG_SPACE((sizeof(tAniMsgHdr) + ani_hdr->length))); - hdd_notice("sending Oem Data Response of len (%d) to process pid (%d)", + hdd_debug("sending Oem Data Response of len : %d to pid: %d", oem_data_rsp->rsp_len, p_hdd_ctx->oem_pid); (void)nl_srv_ucast_oem(skb, p_hdd_ctx->oem_pid, MSG_DONTWAIT); @@ -412,8 +412,6 @@ static QDF_STATUS oem_process_data_req_msg(int oem_data_len, char *oem_data) oem_data_req.data_len = oem_data_len; qdf_mem_copy(oem_data_req.data, oem_data, oem_data_len); - hdd_notice("calling sme_oem_data_req"); - status = sme_oem_data_req(p_hdd_ctx->hHal, &oem_data_req); qdf_mem_free(oem_data_req.data); @@ -548,7 +546,7 @@ static int oem_process_channel_info_req_msg(int numOfChannels, char *chanList) /* channel info is not returned, fill in zeros in channel * info struct */ - hdd_notice("sme_get_reg_info failed for chan (%d), return info 0", + hdd_debug("sme_get_reg_info failed for chan (%d), return info 0", chanId); hddChanInfo.chan_id = chanId; hddChanInfo.reserved0 = 0; @@ -565,7 +563,7 @@ static int oem_process_channel_info_req_msg(int numOfChannels, char *chanList) skb_put(skb, NLMSG_SPACE((sizeof(tAniMsgHdr) + aniHdr->length))); - hdd_notice("sending channel info resp for num channels (%d) to pid (%d)", + hdd_debug("sending channel info resp for num channels (%d) to pid (%d)", numOfChannels, p_hdd_ctx->oem_pid); (void)nl_srv_ucast_oem(skb, p_hdd_ctx->oem_pid, MSG_DONTWAIT); @@ -627,7 +625,7 @@ static int oem_process_set_cap_req_msg(int oem_cap_len, skb_put(skb, NLMSG_SPACE(sizeof(tAniMsgHdr) + ani_hdr->length)); - hdd_info("sending oem response to process pid %d", app_pid); + hdd_debug("sending oem response to pid %d", app_pid); (void)nl_srv_ucast_oem(skb, app_pid, MSG_DONTWAIT); @@ -826,20 +824,20 @@ static int oem_app_reg_req_handler(struct hdd_context_s *hdd_ctx, char *sign_str = NULL; /* Registration request is only allowed for Qualcomm Application */ - hdd_info("Received App Reg Req from App process pid(%d), len(%d)", - pid, msg_hdr->length); + hdd_debug("Received App Req Req from App pid: %d len: %d", + pid, msg_hdr->length); sign_str = (char *)((char *)msg_hdr + sizeof(tAniMsgHdr)); if ((OEM_APP_SIGNATURE_LEN == msg_hdr->length) && (0 == strncmp(sign_str, OEM_APP_SIGNATURE_STR, OEM_APP_SIGNATURE_LEN))) { - hdd_info("Valid App Reg Req from oem app process pid(%d)", pid); + hdd_debug("Valid App Req Req from oem app pid: %d", pid); hdd_ctx->oem_app_registered = true; hdd_ctx->oem_pid = pid; send_oem_reg_rsp_nlink_msg(); } else { - hdd_err("Invalid signature in App Reg Req from pid(%d)", pid); + hdd_err("Invalid signature in App Reg Req from pid: %d", pid); send_oem_err_rsp_nlink_msg(pid, OEM_ERR_INVALID_SIGNATURE); return -EPERM; } @@ -858,7 +856,7 @@ static int oem_app_reg_req_handler(struct hdd_context_s *hdd_ctx, static int oem_data_req_handler(struct hdd_context_s *hdd_ctx, tAniMsgHdr *msg_hdr, int pid) { - hdd_info("Received Oem Data Request length(%d) from pid: %d", + hdd_debug("Received Oem Data Request length: %d from pid: %d", msg_hdr->length, pid); if ((!hdd_ctx->oem_app_registered) || @@ -895,7 +893,7 @@ static int oem_data_req_handler(struct hdd_context_s *hdd_ctx, static int oem_chan_info_req_handler(struct hdd_context_s *hdd_ctx, tAniMsgHdr *msg_hdr, int pid) { - hdd_info("Received channel info request, num channel(%d) from pid: %d", + hdd_debug("Received channel info request, num channel(%d) from pid: %d", msg_hdr->length, pid); if ((!hdd_ctx->oem_app_registered) || diff --git a/core/hdd/src/wlan_hdd_power.c b/core/hdd/src/wlan_hdd_power.c index fdf4240ac041..8b48f42dcba0 100644 --- a/core/hdd/src/wlan_hdd_power.c +++ b/core/hdd/src/wlan_hdd_power.c @@ -2172,7 +2172,7 @@ static void hdd_stop_dhcp_ind(hdd_adapter_t *adapter) { hdd_context_t *hdd_ctx = WLAN_HDD_GET_CTX(adapter); - hdd_warn("DHCP stop indicated through power save"); + hdd_debug("DHCP stop indicated through power save"); sme_dhcp_stop_ind(hdd_ctx->hHal, adapter->device_mode, adapter->macAddressCurrent.bytes, adapter->sessionId); diff --git a/core/hdd/src/wlan_hdd_tdls.c b/core/hdd/src/wlan_hdd_tdls.c index 1f4ccc224b31..208a2c8bdfbd 100644 --- a/core/hdd/src/wlan_hdd_tdls.c +++ b/core/hdd/src/wlan_hdd_tdls.c @@ -227,7 +227,7 @@ void wlan_hdd_tdls_disable_offchan_and_teardown_links(hdd_context_t *hddctx) adapter = hdd_get_adapter(hddctx, QDF_STA_MODE); if (adapter == NULL) { - hdd_err("Station Adapter Not Found"); + hdd_debug("Station Adapter Not Found"); return; } @@ -512,7 +512,7 @@ static void dump_tdls_state_param_setting(tdlsInfo_t *info) if (!info) return; - hdd_notice("Setting tdls state and param in fw: vdev_id: %d, tdls_state: %d, notification_interval_ms: %d, tx_discovery_threshold: %d, tx_teardown_threshold: %d, rssi_teardown_threshold: %d, rssi_delta: %d, tdls_options: 0x%x, peer_traffic_ind_window: %d, peer_traffic_response_timeout: %d, puapsd_mask: 0x%x, puapsd_inactivity_time: %d, puapsd_rx_frame_threshold: %d, teardown_notification_ms: %d, tdls_peer_kickout_threshold: %d", + hdd_debug("Setting tdls state and param in fw: vdev_id: %d, tdls_state: %d, notification_interval_ms: %d, tx_discovery_threshold: %d, tx_teardown_threshold: %d, rssi_teardown_threshold: %d, rssi_delta: %d, tdls_options: 0x%x, peer_traffic_ind_window: %d, peer_traffic_response_timeout: %d, puapsd_mask: 0x%x, puapsd_inactivity_time: %d, puapsd_rx_frame_threshold: %d, teardown_notification_ms: %d, tdls_peer_kickout_threshold: %d", info->vdev_id, info->tdls_state, info->notification_interval_ms, @@ -1658,7 +1658,7 @@ static void wlan_hdd_tdls_set_mode(hdd_context_t *pHddCtx, ENTER(); - hdd_notice("mode %d", (int)tdls_mode); + hdd_debug("mode %d", (int)tdls_mode); if (0 != (wlan_hdd_validate_context(pHddCtx))) return; @@ -1962,7 +1962,7 @@ void wlan_hdd_update_tdls_info(hdd_adapter_t *adapter, bool tdls_prohibited, /* If any concurrency detected, teardown all TDLS links and disable * the tdls support */ - hdd_warn("Concurrency check in TDLS! set state cnt %d tdls_prohibited %d", + hdd_debug("Concurrency check in TDLS! set state cnt %d tdls_prohibited %d", hdd_ctx->set_state_info.set_state_cnt, tdls_prohibited); if (hdd_ctx->set_state_info.set_state_cnt == 1 && @@ -2285,8 +2285,7 @@ hddTdlsPeer_t *wlan_hdd_tdls_find_peer(hdd_adapter_t *pAdapter, list_for_each(pos, head) { curr_peer = list_entry(pos, hddTdlsPeer_t, node); if (!memcmp(mac, curr_peer->peerMac, 6)) { - QDF_TRACE(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_INFO, - "findTdlsPeer: found staId %d", + hdd_debug("findTdlsPeer: found staId %d", curr_peer->staId); return curr_peer; } @@ -2533,7 +2532,7 @@ void wlan_hdd_tdls_connection_callback(hdd_adapter_t *pAdapter) tx_period_t = pHddTdlsCtx->threshold_config.tx_period_t; - hdd_notice("update %d", pHddTdlsCtx->threshold_config.tx_period_t); + hdd_debug("update %d", pHddTdlsCtx->threshold_config.tx_period_t); if (eTDLS_SUPPORT_ENABLED == pHddCtx->tdls_mode || eTDLS_SUPPORT_EXTERNAL_CONTROL == pHddCtx->tdls_mode) { @@ -2879,7 +2878,7 @@ int wlan_hdd_tdls_scan_callback(hdd_adapter_t *pAdapter, struct wiphy *wiphy, delay = (unsigned long)(TDLS_DELAY_SCAN_PER_CONNECTION * connectedTdlsPeers); - hdd_notice("tdls disabled, but still connected_peers %d attempt %d. schedule scan %lu msec", + hdd_debug("tdls disabled, but still connected_peers %d attempt %d. schedule scan %lu msec", connectedTdlsPeers, pHddCtx->tdls_scan_ctxt.attempt, delay); @@ -2891,7 +2890,7 @@ int wlan_hdd_tdls_scan_callback(hdd_adapter_t *pAdapter, struct wiphy *wiphy, return 0; } /* no connected peer or max retry reached, scan continue */ - hdd_notice("tdls disabled. connected_peers %d attempt %d. scan allowed", + hdd_debug("tdls disabled. connected_peers %d attempt %d. scan allowed", connectedTdlsPeers, pHddCtx->tdls_scan_ctxt.attempt); return 1; @@ -2923,7 +2922,7 @@ int wlan_hdd_tdls_scan_callback(hdd_adapter_t *pAdapter, struct wiphy *wiphy, * moves away from the tdls channel. */ if (1 == pHddCtx->config->enable_tdls_scan) { - hdd_notice("TDLSScan enabled, keep tdls link and allow scan, connectedTdlsPeers: %d", + hdd_debug("TDLSScan enabled, keep tdls link and allow scan, connectedTdlsPeers: %d", connectedTdlsPeers); return 1; } @@ -2956,13 +2955,13 @@ int wlan_hdd_tdls_scan_callback(hdd_adapter_t *pAdapter, struct wiphy *wiphy, /* All connected peers bufStas and we can be sleepSta * so allow scan */ - hdd_notice("All peers (num %d) bufSTAs, we can be sleep sta, so allow scan, tdls mode changed to %d", + hdd_debug("All peers (num %d) bufSTAs, we can be sleep sta, so allow scan, tdls mode changed to %d", connectedTdlsPeers, pHddCtx->tdls_mode); return 1; } else { for (i = 0; i < num; i++) { - hdd_notice("indicate TDLS teadown (staId %d)", + hdd_debug("indicate TDLS teadown (staId %d)", connectedPeerList[i]->staId); wlan_hdd_tdls_indicate_teardown (connectedPeerList[i]->pHddTdlsCtx-> @@ -2979,7 +2978,7 @@ int wlan_hdd_tdls_scan_callback(hdd_adapter_t *pAdapter, struct wiphy *wiphy, (unsigned long)(TDLS_DELAY_SCAN_PER_CONNECTION * connectedTdlsPeers); - hdd_notice("tdls enabled (mode %d), connected_peers %d. schedule scan %lu msec", + hdd_debug("tdls enabled (mode %d), connected_peers %d. schedule scan %lu msec", pHddCtx->tdls_mode, wlan_hdd_tdls_connected_peers(pAdapter), delay); @@ -2991,7 +2990,7 @@ int wlan_hdd_tdls_scan_callback(hdd_adapter_t *pAdapter, struct wiphy *wiphy, return 0; } /* no connected peer, scan continue */ - hdd_notice("tdls_mode %d, and no tdls connection. scan allowed", + hdd_debug("tdls_mode %d, and no tdls connection. scan allowed", pHddCtx->tdls_mode); } EXIT(); @@ -3025,8 +3024,7 @@ void wlan_hdd_tdls_scan_done_callback(hdd_adapter_t *pAdapter) if (eTDLS_SUPPORT_ENABLED == pHddCtx->tdls_mode_last || eTDLS_SUPPORT_EXTERNAL_CONTROL == pHddCtx->tdls_mode_last || eTDLS_SUPPORT_EXPLICIT_TRIGGER_ONLY == pHddCtx->tdls_mode_last) { - hdd_notice("revert tdls mode %d", - pHddCtx->tdls_mode_last); + hdd_debug("revert tdls mode: %d", pHddCtx->tdls_mode_last); wlan_hdd_tdls_set_mode(pHddCtx, pHddCtx->tdls_mode_last, false, HDD_SET_TDLS_MODE_SOURCE_SCAN); |
