diff options
author | mukesh agrawal <quiche@google.com> | 2016-04-12 16:50:27 -0700 |
---|---|---|
committer | Mukesh Agrawal <quiche@google.com> | 2016-04-14 18:30:31 +0000 |
commit | 3ff76888e8710c8d3d7153f3dbc1c9057effa183 (patch) | |
tree | 94991f4f0c4e4e180a3d2d8c47c61e850171b8ee /qcwcn | |
parent | e060f85e8b3ff335ce2d2e87adb389f46d0e0a09 (diff) | |
download | wlan-3ff76888e8710c8d3d7153f3dbc1c9057effa183.tar.gz |
Wifi-HAL: demote some messages from INFO to VERBOSE
Originally part of
https://partner-android-review.googlesource.com/#/c/558740
BUG=27698661
TEST=compile
Change-Id: I04a6dd680b23322a5382ff144d6ea533f37be2f8
Diffstat (limited to 'qcwcn')
-rw-r--r-- | qcwcn/wifi_hal/common.cpp | 40 | ||||
-rw-r--r-- | qcwcn/wifi_hal/gscan.cpp | 48 | ||||
-rw-r--r-- | qcwcn/wifi_hal/gscan_event_handler.cpp | 6 | ||||
-rwxr-xr-x | qcwcn/wifi_hal/ifaceeventhandler.cpp | 20 | ||||
-rw-r--r-- | qcwcn/wifi_hal/nan_ind.cpp | 52 | ||||
-rw-r--r-- | qcwcn/wifi_hal/nan_req.cpp | 56 | ||||
-rw-r--r-- | qcwcn/wifi_hal/nan_rsp.cpp | 6 | ||||
-rw-r--r-- | qcwcn/wifi_hal/rssi_monitor.cpp | 8 | ||||
-rwxr-xr-x | qcwcn/wifi_hal/tdls.cpp | 34 | ||||
-rw-r--r-- | qcwcn/wifi_hal/wifi_hal.cpp | 18 |
10 files changed, 144 insertions, 144 deletions
diff --git a/qcwcn/wifi_hal/common.cpp b/qcwcn/wifi_hal/common.cpp index 270d9fb..5424b9f 100644 --- a/qcwcn/wifi_hal/common.cpp +++ b/qcwcn/wifi_hal/common.cpp @@ -66,7 +66,7 @@ wifi_error wifi_register_handler(wifi_handle handle, int cmd, nl_recvmsg_msg_cb_ if(info->event_cb[i].nl_cmd == cmd && info->event_cb[i].cb_arg == arg) { info->event_cb[i].cb_func = func; - ALOGI("Updated event handler %p for nl_cmd 0x%0x" + ALOGV("Updated event handler %p for nl_cmd 0x%0x" " and arg %p", func, cmd, arg); pthread_mutex_unlock(&info->cb_lock); return WIFI_SUCCESS; @@ -80,7 +80,7 @@ wifi_error wifi_register_handler(wifi_handle handle, int cmd, nl_recvmsg_msg_cb_ info->event_cb[info->num_event_cb].cb_func = func; info->event_cb[info->num_event_cb].cb_arg = arg; info->num_event_cb++; - ALOGI("Successfully added event handler %p for command %d", func, cmd); + ALOGV("Successfully added event handler %p for command %d", func, cmd); result = WIFI_SUCCESS; } else { result = WIFI_ERROR_OUT_OF_MEMORY; @@ -105,7 +105,7 @@ wifi_error wifi_register_vendor_handler(wifi_handle handle, { info->event_cb[i].cb_func = func; info->event_cb[i].cb_arg = arg; - ALOGI("Updated event handler %p for vendor 0x%0x, subcmd 0x%0x" + ALOGV("Updated event handler %p for vendor 0x%0x, subcmd 0x%0x" " and arg %p", func, id, subcmd, arg); pthread_mutex_unlock(&info->cb_lock); return WIFI_SUCCESS; @@ -119,7 +119,7 @@ wifi_error wifi_register_vendor_handler(wifi_handle handle, info->event_cb[info->num_event_cb].cb_func = func; info->event_cb[info->num_event_cb].cb_arg = arg; info->num_event_cb++; - ALOGI("Added event handler %p for vendor 0x%0x, subcmd 0x%0x and arg" + ALOGV("Added event handler %p for vendor 0x%0x, subcmd 0x%0x and arg" " %p", func, id, subcmd, arg); result = WIFI_SUCCESS; } else { @@ -151,7 +151,7 @@ void wifi_unregister_handler(wifi_handle handle, int cmd) (info->num_event_cb - i) * sizeof(cb_info)); } info->num_event_cb--; - ALOGI("Successfully removed event handler for command %d", cmd); + ALOGV("Successfully removed event handler for command %d", cmd); break; } } @@ -178,7 +178,7 @@ void wifi_unregister_vendor_handler(wifi_handle handle, uint32_t id, int subcmd) (info->num_event_cb - i) * sizeof(cb_info)); } info->num_event_cb--; - ALOGI("Successfully removed event handler for vendor 0x%0x", id); + ALOGV("Successfully removed event handler for vendor 0x%0x", id); break; } } @@ -195,7 +195,7 @@ wifi_error wifi_register_cmd(wifi_handle handle, int id, WifiCommand *cmd) info->cmd[info->num_cmd].id = id; info->cmd[info->num_cmd].cmd = cmd; info->num_cmd++; - ALOGI("Successfully added command %d: %p", id, cmd); + ALOGV("Successfully added command %d: %p", id, cmd); return WIFI_SUCCESS; } else { return WIFI_ERROR_OUT_OF_MEMORY; @@ -211,7 +211,7 @@ WifiCommand *wifi_unregister_cmd(wifi_handle handle, int id) WifiCommand *cmd = info->cmd[i].cmd; memmove(&info->cmd[i], &info->cmd[i+1], (info->num_cmd - i) * sizeof(cmd_info)); info->num_cmd--; - ALOGI("Successfully removed command %d: %p", id, cmd); + ALOGV("Successfully removed command %d: %p", id, cmd); return cmd; } } @@ -228,7 +228,7 @@ void wifi_unregister_cmd(wifi_handle handle, WifiCommand *cmd) int id = info->cmd[i].id; memmove(&info->cmd[i], &info->cmd[i+1], (info->num_cmd - i) * sizeof(cmd_info)); info->num_cmd--; - ALOGI("Successfully removed command %d: %p", id, cmd); + ALOGV("Successfully removed command %d: %p", id, cmd); return; } } @@ -243,24 +243,24 @@ void hexdump(void *buf, u16 len) { int i=0; char *bytes = (char *)buf; - ALOGI("******HexDump len:%d*********", len); + ALOGV("******HexDump len:%d*********", len); for (i = 0; ((i + 7) < len); i+=8) { - ALOGI("%02x %02x %02x %02x %02x %02x %02x %02x", + ALOGV("%02x %02x %02x %02x %02x %02x %02x %02x", bytes[i], bytes[i+1], bytes[i+2], bytes[i+3], bytes[i+4], bytes[i+5], bytes[i+6], bytes[i+7]); } if ((len - i) >= 4) { - ALOGI("%02x %02x %02x %02x", + ALOGV("%02x %02x %02x %02x", bytes[i], bytes[i+1], bytes[i+2], bytes[i+3]); i+=4; } for (;i < len;i++) { - ALOGI("%02x", bytes[i]); + ALOGV("%02x", bytes[i]); } - ALOGI("******HexDump End***********"); + ALOGV("******HexDump End***********"); } /* Firmware sends RSSI value without noise floor. @@ -348,7 +348,7 @@ wifi_error fetchLowiCbTableAndCapabilities(lowi_cb_table_t **lowi_wifihal_api, retVal = WIFI_ERROR_NOT_SUPPORTED; goto cleanup; } - ALOGI("%s: Lowi version:%d.%d.%d", __FUNCTION__, + ALOGV("%s: Lowi version:%d.%d.%d", __FUNCTION__, lowiMajorVersion, lowiMinorVersion, lowiMicroVersion); @@ -364,7 +364,7 @@ wifi_error fetchLowiCbTableAndCapabilities(lowi_cb_table_t **lowi_wifihal_api, } } else { - ALOGI("%s: lowi_wifihal_get_lowi_version not present", + ALOGV("%s: lowi_wifihal_get_lowi_version not present", __FUNCTION__); } @@ -378,7 +378,7 @@ wifi_error fetchLowiCbTableAndCapabilities(lowi_cb_table_t **lowi_wifihal_api, *lowi_get_capa_supported = true; } else { - ALOGI("lowi_wifihal_get_lowi_capabilities() is not supported."); + ALOGV("lowi_wifihal_get_lowi_capabilities() is not supported."); *lowi_get_capa_supported = false; } cleanup: @@ -394,7 +394,7 @@ lowi_cb_table_t *getLowiCallbackTable(u32 requested_lowi_capabilities) bool lowi_get_capabilities_support = false; if (LowiWifiHalApi == NULL) { - ALOGI("%s: LowiWifiHalApi Null, Initialize Lowi", + ALOGV("%s: LowiWifiHalApi Null, Initialize Lowi", __FUNCTION__); ret = fetchLowiCbTableAndCapabilities(&LowiWifiHalApi, &lowi_get_capabilities_support); @@ -412,7 +412,7 @@ lowi_cb_table_t *getLowiCallbackTable(u32 requested_lowi_capabilities) } if (!lowi_get_capabilities_support || LowiWifiHalApi->get_lowi_capabilities == NULL) { - ALOGI("%s: Allow rtt APIs thru LOWI to proceed even though " + ALOGV("%s: Allow rtt APIs thru LOWI to proceed even though " "get_lowi_capabilities() is not supported. Returning", __FUNCTION__); lowiSupportedCapabilities |= @@ -422,7 +422,7 @@ lowi_cb_table_t *getLowiCallbackTable(u32 requested_lowi_capabilities) ret = LowiWifiHalApi->get_lowi_capabilities(&lowiSupportedCapabilities); if (ret) { - ALOGI("%s: failed to get lowi supported capabilities." + ALOGV("%s: failed to get lowi supported capabilities." "Returned error:%d. Exit.", __FUNCTION__, ret); goto cleanup; } diff --git a/qcwcn/wifi_hal/gscan.cpp b/qcwcn/wifi_hal/gscan.cpp index 9043b86..141fc05 100644 --- a/qcwcn/wifi_hal/gscan.cpp +++ b/qcwcn/wifi_hal/gscan.cpp @@ -102,7 +102,7 @@ wifi_error wifi_get_valid_channels(wifi_interface_handle handle, } else { ret = lowiWifiHalApi->get_valid_channels(handle, band, max_channels, channels, num_channels); - ALOGI("%s: lowi get_valid_channels " + ALOGV("%s: lowi get_valid_channels " "returned: %d. Exit.", __FUNCTION__, ret); return (wifi_error)ret; } @@ -111,7 +111,7 @@ wifi_error wifi_get_valid_channels(wifi_interface_handle handle, * Generate one randomly. */ requestId = get_requestid(); - ALOGI("%s: RequestId:%d band:%d max_channels:%d", __FUNCTION__, + ALOGV("%s: RequestId:%d band:%d max_channels:%d", __FUNCTION__, requestId, band, max_channels); if (channels == NULL) { @@ -199,7 +199,7 @@ wifi_error wifi_get_gscan_capabilities(wifi_interface_handle handle, } else { ret = lowiWifiHalApi->get_gscan_capabilities(handle, capabilities); - ALOGI("%s: lowi get_gscan_capabilities " + ALOGV("%s: lowi get_gscan_capabilities " "returned: %d. Exit.", __FUNCTION__, ret); return (wifi_error)ret; } @@ -304,12 +304,12 @@ wifi_error wifi_start_gscan(wifi_request_id id, ALOGD("%s: Sending cmd directly to host", __FUNCTION__); } else { ret = lowiWifiHalApi->start_gscan(id, iface, params, handler); - ALOGI("%s: lowi start_gscan " + ALOGV("%s: lowi start_gscan " "returned: %d. Exit.", __FUNCTION__, ret); return (wifi_error)ret; } - ALOGI("%s: RequestId:%d ", __FUNCTION__, id); + ALOGV("%s: RequestId:%d ", __FUNCTION__, id); /* Wi-Fi HAL doesn't need to check if a similar request to start gscan was * made earlier. If start_gscan() is called while another gscan is already * running, the request will be sent down to driver and firmware. If new @@ -344,7 +344,7 @@ wifi_error wifi_start_gscan(wifi_request_id id, num_scan_buckets = (unsigned int)params.num_buckets > MAX_BUCKETS ? MAX_BUCKETS : params.num_buckets; - ALOGI("%s: Base Period:%d Max_ap_per_scan:%d " + ALOGV("%s: Base Period:%d Max_ap_per_scan:%d " "Threshold_percent:%d Threshold_num_scans:%d " "num_buckets:%d", __FUNCTION__, params.base_period, params.max_ap_per_scan, params.report_threshold_percent, @@ -379,7 +379,7 @@ wifi_error wifi_start_gscan(wifi_request_id id, numChannelSpecs = (unsigned int)bucketSpec.num_channels > MAX_CHANNELS ? MAX_CHANNELS : bucketSpec.num_channels; - ALOGI("%s: Index: %d Bucket Id:%d Band:%d Period:%d ReportEvent:%d " + ALOGV("%s: Index: %d Bucket Id:%d Band:%d Period:%d ReportEvent:%d " "numChannelSpecs:%d max_period:%d base:%d step_count:%d", __FUNCTION__, i, bucketSpec.bucket, bucketSpec.band, bucketSpec.period, bucketSpec.report_events, @@ -423,7 +423,7 @@ wifi_error wifi_start_gscan(wifi_request_id id, struct nlattr *nl_channelSpec = gScanCommand->attr_start(j); wifi_scan_channel_spec channel_spec = bucketSpec.channels[j]; - ALOGI("%s: Channel Spec Index:%d Channel:%d Dwell Time:%d " + ALOGV("%s: Channel Spec Index:%d Channel:%d Dwell Time:%d " "passive:%d", __FUNCTION__, j, channel_spec.channel, channel_spec.dwellTimeMs, channel_spec.passive); @@ -526,7 +526,7 @@ wifi_error wifi_stop_gscan(wifi_request_id id, ALOGD("%s: Sending cmd directly to host", __FUNCTION__); } else { ret = lowiWifiHalApi->stop_gscan(id, iface); - ALOGI("%s: lowi stop_gscan " + ALOGV("%s: lowi stop_gscan " "returned: %d. Exit.", __FUNCTION__, ret); return (wifi_error)ret; } @@ -620,7 +620,7 @@ wifi_error wifi_set_bssid_hotlist(wifi_request_id id, ALOGD("%s: Sending cmd directly to host", __FUNCTION__); } else { ret = lowiWifiHalApi->set_bssid_hotlist(id, iface, params,handler); - ALOGI("%s: lowi set_bssid_hotlist " + ALOGV("%s: lowi set_bssid_hotlist " "returned: %d. Exit.", __FUNCTION__, ret); return (wifi_error)ret; } @@ -674,7 +674,7 @@ wifi_error wifi_set_bssid_hotlist(wifi_request_id id, goto cleanup; } - ALOGI("%s: lost_ap_sample_size:%d numAp:%d", __FUNCTION__, + ALOGV("%s: lost_ap_sample_size:%d numAp:%d", __FUNCTION__, params.lost_ap_sample_size, numAp); /* Add the vendor specific attributes for the NL command. */ nlApThresholdParamList = @@ -701,7 +701,7 @@ wifi_error wifi_set_bssid_hotlist(wifi_request_id id, { goto cleanup; } - ALOGI("%s: Index:%d BssId: %hhx:%hhx:%hhx:%hhx:%hhx:%hhx " + ALOGV("%s: Index:%d BssId: %hhx:%hhx:%hhx:%hhx:%hhx:%hhx " "Threshold low:%d high:%d", __FUNCTION__, i, apThreshold.bssid[0], apThreshold.bssid[1], apThreshold.bssid[2], apThreshold.bssid[3], @@ -793,7 +793,7 @@ wifi_error wifi_reset_bssid_hotlist(wifi_request_id id, ALOGD("%s: Sending cmd directly to host", __FUNCTION__); } else { ret = lowiWifiHalApi->reset_bssid_hotlist(id, iface); - ALOGI("%s: lowi reset_bssid_hotlist " + ALOGV("%s: lowi reset_bssid_hotlist " "returned: %d. Exit.", __FUNCTION__, ret); return (wifi_error)ret; } @@ -892,7 +892,7 @@ wifi_error wifi_set_significant_change_handler(wifi_request_id id, iface, params, handler); - ALOGI("%s: lowi set_significant_change_handler " + ALOGV("%s: lowi set_significant_change_handler " "returned: %d. Exit.", __FUNCTION__, ret); return (wifi_error)ret; } @@ -952,7 +952,7 @@ wifi_error wifi_set_significant_change_handler(wifi_request_id id, goto cleanup; } - ALOGI("%s: Number of AP params:%d Rssi_sample_size:%d " + ALOGV("%s: Number of AP params:%d Rssi_sample_size:%d " "lost_ap_sample_size:%d min_breaching:%d", __FUNCTION__, numAp, params.rssi_sample_size, params.lost_ap_sample_size, params.min_breaching); @@ -982,7 +982,7 @@ wifi_error wifi_set_significant_change_handler(wifi_request_id id, { goto cleanup; } - ALOGI("%s: ap[%d].bssid:%hhx:%hhx:%hhx:%hhx:%hhx:%hhx " + ALOGV("%s: ap[%d].bssid:%hhx:%hhx:%hhx:%hhx:%hhx:%hhx " "ap[%d].low:%d ap[%d].high:%d", __FUNCTION__, i, apThreshold.bssid[0], apThreshold.bssid[1], @@ -1077,7 +1077,7 @@ wifi_error wifi_reset_significant_change_handler(wifi_request_id id, ALOGD("%s: Sending cmd directly to host", __FUNCTION__); } else { ret = lowiWifiHalApi->reset_significant_change_handler(id, iface); - ALOGI("%s: lowi reset_significant_change_handler " + ALOGV("%s: lowi reset_significant_change_handler " "returned: %d. Exit.", __FUNCTION__, ret); return (wifi_error)ret; } @@ -1178,7 +1178,7 @@ wifi_error wifi_get_cached_gscan_results(wifi_interface_handle iface, max, results, num); - ALOGI("%s: lowi get_cached_gscan_results" + ALOGV("%s: lowi get_cached_gscan_results" "returned: %d. Exit.", __FUNCTION__, ret); return (wifi_error)ret; } @@ -1251,7 +1251,7 @@ wifi_error wifi_get_cached_gscan_results(wifi_interface_handle iface, goto cleanup; } - ALOGI("%s: flush:%d max:%d", __FUNCTION__, flush, max); + ALOGV("%s: flush:%d max:%d", __FUNCTION__, flush, max); gScanCommand->attr_end(nlData); retRequestRsp = gScanCommand->requestResponse(); @@ -1266,7 +1266,7 @@ wifi_error wifi_get_cached_gscan_results(wifi_interface_handle iface, /* No more data, copy the parsed results into the caller's results array */ ret = gScanCommand->copyCachedScanResults(num, results); - ALOGI("%s: max: %d, num:%d", __FUNCTION__, max, *num); + ALOGV("%s: max: %d, num:%d", __FUNCTION__, max, *num); if (!ret) { /* If requestResponse returned a TIMEOUT */ @@ -1318,7 +1318,7 @@ wifi_error wifi_set_scanning_mac_oui(wifi_interface_handle handle, oui scan_oui) if (!nlData) goto cleanup; - ALOGI("%s: MAC_OUI - %02x:%02x:%02x", __FUNCTION__, + ALOGV("%s: MAC_OUI - %02x:%02x:%02x", __FUNCTION__, scan_oui[0], scan_oui[1], scan_oui[2]); /* Add the fixed part of the mac_oui to the nl command */ @@ -1495,7 +1495,7 @@ int GScanCommand::handleResponse(WifiEvent &reply) { if (mGetCapabilitiesRspParams) { wifi_gscan_capabilities capa = mGetCapabilitiesRspParams->capabilities; - ALOGI("%s: max_ap_cache_per_scan:%d\n" + ALOGV("%s: max_ap_cache_per_scan:%d\n" "max_bssid_history_entries:%d\n" "max_hotlist_bssids:%d\n" "max_hotlist_ssids:%d\n" @@ -2717,7 +2717,7 @@ wifi_error GScanCommand::copyCachedScanResults( continue; } - ALOGI("copyCachedScanResults: " + ALOGV("copyCachedScanResults: " "cached_results[%d].num_results : %d", i, cached_results[i].num_results); @@ -2776,7 +2776,7 @@ wifi_error wifi_set_bssid_blacklist(wifi_request_id id, } for (i = 0; i < params.num_bssid; i++) { - ALOGI("BSSID: %d : %02x:%02x:%02x:%02x:%02x:%02x", i, + ALOGV("BSSID: %d : %02x:%02x:%02x:%02x:%02x:%02x", i, params.bssids[i][0], params.bssids[i][1], params.bssids[i][2], params.bssids[i][3], params.bssids[i][4], params.bssids[i][5]); diff --git a/qcwcn/wifi_hal/gscan_event_handler.cpp b/qcwcn/wifi_hal/gscan_event_handler.cpp index c02640e..c723c6b 100644 --- a/qcwcn/wifi_hal/gscan_event_handler.cpp +++ b/qcwcn/wifi_hal/gscan_event_handler.cpp @@ -1760,7 +1760,7 @@ int GScanCommandEventHandler::handleEvent(WifiEvent &event) scanEvent = (wifi_scan_event) nla_get_u8(tbVendor[ QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE]); - ALOGI("%s: Scan event type: %d\n", __FUNCTION__, scanEvent); + ALOGV("%s: Scan event type: %d\n", __FUNCTION__, scanEvent); /* Send the results if no more result fragments are expected. */ (*mHandler.on_scan_event)(reqId, scanEvent); } @@ -1801,7 +1801,7 @@ int GScanCommandEventHandler::handleEvent(WifiEvent &event) } numResults = nla_get_u32(tbVendor[ QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE]); - ALOGI("%s: number of results:%d", __FUNCTION__, numResults); + ALOGV("%s: number of results:%d", __FUNCTION__, numResults); /* Get the memory size of previous fragments, if any. */ sizeOfObtainedResults = mPnoNetworkFoundNumResults * @@ -1832,7 +1832,7 @@ int GScanCommandEventHandler::handleEvent(WifiEvent &event) memset((u8 *)mPnoNetworkFoundResults + sizeOfObtainedResults, 0, resultsBufSize - sizeOfObtainedResults); - ALOGI("%s: Num of AP FOUND results = %d. \n", __FUNCTION__, + ALOGV("%s: Num of AP FOUND results = %d. \n", __FUNCTION__, mPnoNetworkFoundNumResults); /* To support fragmentation from firmware, monitor the diff --git a/qcwcn/wifi_hal/ifaceeventhandler.cpp b/qcwcn/wifi_hal/ifaceeventhandler.cpp index ef01bf1..9768fe0 100755 --- a/qcwcn/wifi_hal/ifaceeventhandler.cpp +++ b/qcwcn/wifi_hal/ifaceeventhandler.cpp @@ -86,7 +86,7 @@ wifi_error wifi_reset_iface_event_handler(wifi_request_id id, if (mwifiEventHandler) { if (id == mwifiEventHandler->get_request_id()) { - ALOGI("Delete Object mwifiEventHandler for id = %d", id); + ALOGV("Delete Object mwifiEventHandler for id = %d", id); delete mwifiEventHandler; mwifiEventHandler = NULL; } else { @@ -95,7 +95,7 @@ wifi_error wifi_reset_iface_event_handler(wifi_request_id id, return WIFI_ERROR_NOT_SUPPORTED; } } else { - ALOGI("Object mwifiEventHandler for id = %d already Deleted", id); + ALOGV("Object mwifiEventHandler for id = %d already Deleted", id); } cleanup: @@ -124,7 +124,7 @@ int IfaceEventHandlerCommand::handleEvent(WifiEvent &event) } else { ALOGE("%s: NL80211_ATTR_REG_ALPHA2 not found", __func__); } - ALOGI("Country : %c%c", code[0], code[1]); + ALOGV("Country : %c%c", code[0], code[1]); if(mHandler.on_country_code_changed) { mHandler.on_country_code_changed(code); @@ -132,7 +132,7 @@ int IfaceEventHandlerCommand::handleEvent(WifiEvent &event) } break; default: - ALOGI("NL Event : %d Not supported", mSubcmd); + ALOGV("NL Event : %d Not supported", mSubcmd); } return NL_SKIP; @@ -190,7 +190,7 @@ int wifiEventHandler::handleEvent(WifiEvent &event) mSubcmd = gnlh->cmd; nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), genlmsg_attrlen(gnlh, 0), NULL); - ALOGI("Got NL Event : %d from the Driver.", gnlh->cmd); + ALOGV("Got NL Event : %d from the Driver.", gnlh->cmd); return NL_SKIP; } @@ -220,7 +220,7 @@ int WifihalGeneric::requestResponse() int WifihalGeneric::handleResponse(WifiEvent &reply) { - ALOGI("Got a Wi-Fi HAL module message from Driver"); + ALOGV("Got a Wi-Fi HAL module message from Driver"); int i = 0; u32 status; WifiVendorCommand::handleResponse(reply); @@ -241,7 +241,7 @@ int WifihalGeneric::handleResponse(WifiEvent &reply) return WIFI_ERROR_INVALID_ARGS; } mSet = nla_get_u32(tb_vendor[QCA_WLAN_VENDOR_ATTR_FEATURE_SET]); - ALOGI("Supported feature set : %x", mSet); + ALOGV("Supported feature set : %x", mSet); break; } @@ -305,7 +305,7 @@ int WifihalGeneric::handleResponse(WifiEvent &reply) } filterVersion = nla_get_u32( tb_vendor[QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION]); - ALOGI("Current version : %u", filterVersion); + ALOGV("Current version : %u", filterVersion); if (!tb_vendor[QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_TOTAL_LENGTH]) { @@ -315,7 +315,7 @@ int WifihalGeneric::handleResponse(WifiEvent &reply) } filterLength = nla_get_u32( tb_vendor[QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_TOTAL_LENGTH]); - ALOGI("Max filter length Supported : %u", filterLength); + ALOGV("Max filter length Supported : %u", filterLength); } break; @@ -334,7 +334,7 @@ int WifihalGeneric::handleResponse(WifiEvent &reply) } firmware_bus_max_size = nla_get_u32( tb_vendor[QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE]); - ALOGI("Max BUS size Supported: %d", firmware_bus_max_size); + ALOGV("Max BUS size Supported: %d", firmware_bus_max_size); } break; default : diff --git a/qcwcn/wifi_hal/nan_ind.cpp b/qcwcn/wifi_hal/nan_ind.cpp index 84a535c..2c335f8 100644 --- a/qcwcn/wifi_hal/nan_ind.cpp +++ b/qcwcn/wifi_hal/nan_ind.cpp @@ -34,7 +34,7 @@ int NanCommand::handleNanIndication() msg_id = getIndicationType(); - ALOGI("handleNanIndication msg_id:%u", msg_id); + ALOGV("handleNanIndication msg_id:%u", msg_id); switch (msg_id) { case NAN_INDICATION_PUBLISH_TERMINATED: NanPublishTerminatedInd publishTerminatedInd; @@ -200,13 +200,13 @@ int NanCommand::getNanMatch(NanMatchInd *event) //Has SDF match filter and service specific info TLV if (remainingLen <= 0) { - ALOGI("%s: No TLV's present",__func__); + ALOGV("%s: No TLV's present",__func__); return WIFI_SUCCESS; } - ALOGI("%s: TLV remaining Len:%d",__func__, remainingLen); + ALOGV("%s: TLV remaining Len:%d",__func__, remainingLen); while ((remainingLen > 0) && (0 != (readLen = NANTLV_ReadTlv(pInputTlv, &outputTlv)))) { - ALOGI("%s: Remaining Len:%d readLen:%d type:%d length:%d", + ALOGV("%s: Remaining Len:%d readLen:%d type:%d length:%d", __func__, remainingLen, readLen, outputTlv.type, outputTlv.length); switch (outputTlv.type) { @@ -286,7 +286,7 @@ int NanCommand::getNanMatch(NanMatchInd *event) event->cluster_attribute_len = outputTlv.length; break; default: - ALOGI("Unknown TLV type skipped"); + ALOGV("Unknown TLV type skipped"); break; } remainingLen -= readLen; @@ -345,13 +345,13 @@ int NanCommand::getNanFollowup(NanFollowupInd *event) //Has service specific info and extended service specific info TLV if (remainingLen <= 0) { - ALOGI("%s: No TLV's present",__func__); + ALOGV("%s: No TLV's present",__func__); return WIFI_SUCCESS; } - ALOGI("%s: TLV remaining Len:%d",__func__, remainingLen); + ALOGV("%s: TLV remaining Len:%d",__func__, remainingLen); while ((remainingLen > 0) && (0 != (readLen = NANTLV_ReadTlv(pInputTlv, &outputTlv)))) { - ALOGI("%s: Remaining Len:%d readLen:%d type:%d length:%d", + ALOGV("%s: Remaining Len:%d readLen:%d type:%d length:%d", __func__, remainingLen, readLen, outputTlv.type, outputTlv.length); switch (outputTlv.type) { @@ -371,7 +371,7 @@ int NanCommand::getNanFollowup(NanFollowupInd *event) memcpy(event->addr, outputTlv.value, outputTlv.length); break; default: - ALOGI("Unknown TLV type skipped"); + ALOGV("Unknown TLV type skipped"); break; } remainingLen -= readLen; @@ -404,16 +404,16 @@ int NanCommand::getNanDiscEngEvent(NanDiscEngEventInd *event) return WIFI_SUCCESS; } - ALOGI("%s: TLV remaining Len:%d",__func__, remainingLen); + ALOGV("%s: TLV remaining Len:%d",__func__, remainingLen); while ((remainingLen > 0) && (0 != (readLen = NANTLV_ReadTlv(pInputTlv, &outputTlv)))) { - ALOGI("%s: Remaining Len:%d readLen:%d type:%d length:%d", + ALOGV("%s: Remaining Len:%d readLen:%d type:%d length:%d", __func__, remainingLen, readLen, outputTlv.type, outputTlv.length); switch (outputTlv.type) { case NAN_TLV_TYPE_EVENT_SELF_STATION_MAC_ADDRESS: if (outputTlv.length > NAN_MAC_ADDR_LEN) { - ALOGI("%s: Reading only first %d bytes of TLV", + ALOGV("%s: Reading only first %d bytes of TLV", __func__, NAN_MAC_ADDR_LEN); outputTlv.length = NAN_MAC_ADDR_LEN; } @@ -423,7 +423,7 @@ int NanCommand::getNanDiscEngEvent(NanDiscEngEventInd *event) break; case NAN_TLV_TYPE_EVENT_STARTED_CLUSTER: if (outputTlv.length > NAN_MAC_ADDR_LEN) { - ALOGI("%s: Reading only first %d bytes of TLV", + ALOGV("%s: Reading only first %d bytes of TLV", __func__, NAN_MAC_ADDR_LEN); outputTlv.length = NAN_MAC_ADDR_LEN; } @@ -433,7 +433,7 @@ int NanCommand::getNanDiscEngEvent(NanDiscEngEventInd *event) break; case NAN_TLV_TYPE_EVENT_JOINED_CLUSTER: if (outputTlv.length > NAN_MAC_ADDR_LEN) { - ALOGI("%s: Reading only first %d bytes of TLV", + ALOGV("%s: Reading only first %d bytes of TLV", __func__, NAN_MAC_ADDR_LEN); outputTlv.length = NAN_MAC_ADDR_LEN; } @@ -442,7 +442,7 @@ int NanCommand::getNanDiscEngEvent(NanDiscEngEventInd *event) event->event_type = NAN_EVENT_ID_JOINED_CLUSTER; break; default: - ALOGI("Unhandled TLV type:%d", outputTlv.type); + ALOGV("Unhandled TLV type:%d", outputTlv.type); break; } remainingLen -= readLen; @@ -490,10 +490,10 @@ int NanCommand::getNanTca(NanTCAInd *event) return WIFI_SUCCESS; } - ALOGI("%s: TLV remaining Len:%d",__func__, remainingLen); + ALOGV("%s: TLV remaining Len:%d",__func__, remainingLen); while ((remainingLen > 0) && (0 != (readLen = NANTLV_ReadTlv(pInputTlv, &outputTlv)))) { - ALOGI("%s: Remaining Len:%d readLen:%d type:%d length:%d", + ALOGV("%s: Remaining Len:%d readLen:%d type:%d length:%d", __func__, remainingLen, readLen, outputTlv.type, outputTlv.length); switch (outputTlv.type) { @@ -510,7 +510,7 @@ int NanCommand::getNanTca(NanTCAInd *event) event->tca_type = NAN_TCA_ID_CLUSTER_SIZE; break; default: - ALOGI("Unhandled TLV type:%d", outputTlv.type); + ALOGV("Unhandled TLV type:%d", outputTlv.type); break; } remainingLen -= readLen; @@ -539,14 +539,14 @@ int NanCommand::getNanBeaconSdfPayload(NanBeaconSdfPayloadInd *event) //Has Mac address if (remainingLen <= 0) { - ALOGI("%s: No TLV's present",__func__); + ALOGV("%s: No TLV's present",__func__); return WIFI_SUCCESS; } - ALOGI("%s: TLV remaining Len:%d",__func__, remainingLen); + ALOGV("%s: TLV remaining Len:%d",__func__, remainingLen); while ((remainingLen > 0) && (0 != (readLen = NANTLV_ReadTlv(pInputTlv, &outputTlv)))) { - ALOGI("%s: Remaining Len:%d readLen:%d type:%d length:%d", + ALOGV("%s: Remaining Len:%d readLen:%d type:%d length:%d", __func__, remainingLen, readLen, outputTlv.type, outputTlv.length); switch (outputTlv.type) { @@ -592,7 +592,7 @@ int NanCommand::getNanBeaconSdfPayload(NanBeaconSdfPayloadInd *event) break; default: - ALOGI("Unhandled TLV Type:%d", outputTlv.type); + ALOGV("Unhandled TLV Type:%d", outputTlv.type); break; } remainingLen -= readLen; @@ -647,10 +647,10 @@ int NanCommand::getNanReceivePostDiscoveryVal(const u8 *pInValue, return -1; } - ALOGI("%s: TLV remaining Len:%d",__func__, remainingLen); + ALOGV("%s: TLV remaining Len:%d",__func__, remainingLen); while ((remainingLen > 0) && (0 != (readLen = NANTLV_ReadTlv(pInputTlv, &outputTlv)))) { - ALOGI("%s: Remaining Len:%d readLen:%d type:%d length:%d", + ALOGV("%s: Remaining Len:%d readLen:%d type:%d length:%d", __func__, remainingLen, readLen, outputTlv.type, outputTlv.length); switch (outputTlv.type) { @@ -675,7 +675,7 @@ int NanCommand::getNanReceivePostDiscoveryVal(const u8 *pInValue, outputTlv.length); pRxDisc->infrastructure_ssid_len = outputTlv.length; default: - ALOGI("Unhandled TLV Type:%d", outputTlv.type); + ALOGV("Unhandled TLV Type:%d", outputTlv.type); break; } remainingLen -= readLen; @@ -785,7 +785,7 @@ int NanCommand::getNanStaParameter(wifi_interface_handle iface, ret = WIFI_ERROR_TIMED_OUT; goto cleanup; } - ALOGI("%s: NanStaparameter Master_pref:%x," \ + ALOGV("%s: NanStaparameter Master_pref:%x," \ " Random_factor:%x, hop_count:%x " \ " beacon_transmit_time:%d", __func__, pRsp->master_pref, pRsp->random_factor, diff --git a/qcwcn/wifi_hal/nan_req.cpp b/qcwcn/wifi_hal/nan_req.cpp index 4893a92..20c6069 100644 --- a/qcwcn/wifi_hal/nan_req.cpp +++ b/qcwcn/wifi_hal/nan_req.cpp @@ -22,7 +22,7 @@ int NanCommand::putNanEnable(transaction_id id, const NanEnableRequest *pReq) { - ALOGI("NAN_ENABLE"); + ALOGV("NAN_ENABLE"); size_t message_len = NAN_MAX_ENABLE_REQ_SIZE; if (pReq == NULL) { @@ -129,7 +129,7 @@ int NanCommand::putNanEnable(transaction_id id, const NanEnableRequest *pReq) return WIFI_ERROR_OUT_OF_MEMORY; } - ALOGI("Message Len %zu", message_len); + ALOGV("Message Len %zu", message_len); memset (pFwReq, 0, message_len); pFwReq->fwHeader.msgVersion = (u16)NAN_MSG_VERSION1; pFwReq->fwHeader.msgId = NAN_MSG_ID_ENABLE_REQ; @@ -272,7 +272,7 @@ int NanCommand::putNanEnable(transaction_id id, const NanEnableRequest *pReq) int NanCommand::putNanDisable(transaction_id id) { - ALOGI("NAN_DISABLE"); + ALOGV("NAN_DISABLE"); size_t message_len = sizeof(NanDisableReqMsg); pNanDisableReqMsg pFwReq = (pNanDisableReqMsg)malloc(message_len); @@ -281,7 +281,7 @@ int NanCommand::putNanDisable(transaction_id id) return WIFI_ERROR_OUT_OF_MEMORY; } - ALOGI("Message Len %zu", message_len); + ALOGV("Message Len %zu", message_len); memset (pFwReq, 0, message_len); pFwReq->fwHeader.msgVersion = (u16)NAN_MSG_VERSION1; pFwReq->fwHeader.msgId = NAN_MSG_ID_DISABLE_REQ; @@ -303,7 +303,7 @@ int NanCommand::putNanDisable(transaction_id id) int NanCommand::putNanConfig(transaction_id id, const NanConfigRequest *pReq) { - ALOGI("NAN_CONFIG"); + ALOGV("NAN_CONFIG"); size_t message_len = NAN_MAX_CONFIGURATION_REQ_SIZE; int idx = 0; @@ -376,7 +376,7 @@ int NanCommand::putNanConfig(transaction_id id, const NanConfigRequest *pReq) return WIFI_ERROR_OUT_OF_MEMORY; } - ALOGI("Message Len %zu", message_len); + ALOGV("Message Len %zu", message_len); memset (pFwReq, 0, message_len); pFwReq->fwHeader.msgVersion = (u16)NAN_MSG_VERSION1; pFwReq->fwHeader.msgId = NAN_MSG_ID_CONFIGURATION_REQ; @@ -464,7 +464,7 @@ int NanCommand::putNanConfig(transaction_id id, const NanConfigRequest *pReq) int NanCommand::putNanPublish(transaction_id id, const NanPublishRequest *pReq) { - ALOGI("NAN_PUBLISH"); + ALOGV("NAN_PUBLISH"); if (pReq == NULL) { cleanup(); return WIFI_ERROR_INVALID_ARGS; @@ -483,7 +483,7 @@ int NanCommand::putNanPublish(transaction_id id, const NanPublishRequest *pReq) return WIFI_ERROR_OUT_OF_MEMORY; } - ALOGI("Message Len %zu", message_len); + ALOGV("Message Len %zu", message_len); memset(pFwReq, 0, message_len); pFwReq->fwHeader.msgVersion = (u16)NAN_MSG_VERSION1; pFwReq->fwHeader.msgId = NAN_MSG_ID_PUBLISH_SERVICE_REQ; @@ -547,7 +547,7 @@ int NanCommand::putNanPublish(transaction_id id, const NanPublishRequest *pReq) int NanCommand::putNanPublishCancel(transaction_id id, const NanPublishCancelRequest *pReq) { - ALOGI("NAN_PUBLISH_CANCEL"); + ALOGV("NAN_PUBLISH_CANCEL"); if (pReq == NULL) { cleanup(); return WIFI_ERROR_INVALID_ARGS; @@ -561,7 +561,7 @@ int NanCommand::putNanPublishCancel(transaction_id id, const NanPublishCancelReq return WIFI_ERROR_OUT_OF_MEMORY; } - ALOGI("Message Len %zu", message_len); + ALOGV("Message Len %zu", message_len); memset(pFwReq, 0, message_len); pFwReq->fwHeader.msgVersion = (u16)NAN_MSG_VERSION1; pFwReq->fwHeader.msgId = NAN_MSG_ID_PUBLISH_SERVICE_CANCEL_REQ; @@ -586,7 +586,7 @@ int NanCommand::putNanSubscribe(transaction_id id, const NanSubscribeRequest *pReq) { - ALOGI("NAN_SUBSCRIBE"); + ALOGV("NAN_SUBSCRIBE"); if (pReq == NULL) { cleanup(); return WIFI_ERROR_INVALID_ARGS; @@ -608,7 +608,7 @@ int NanCommand::putNanSubscribe(transaction_id id, return WIFI_ERROR_OUT_OF_MEMORY; } - ALOGI("Message Len %zu", message_len); + ALOGV("Message Len %zu", message_len); memset(pFwReq, 0, message_len); pFwReq->fwHeader.msgVersion = (u16)NAN_MSG_VERSION1; pFwReq->fwHeader.msgId = NAN_MSG_ID_SUBSCRIBE_SERVICE_REQ; @@ -680,7 +680,7 @@ int NanCommand::putNanSubscribe(transaction_id id, int NanCommand::putNanSubscribeCancel(transaction_id id, const NanSubscribeCancelRequest *pReq) { - ALOGI("NAN_SUBSCRIBE_CANCEL"); + ALOGV("NAN_SUBSCRIBE_CANCEL"); if (pReq == NULL) { cleanup(); return WIFI_ERROR_INVALID_ARGS; @@ -694,7 +694,7 @@ int NanCommand::putNanSubscribeCancel(transaction_id id, return WIFI_ERROR_OUT_OF_MEMORY; } - ALOGI("Message Len %zu", message_len); + ALOGV("Message Len %zu", message_len); memset(pFwReq, 0, message_len); pFwReq->fwHeader.msgVersion = (u16)NAN_MSG_VERSION1; pFwReq->fwHeader.msgId = NAN_MSG_ID_SUBSCRIBE_SERVICE_CANCEL_REQ; @@ -718,7 +718,7 @@ int NanCommand::putNanSubscribeCancel(transaction_id id, int NanCommand::putNanTransmitFollowup(transaction_id id, const NanTransmitFollowupRequest *pReq) { - ALOGI("TRANSMIT_FOLLOWUP"); + ALOGV("TRANSMIT_FOLLOWUP"); if (pReq == NULL) { cleanup(); return WIFI_ERROR_INVALID_ARGS; @@ -738,7 +738,7 @@ int NanCommand::putNanTransmitFollowup(transaction_id id, return WIFI_ERROR_OUT_OF_MEMORY; } - ALOGI("Message Len %zu", message_len); + ALOGV("Message Len %zu", message_len); memset (pFwReq, 0, message_len); pFwReq->fwHeader.msgVersion = (u16)NAN_MSG_VERSION1; pFwReq->fwHeader.msgId = NAN_MSG_ID_TRANSMIT_FOLLOWUP_REQ; @@ -784,7 +784,7 @@ int NanCommand::putNanTransmitFollowup(transaction_id id, int NanCommand::putNanStats(transaction_id id, const NanStatsRequest *pReq) { - ALOGI("NAN_STATS"); + ALOGV("NAN_STATS"); if (pReq == NULL) { cleanup(); return WIFI_ERROR_INVALID_ARGS; @@ -798,7 +798,7 @@ int NanCommand::putNanStats(transaction_id id, const NanStatsRequest *pReq) return WIFI_ERROR_OUT_OF_MEMORY; } - ALOGI("Message Len %zu", message_len); + ALOGV("Message Len %zu", message_len); memset(pFwReq, 0, message_len); pFwReq->fwHeader.msgVersion = (u16)NAN_MSG_VERSION1; pFwReq->fwHeader.msgId = NAN_MSG_ID_STATS_REQ; @@ -824,7 +824,7 @@ int NanCommand::putNanStats(transaction_id id, const NanStatsRequest *pReq) int NanCommand::putNanTCA(transaction_id id, const NanTCARequest *pReq) { - ALOGI("NAN_TCA"); + ALOGV("NAN_TCA"); if (pReq == NULL) { cleanup(); return WIFI_ERROR_INVALID_ARGS; @@ -839,7 +839,7 @@ int NanCommand::putNanTCA(transaction_id id, const NanTCARequest *pReq) return WIFI_ERROR_OUT_OF_MEMORY; } - ALOGI("Message Len %zu", message_len); + ALOGV("Message Len %zu", message_len); memset(pFwReq, 0, message_len); pFwReq->fwHeader.msgVersion = (u16)NAN_MSG_VERSION1; pFwReq->fwHeader.msgId = NAN_MSG_ID_TCA_REQ; @@ -881,7 +881,7 @@ int NanCommand::putNanTCA(transaction_id id, const NanTCARequest *pReq) int NanCommand::putNanBeaconSdfPayload(transaction_id id, const NanBeaconSdfPayloadRequest *pReq) { - ALOGI("NAN_BEACON_SDF_PAYLAOD"); + ALOGV("NAN_BEACON_SDF_PAYLAOD"); if (pReq == NULL) { cleanup(); return WIFI_ERROR_INVALID_ARGS; @@ -897,7 +897,7 @@ int NanCommand::putNanBeaconSdfPayload(transaction_id id, return WIFI_ERROR_OUT_OF_MEMORY; } - ALOGI("Message Len %zu", message_len); + ALOGV("Message Len %zu", message_len); memset(pFwReq, 0, message_len); pFwReq->fwHeader.msgVersion = (u16)NAN_MSG_VERSION1; pFwReq->fwHeader.msgId = NAN_MSG_ID_BEACON_SDF_REQ; @@ -1044,7 +1044,7 @@ int NanCommand::calcNanTransmitPostDiscoverySize( ret += (SIZEOF_TLV_HDR + \ pPostDiscovery->infrastructure_ssid_len); } - ALOGI("%s:size:%d", __func__, ret); + ALOGV("%s:size:%d", __func__, ret); return ret; } @@ -1063,7 +1063,7 @@ void NanCommand::fillNanSocialChannelParamVal( pChannelParamArr[NAN_CHANNEL_24G_BAND] |= 6; pChannelParamArr[NAN_CHANNEL_5G_BAND_LOW]|= 44; pChannelParamArr[NAN_CHANNEL_5G_BAND_HIGH]|= 149; - ALOGI("%s: Filled SocialChannelParamVal", __func__); + ALOGV("%s: Filled SocialChannelParamVal", __func__); hexdump((char*)pChannelParamArr, NAN_MAX_SOCIAL_CHANNELS * sizeof(u32)); } return; @@ -1080,7 +1080,7 @@ u32 NanCommand::getNanTransmitPostConnectivityCapabilityVal( ret |= (pCapab->is_tdls_supported? 1:0) << 2; ret |= (pCapab->is_wfds_supported? 1:0) << 1; ret |= (pCapab->is_wfd_supported? 1:0); - ALOGI("%s: val:%d", __func__, ret); + ALOGV("%s: val:%d", __func__, ret); return ret; } @@ -1113,7 +1113,7 @@ void NanCommand::fillNanTransmitPostDiscoveryVal( (const u8*)&pTxDisc->infrastructure_ssid_val[0], tlvs); } - ALOGI("%s: Filled TransmitPostDiscoveryVal", __func__); + ALOGV("%s: Filled TransmitPostDiscoveryVal", __func__); hexdump((char*)pOutValue, calcNanTransmitPostDiscoverySize(pTxDisc)); } @@ -1150,7 +1150,7 @@ void NanCommand::fillNanFurtherAvailabilityMapVal( &pFamChan->avail_interval_bitmap, sizeof(pFwFamChan->availIntBitmap)); } - ALOGI("%s: Filled FurtherAvailabilityMapVal", __func__); + ALOGV("%s: Filled FurtherAvailabilityMapVal", __func__); hexdump((char*)pOutValue, famsize); } return; @@ -1167,7 +1167,7 @@ int NanCommand::calcNanFurtherAvailabilityMapSize( /* numchans * sizeof(FamChannels) */ ret += (pFam->numchans * sizeof(NanFurtherAvailabilityChan)); } - ALOGI("%s:size:%d", __func__, ret); + ALOGV("%s:size:%d", __func__, ret); return ret; } diff --git a/qcwcn/wifi_hal/nan_rsp.cpp b/qcwcn/wifi_hal/nan_rsp.cpp index 2a768bd..9183baa 100644 --- a/qcwcn/wifi_hal/nan_rsp.cpp +++ b/qcwcn/wifi_hal/nan_rsp.cpp @@ -149,7 +149,7 @@ int NanCommand::getNanResponse(transaction_id *id, NanResponseMsg *pRsp) pRsp->response_type = NAN_RESPONSE_STATS; pRsp->body.stats_response.stats_type = \ (NanStatsType)pFwRsp->statsRspParams.statsType; - ALOGI("%s: stats_type:%d",__func__, + ALOGV("%s: stats_type:%d",__func__, pRsp->body.stats_response.stats_type); u8 *pInputTlv = pFwRsp->ptlv; NanTlv outputTlv; @@ -159,7 +159,7 @@ int NanCommand::getNanResponse(transaction_id *id, NanResponseMsg *pRsp) (sizeof(NanMsgHeader) + sizeof(NanStatsRspParams))); if (remainingLen > 0) { readLen = NANTLV_ReadTlv(pInputTlv, &outputTlv); - ALOGI("%s: Remaining Len:%d readLen:%d type:%d length:%d", + ALOGV("%s: Remaining Len:%d readLen:%d type:%d length:%d", __func__, remainingLen, readLen, outputTlv.type, outputTlv.length); if (outputTlv.length <= \ @@ -170,7 +170,7 @@ int NanCommand::getNanResponse(transaction_id *id, NanResponseMsg *pRsp) } } else - ALOGI("%s: No TLV's present",__func__); + ALOGV("%s: No TLV's present",__func__); break; } case NAN_MSG_ID_ENABLE_RSP: diff --git a/qcwcn/wifi_hal/rssi_monitor.cpp b/qcwcn/wifi_hal/rssi_monitor.cpp index b65b78a..33f5522 100644 --- a/qcwcn/wifi_hal/rssi_monitor.cpp +++ b/qcwcn/wifi_hal/rssi_monitor.cpp @@ -79,7 +79,7 @@ RSSIMonitorCommand* RSSIMonitorCommand::instance(wifi_handle handle, { /* upper layer must have cleaned up the handle and reinitialized, so we need to update the same */ - ALOGI("Handle different, update the handle"); + ALOGV("Handle different, update the handle"); mRSSIMonitorCommandInstance->mInfo = (hal_info *)handle; } mRSSIMonitorCommandInstance->setReqId(id); @@ -136,7 +136,7 @@ int RSSIMonitorCommand::handleEvent(WifiEvent &event) if (ret != WIFI_SUCCESS) { return ret; } - ALOGI(MAC_ADDR_STR, MAC_ADDR_ARRAY(addr)); + ALOGV(MAC_ADDR_STR, MAC_ADDR_ARRAY(addr)); if (!tb_vendor[QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI]) { @@ -146,7 +146,7 @@ int RSSIMonitorCommand::handleEvent(WifiEvent &event) } rssi = get_s8(tb_vendor[ QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI]); - ALOGI("Current RSSI : %d ", rssi); + ALOGV("Current RSSI : %d ", rssi); if (mHandler.on_rssi_threshold_breached) (*mHandler.on_rssi_threshold_breached)(reqId, addr, rssi); @@ -203,7 +203,7 @@ wifi_error wifi_start_rssi_monitoring(wifi_request_id id, return (wifi_error)ret; } - ALOGI("%s: Max RSSI:%d Min RSSI:%d", __FUNCTION__, + ALOGV("%s: Max RSSI:%d Min RSSI:%d", __FUNCTION__, max_rssi, min_rssi); /* Add the vendor specific attributes for the NL command. */ nlData = vCommand->attr_start(NL80211_ATTR_VENDOR_DATA); diff --git a/qcwcn/wifi_hal/tdls.cpp b/qcwcn/wifi_hal/tdls.cpp index 38c1747..23b5453 100755 --- a/qcwcn/wifi_hal/tdls.cpp +++ b/qcwcn/wifi_hal/tdls.cpp @@ -73,7 +73,7 @@ TdlsCommand* TdlsCommand::instance(wifi_handle handle) { /* upper layer must have cleaned up the handle and reinitialized, so we need to update the same */ - ALOGI("Handle different, update the handle"); + ALOGV("Handle different, update the handle"); mTdlsCommandInstance->mInfo = (hal_info *)handle; } } @@ -115,7 +115,7 @@ int TdlsCommand::handleEvent(WifiEvent &event) (struct nlattr *)mVendorData, mDataLen, NULL); - ALOGI("QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE Received"); + ALOGV("QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE Received"); if (!tb_vendor[QCA_WLAN_VENDOR_ATTR_TDLS_MAC_ADDR]) { ALOGE("%s: QCA_WLAN_VENDOR_ATTR_TDLS_MAC_ADDR not found", @@ -126,7 +126,7 @@ int TdlsCommand::handleEvent(WifiEvent &event) (u8 *)nla_data(tb_vendor[QCA_WLAN_VENDOR_ATTR_TDLS_MAC_ADDR]), nla_len(tb_vendor[QCA_WLAN_VENDOR_ATTR_TDLS_MAC_ADDR])); - ALOGI(MAC_ADDR_STR, MAC_ADDR_ARRAY(addr)); + ALOGV(MAC_ADDR_STR, MAC_ADDR_ARRAY(addr)); if (!tb_vendor[QCA_WLAN_VENDOR_ATTR_TDLS_STATE]) { @@ -136,7 +136,7 @@ int TdlsCommand::handleEvent(WifiEvent &event) } status.state = (wifi_tdls_state) get_u32(tb_vendor[QCA_WLAN_VENDOR_ATTR_TDLS_STATE]); - ALOGI("TDLS: State New : %d ", status.state); + ALOGV("TDLS: State New : %d ", status.state); if (!tb_vendor[QCA_WLAN_VENDOR_ATTR_TDLS_REASON]) { @@ -146,7 +146,7 @@ int TdlsCommand::handleEvent(WifiEvent &event) } status.reason = (wifi_tdls_reason) get_s32(tb_vendor[QCA_WLAN_VENDOR_ATTR_TDLS_REASON]); - ALOGI("TDLS: Reason : %d ", status.reason); + ALOGV("TDLS: Reason : %d ", status.reason); if (!tb_vendor[QCA_WLAN_VENDOR_ATTR_TDLS_CHANNEL]) { @@ -156,7 +156,7 @@ int TdlsCommand::handleEvent(WifiEvent &event) } status.channel = get_u32(tb_vendor[QCA_WLAN_VENDOR_ATTR_TDLS_CHANNEL]); - ALOGI("TDLS: channel : %d ", status.channel); + ALOGV("TDLS: channel : %d ", status.channel); if (!tb_vendor[ QCA_WLAN_VENDOR_ATTR_TDLS_GLOBAL_OPERATING_CLASS]) @@ -167,7 +167,7 @@ int TdlsCommand::handleEvent(WifiEvent &event) } status.global_operating_class = get_u32( tb_vendor[QCA_WLAN_VENDOR_ATTR_TDLS_GLOBAL_OPERATING_CLASS]); - ALOGI("TDLS: global_operating_class: %d ", + ALOGV("TDLS: global_operating_class: %d ", status.global_operating_class); if (mHandler.on_tdls_state_changed) @@ -203,7 +203,7 @@ int TdlsCommand::handleResponse(WifiEvent &reply) (struct nlattr *)mVendorData, mDataLen, NULL); - ALOGI("QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS Received"); + ALOGV("QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS Received"); memset(&mTDLSgetStatusRspParams, 0, sizeof(wifi_tdls_status)); if (!tb_vendor[QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE]) @@ -214,7 +214,7 @@ int TdlsCommand::handleResponse(WifiEvent &reply) } mTDLSgetStatusRspParams.state = (wifi_tdls_state)get_u32( tb_vendor[QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE]); - ALOGI("TDLS: State : %u ", mTDLSgetStatusRspParams.state); + ALOGV("TDLS: State : %u ", mTDLSgetStatusRspParams.state); if (!tb_vendor[QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON]) { @@ -224,7 +224,7 @@ int TdlsCommand::handleResponse(WifiEvent &reply) } mTDLSgetStatusRspParams.reason = (wifi_tdls_reason)get_s32( tb_vendor[QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON]); - ALOGI("TDLS: Reason : %d ", mTDLSgetStatusRspParams.reason); + ALOGV("TDLS: Reason : %d ", mTDLSgetStatusRspParams.reason); if (!tb_vendor[QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL]) { @@ -234,7 +234,7 @@ int TdlsCommand::handleResponse(WifiEvent &reply) } mTDLSgetStatusRspParams.channel = get_u32(tb_vendor[ QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL]); - ALOGI("TDLS: channel : %d ", mTDLSgetStatusRspParams.channel); + ALOGV("TDLS: channel : %d ", mTDLSgetStatusRspParams.channel); if (!tb_vendor[ QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS]) @@ -247,7 +247,7 @@ int TdlsCommand::handleResponse(WifiEvent &reply) mTDLSgetStatusRspParams.global_operating_class = get_u32(tb_vendor[ QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS]); - ALOGI("TDLS: global_operating_class: %d ", + ALOGV("TDLS: global_operating_class: %d ", mTDLSgetStatusRspParams.global_operating_class); } break; @@ -333,14 +333,14 @@ void TdlsCommand::getCapsRspParams(wifi_tdls_capabilities *caps) !!(mTDLSgetCaps.tdlsSupportedFeatures & IS_PER_MAC_TDLS_SUPPORTED); caps->is_off_channel_tdls_supported = !!(mTDLSgetCaps.tdlsSupportedFeatures & IS_OFF_CHANNEL_TDLS_SUPPORTED); - ALOGI("TDLS capabilities:"); - ALOGI("max_concurrent_tdls_session_numChannel : %d\n", + ALOGV("TDLS capabilities:"); + ALOGV("max_concurrent_tdls_session_numChannel : %d\n", caps->max_concurrent_tdls_session_num); - ALOGI("is_global_tdls_supported : %d\n", + ALOGV("is_global_tdls_supported : %d\n", caps->is_global_tdls_supported); - ALOGI("is_per_mac_tdls_supported : %d\n", + ALOGV("is_per_mac_tdls_supported : %d\n", caps->is_per_mac_tdls_supported); - ALOGI("is_off_channel_tdls_supported : %d \n", + ALOGV("is_off_channel_tdls_supported : %d \n", caps->is_off_channel_tdls_supported); } diff --git a/qcwcn/wifi_hal/wifi_hal.cpp b/qcwcn/wifi_hal/wifi_hal.cpp index 4e90646..99be626 100644 --- a/qcwcn/wifi_hal/wifi_hal.cpp +++ b/qcwcn/wifi_hal/wifi_hal.cpp @@ -247,7 +247,7 @@ static wifi_error wifi_init_user_sock(hal_info *info) /* continue anyway with the default (smaller) buffer */ } else { - ALOGI("nl_socket_set_buffer_size successful for user_sock"); + ALOGV("nl_socket_set_buffer_size successful for user_sock"); } struct nl_cb *cb = nl_socket_get_cb(user_sock); @@ -272,7 +272,7 @@ static wifi_error wifi_init_user_sock(hal_info *info) } info->user_sock = user_sock; - ALOGI("Initiialized diag sock successfully"); + ALOGV("Initiialized diag sock successfully"); return WIFI_SUCCESS; } @@ -563,14 +563,14 @@ wifi_error wifi_initialize(wifi_handle *handle) goto unload; } - ALOGI("Initializing Gscan Event Handlers"); + ALOGV("Initializing Gscan Event Handlers"); ret = initializeGscanHandlers(info); if (ret != WIFI_SUCCESS) { ALOGE("Initializing Gscan Event Handlers Failed"); goto unload; } - ALOGI("Initialized Wifi HAL Successfully; vendor cmd = %d Supported" + ALOGV("Initialized Wifi HAL Successfully; vendor cmd = %d Supported" " features : %x", NL80211_CMD_VENDOR, info->supported_feature_set); unload: @@ -1024,10 +1024,10 @@ wifi_error wifi_get_supported_feature_set(wifi_interface_handle iface, ret = acquire_supported_features(iface, set); if (ret != WIFI_SUCCESS) { *set = info->supported_feature_set; - ALOGI("Supported feature set acquired at initialization : %x", *set); + ALOGV("Supported feature set acquired at initialization : %x", *set); } else { info->supported_feature_set = *set; - ALOGI("Supported feature set acquired : %x", *set); + ALOGV("Supported feature set acquired : %x", *set); } return WIFI_SUCCESS; } @@ -1162,9 +1162,9 @@ wifi_error wifi_start_sending_offloaded_packet(wifi_request_id id, return (wifi_error)ret; } - ALOGI("ip packet length : %u\nIP Packet:", ip_packet_len); + ALOGV("ip packet length : %u\nIP Packet:", ip_packet_len); hexdump(ip_packet, ip_packet_len); - ALOGI("Src Mac Address: " MAC_ADDR_STR "\nDst Mac Address: " MAC_ADDR_STR + ALOGV("Src Mac Address: " MAC_ADDR_STR "\nDst Mac Address: " MAC_ADDR_STR "\nPeriod in msec : %u", MAC_ADDR_ARRAY(src_mac_addr), MAC_ADDR_ARRAY(dst_mac_addr), period_msec); @@ -1409,7 +1409,7 @@ static wifi_error wifi_configure_nd_offload(wifi_interface_handle iface, return (wifi_error)ret; } - ALOGI("ND offload : %s", enable?"Enable":"Disable"); + ALOGV("ND offload : %s", enable?"Enable":"Disable"); /* Add the vendor specific attributes for the NL command. */ nlData = vCommand->attr_start(NL80211_ATTR_VENDOR_DATA); |