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

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

Change-Id: I99539fc78b927c0448d18b15d18de433d8da6133
CRs-Fixed: 1093093
This commit is contained in:
Nishank Aggarwal
2017-03-23 16:01:38 +05:30
committed by snandini
parent 6440d744a2
commit 15a3345ef3

View File

@@ -77,16 +77,14 @@ lim_process_beacon_frame(tpAniSirGlobal mac_ctx, uint8_t *rx_pkt_info,
* beacon counter * beacon counter
*/ */
mac_hdr = WMA_GET_RX_MAC_HEADER(rx_pkt_info); mac_hdr = WMA_GET_RX_MAC_HEADER(rx_pkt_info);
lim_log(mac_ctx, LOG2, pe_debug("Received Beacon frame with length: %d from",
FL("Received Beacon frame with length=%d from "),
WMA_GET_RX_MPDU_LEN(rx_pkt_info)); WMA_GET_RX_MPDU_LEN(rx_pkt_info));
lim_print_mac_addr(mac_ctx, mac_hdr->sa, LOG2); lim_print_mac_addr(mac_ctx, mac_hdr->sa, LOG2);
/* Expect Beacon in any state as Scan is independent of LIM state */ /* Expect Beacon in any state as Scan is independent of LIM state */
bcn_ptr = qdf_mem_malloc(sizeof(*bcn_ptr)); bcn_ptr = qdf_mem_malloc(sizeof(*bcn_ptr));
if (NULL == bcn_ptr) { if (NULL == bcn_ptr) {
lim_log(mac_ctx, LOGE, pe_err("Unable to allocate memory");
FL("Unable to allocate memory"));
return; return;
} }
/* Parse received Beacon */ /* Parse received Beacon */
@@ -97,8 +95,7 @@ lim_process_beacon_frame(tpAniSirGlobal mac_ctx, uint8_t *rx_pkt_info,
* Received wrongly formatted/invalid Beacon. * Received wrongly formatted/invalid Beacon.
* Ignore it and move on. * Ignore it and move on.
*/ */
lim_log(mac_ctx, LOGW, pe_warn("Received invalid Beacon in state: %X",
FL("Received invalid Beacon in state %X"),
session->limMlmState); session->limMlmState);
lim_print_mlm_state(mac_ctx, LOGW, lim_print_mlm_state(mac_ctx, LOGW,
session->limMlmState); session->limMlmState);
@@ -146,8 +143,7 @@ lim_process_beacon_frame(tpAniSirGlobal mac_ctx, uint8_t *rx_pkt_info,
session->bcnLen = WMA_GET_RX_PAYLOAD_LEN(rx_pkt_info); session->bcnLen = WMA_GET_RX_PAYLOAD_LEN(rx_pkt_info);
session->beacon = qdf_mem_malloc(session->bcnLen); session->beacon = qdf_mem_malloc(session->bcnLen);
if (NULL == session->beacon) { if (NULL == session->beacon) {
lim_log(mac_ctx, LOGE, pe_err("fail to alloc mem to store bcn");
FL("fail to alloc mem to store bcn"));
} else { } else {
/* /*
* Store the Beacon/ProbeRsp. This is sent to * Store the Beacon/ProbeRsp. This is sent to