qcacld-3.0: Replace lim_log() with pe_* log levels in lim_process_probe_rsp_frame.c

Replace lim_log() with pe_* appropriate log levels in lim_process_probe_rsp_frame.c

Change-Id: I14be793c650991f4e82337f683364c68290f34ff
CRs-Fixed: 1093093
This commit is contained in:
Srinivas Girigowda 2017-03-26 15:11:34 -07:00 • committed by Sandeep Puligilla
commit 31130903c5

View file

@ -119,17 +119,15 @@ lim_process_probe_rsp_frame(tpAniSirGlobal mac_ctx, uint8_t *rx_Packet_info,
uint8_t wme_enabled = false;
if (!session_entry) {
lim_log(mac_ctx, LOGE, FL("session_entry is NULL"));
pe_err("session_entry is NULL");
return;
}
lim_log(mac_ctx, LOGD, "SessionId: %d ProbeRsp Frame is received",
pe_debug("SessionId: %d ProbeRsp Frame is received",
session_entry->peSessionId);
probe_rsp = qdf_mem_malloc(sizeof(tSirProbeRespBeacon));
if (NULL == probe_rsp) {
lim_log(mac_ctx, LOGE,
FL
("Unable to allocate memory "));
pe_err("Unable to allocate memory");
return;
}
@ -138,8 +136,7 @@ lim_process_probe_rsp_frame(tpAniSirGlobal mac_ctx, uint8_t *rx_Packet_info,
header = WMA_GET_RX_MAC_HEADER(rx_Packet_info);
lim_log(mac_ctx, LOG2,
FL("Rx Probe Response with length = %d from "MAC_ADDRESS_STR),
pe_debug("Rx Probe Response with length = %d from "MAC_ADDRESS_STR,
WMA_GET_RX_MPDU_LEN(rx_Packet_info),
MAC_ADDR_ARRAY(header->sa));
@ -147,8 +144,7 @@ lim_process_probe_rsp_frame(tpAniSirGlobal mac_ctx, uint8_t *rx_Packet_info,
if (lim_validate_ie_information_in_probe_rsp_frame(mac_ctx,
rx_Packet_info) !=
eSIR_SUCCESS) {
lim_log(mac_ctx, LOG1,
FL("Parse error ProbeResponse, length=%d"), frame_len);
pe_err("Parse error ProbeResponse, length=%d", frame_len);
qdf_mem_free(probe_rsp);
return;
}
@ -165,8 +161,7 @@ lim_process_probe_rsp_frame(tpAniSirGlobal mac_ctx, uint8_t *rx_Packet_info,
if ((sir_convert_probe_frame2_struct(mac_ctx,
body, frame_len, probe_rsp) == eSIR_FAILURE) ||
!probe_rsp->ssidPresent) {
lim_log(mac_ctx, LOG1,
FL("Parse error ProbeResponse, length=%d"), frame_len);
pe_err("Parse error ProbeResponse, length=%d", frame_len);
qdf_mem_free(probe_rsp);
return;
}
@ -198,8 +193,7 @@ lim_process_probe_rsp_frame(tpAniSirGlobal mac_ctx, uint8_t *rx_Packet_info,
session_entry->beacon =
qdf_mem_malloc(session_entry->bcnLen);
if (NULL == session_entry->beacon) {
lim_log(mac_ctx, LOGE,
FL("No Memory to store beacon"));
pe_err("No Memory to store beacon");
} else {
/*
* Store the Beacon/ProbeRsp.
@ -229,8 +223,7 @@ lim_process_probe_rsp_frame(tpAniSirGlobal mac_ctx, uint8_t *rx_Packet_info,
return;
}
if (!LIM_IS_CONNECTION_ACTIVE(session_entry)) {
lim_log(mac_ctx, LOGW,
FL("Recved Probe Resp from AP,AP-alive"));
pe_warn("Recved Probe Resp from AP,AP-alive");
if (probe_rsp->HTInfo.present)
lim_received_hb_handler(mac_ctx,
probe_rsp->HTInfo.primaryChannel,
@ -272,18 +265,15 @@ lim_process_probe_rsp_frame(tpAniSirGlobal mac_ctx, uint8_t *rx_Packet_info,
&session_entry->dph.dphHashTable);
limGetQosMode(session_entry, &qos_enabled);
limGetWmeMode(session_entry, &wme_enabled);
lim_log(mac_ctx, LOG2,
FL("wmeEdcaPresent: %d wme_enabled: %d"),
probe_rsp->wmeEdcaPresent, wme_enabled);
lim_log(mac_ctx, LOG2,
FL("edcaPresent: %d, qos_enabled: %d"),
probe_rsp->edcaPresent, qos_enabled);
lim_log(mac_ctx, LOG2,
FL("edcaParams.qosInfo.count: %d"),
probe_rsp->edcaParams.qosInfo.count);
lim_log(mac_ctx, LOG2,
FL("schObject.gLimEdcaParamSetCount: %d"),
pe_debug("wmeEdcaPresent: %d wme_enabled: %d"
"edcaPresent: %d, qos_enabled: %d"
"edcaParams.qosInfo.count: %d"
"schObject.gLimEdcaParamSetCount: %d",
probe_rsp->wmeEdcaPresent, wme_enabled,
probe_rsp->edcaPresent, qos_enabled,
probe_rsp->edcaParams.qosInfo.count,
session_entry->gLimEdcaParamSetCount);
if (((probe_rsp->wmeEdcaPresent && wme_enabled) ||
(probe_rsp->edcaPresent && qos_enabled)) &&
(probe_rsp->edcaParams.qosInfo.count !=
@ -291,8 +281,7 @@ lim_process_probe_rsp_frame(tpAniSirGlobal mac_ctx, uint8_t *rx_Packet_info,
if (sch_beacon_edca_process(mac_ctx,
&probe_rsp->edcaParams,
session_entry) != eSIR_SUCCESS) {
lim_log(mac_ctx, LOGE,
FL("EDCA param process error"));
pe_err("EDCA param process error");
} else if (sta_ds != NULL) {
/*
* If needed, downgrade the
@ -307,13 +296,11 @@ lim_process_probe_rsp_frame(tpAniSirGlobal mac_ctx, uint8_t *rx_Packet_info,
gLimEdcaParamsActive,
sta_ds->bssId);
} else {
lim_log(mac_ctx, LOGE,
FL("SelfEntry missing in Hash"));
pe_err("SelfEntry missing in Hash");
}
}
if (session_entry->fWaitForProbeRsp == true) {
lim_log(mac_ctx, LOGW,
FL("Check probe resp for caps change"));
pe_warn("Check probe resp for caps change");
lim_detect_change_in_ap_capabilities(
mac_ctx, probe_rsp, session_entry);
}
@ -350,8 +337,7 @@ lim_process_probe_rsp_frame_no_session(tpAniSirGlobal mac_ctx,
probe_rsp = qdf_mem_malloc(sizeof(tSirProbeRespBeacon));
if (NULL == probe_rsp) {
lim_log(mac_ctx, LOGE,
FL("Unable to allocate memory"));
pe_err("Unable to allocate memory");
return;
}
@ -360,8 +346,7 @@ lim_process_probe_rsp_frame_no_session(tpAniSirGlobal mac_ctx,
header = WMA_GET_RX_MAC_HEADER(rx_packet_info);
lim_log(mac_ctx, LOG2,
FL("Received Probe Response frame with length=%d from "),
pe_debug("Received Probe Response frame with length=%d from",
WMA_GET_RX_MPDU_LEN(rx_packet_info));
lim_print_mac_addr(mac_ctx, header->sa, LOG2);
@ -369,16 +354,14 @@ lim_process_probe_rsp_frame_no_session(tpAniSirGlobal mac_ctx,
if (lim_validate_ie_information_in_probe_rsp_frame(mac_ctx,
rx_packet_info) !=
eSIR_SUCCESS) {
lim_log(mac_ctx, LOG1,
FL("Parse error ProbeResponse, length=%d"), frame_len);
pe_err("Parse error ProbeResponse, length=%d", frame_len);
qdf_mem_free(probe_rsp);
return;
}
frame_len = WMA_GET_RX_PAYLOAD_LEN(rx_packet_info);
lim_log(mac_ctx, LOGD,
FL("Probe Resp Frame Received: BSSID "
MAC_ADDRESS_STR " (RSSI %d)"),
pe_debug("Probe Resp Frame Received: BSSID "
MAC_ADDRESS_STR " (RSSI %d)",
MAC_ADDR_ARRAY(header->bssId),
(uint) abs((int8_t)WMA_GET_RX_RSSI_NORMALIZED(
rx_packet_info)));
@ -388,14 +371,13 @@ lim_process_probe_rsp_frame_no_session(tpAniSirGlobal mac_ctx,
body = WMA_GET_RX_MPDU_DATA(rx_packet_info);
if (sir_convert_probe_frame2_struct(mac_ctx, body, frame_len,
probe_rsp) == eSIR_FAILURE) {
lim_log(mac_ctx, LOG1,
FL("Parse error ProbeResponse, length=%d\n"),
pe_err("Parse error ProbeResponse, length=%d",
frame_len);
qdf_mem_free(probe_rsp);
return;
}
lim_log(mac_ctx, LOG2, FL("Save this probe rsp in LFR cache"));
pe_debug("Save this probe rsp in LFR cache");
lim_check_and_add_bss_description(mac_ctx, probe_rsp,
rx_packet_info, false, true);
qdf_mem_free(probe_rsp);