|
@@ -408,7 +408,7 @@ lim_send_probe_req_mgmt_frame(tpAniSirGlobal mac_ctx,
|
|
qdf_status = cds_packet_alloc((uint16_t) bytes, (void **)&frame,
|
|
qdf_status = cds_packet_alloc((uint16_t) bytes, (void **)&frame,
|
|
(void **)&packet);
|
|
(void **)&packet);
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
- lim_log(mac_ctx, LOGP, FL("Failed to allocate %d bytes for a Probe Request."), bytes);
|
|
|
|
|
|
+ lim_log(mac_ctx, LOGE, FL("Failed to allocate %d bytes for a Probe Request."), bytes);
|
|
return eSIR_MEM_ALLOC_FAILED;
|
|
return eSIR_MEM_ALLOC_FAILED;
|
|
}
|
|
}
|
|
/* Paranoia: */
|
|
/* Paranoia: */
|
|
@@ -484,16 +484,14 @@ static tSirRetStatus lim_get_addn_ie_for_probe_resp(tpAniSirGlobal pMac,
|
|
uint8_t elem_id, elem_len;
|
|
uint8_t elem_id, elem_len;
|
|
|
|
|
|
if (NULL == addIE) {
|
|
if (NULL == addIE) {
|
|
- PELOGE(lim_log(pMac, LOGE, FL(" NULL addIE pointer"));)
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL(" NULL addIE pointer"));
|
|
return eSIR_FAILURE;
|
|
return eSIR_FAILURE;
|
|
}
|
|
}
|
|
|
|
|
|
tempbuf = qdf_mem_malloc(left);
|
|
tempbuf = qdf_mem_malloc(left);
|
|
if (NULL == tempbuf) {
|
|
if (NULL == tempbuf) {
|
|
- PELOGE(lim_log(pMac, LOGE,
|
|
|
|
- FL
|
|
|
|
- ("Unable to allocate memory to store addn IE"));
|
|
|
|
- )
|
|
|
|
|
|
+ lim_log(pMac, LOGE,
|
|
|
|
+ FL("Unable to allocate memory to store addn IE"));
|
|
return eSIR_MEM_ALLOC_FAILED;
|
|
return eSIR_MEM_ALLOC_FAILED;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -618,7 +616,7 @@ lim_send_probe_rsp_mgmt_frame(tpAniSirGlobal mac_ctx,
|
|
sir_status = wlan_cfg_get_int(mac_ctx,
|
|
sir_status = wlan_cfg_get_int(mac_ctx,
|
|
WNI_CFG_BEACON_INTERVAL, &cfg);
|
|
WNI_CFG_BEACON_INTERVAL, &cfg);
|
|
if (eSIR_SUCCESS != sir_status) {
|
|
if (eSIR_SUCCESS != sir_status) {
|
|
- lim_log(mac_ctx, LOGP,
|
|
|
|
|
|
+ lim_log(mac_ctx, LOGE,
|
|
FL("Failed to get WNI_CFG_BEACON_INTERVAL (%d)."),
|
|
FL("Failed to get WNI_CFG_BEACON_INTERVAL (%d)."),
|
|
sir_status);
|
|
sir_status);
|
|
goto err_ret;
|
|
goto err_ret;
|
|
@@ -643,7 +641,7 @@ lim_send_probe_rsp_mgmt_frame(tpAniSirGlobal mac_ctx,
|
|
} else {
|
|
} else {
|
|
if (wlan_cfg_get_int(mac_ctx, (uint16_t) WNI_CFG_WPS_ENABLE,
|
|
if (wlan_cfg_get_int(mac_ctx, (uint16_t) WNI_CFG_WPS_ENABLE,
|
|
&tmp) != eSIR_SUCCESS)
|
|
&tmp) != eSIR_SUCCESS)
|
|
- lim_log(mac_ctx, LOGP, "Failed to cfg get id %d",
|
|
|
|
|
|
+ lim_log(mac_ctx, LOGE, "Failed to cfg get id %d",
|
|
WNI_CFG_WPS_ENABLE);
|
|
WNI_CFG_WPS_ENABLE);
|
|
|
|
|
|
wps_ap = tmp & WNI_CFG_WPS_ENABLE_AP;
|
|
wps_ap = tmp & WNI_CFG_WPS_ENABLE_AP;
|
|
@@ -756,7 +754,7 @@ lim_send_probe_rsp_mgmt_frame(tpAniSirGlobal mac_ctx,
|
|
|
|
|
|
if (eSIR_SUCCESS != lim_get_addn_ie_for_probe_resp(mac_ctx,
|
|
if (eSIR_SUCCESS != lim_get_addn_ie_for_probe_resp(mac_ctx,
|
|
add_ie, &addn_ie_len, preq_p2pie)) {
|
|
add_ie, &addn_ie_len, preq_p2pie)) {
|
|
- lim_log(mac_ctx, LOGP,
|
|
|
|
|
|
+ lim_log(mac_ctx, LOGE,
|
|
FL("Unable to get addn_ie"));
|
|
FL("Unable to get addn_ie"));
|
|
goto err_ret;
|
|
goto err_ret;
|
|
}
|
|
}
|
|
@@ -817,7 +815,7 @@ lim_send_probe_rsp_mgmt_frame(tpAniSirGlobal mac_ctx,
|
|
qdf_status = cds_packet_alloc((uint16_t) bytes, (void **)&frame,
|
|
qdf_status = cds_packet_alloc((uint16_t) bytes, (void **)&frame,
|
|
(void **)&packet);
|
|
(void **)&packet);
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
- lim_log(mac_ctx, LOGP, FL("Probe Response allocation failed"));
|
|
|
|
|
|
+ lim_log(mac_ctx, LOGE, FL("Probe Response allocation failed"));
|
|
goto err_ret;
|
|
goto err_ret;
|
|
}
|
|
}
|
|
/* Paranoia: */
|
|
/* Paranoia: */
|
|
@@ -848,8 +846,8 @@ lim_send_probe_rsp_mgmt_frame(tpAniSirGlobal mac_ctx,
|
|
status);
|
|
status);
|
|
}
|
|
}
|
|
|
|
|
|
- lim_log(mac_ctx, LOG3, FL("Sending Probe Response frame to "));
|
|
|
|
- lim_print_mac_addr(mac_ctx, peer_macaddr, LOG3);
|
|
|
|
|
|
+ lim_log(mac_ctx, LOGD, FL("Sending Probe Response frame to "));
|
|
|
|
+ lim_print_mac_addr(mac_ctx, peer_macaddr, LOGD);
|
|
|
|
|
|
mac_ctx->sys.probeRespond++;
|
|
mac_ctx->sys.probeRespond++;
|
|
|
|
|
|
@@ -982,7 +980,7 @@ lim_send_addts_req_action_frame(tpAniSirGlobal pMac,
|
|
nStatus =
|
|
nStatus =
|
|
dot11f_get_packed_add_ts_request_size(pMac, &AddTSReq, &nPayload);
|
|
dot11f_get_packed_add_ts_request_size(pMac, &AddTSReq, &nPayload);
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
- lim_log(pMac, LOGP,
|
|
|
|
|
|
+ lim_log(pMac, LOGE,
|
|
FL("Failed to calculate the packed size f"
|
|
FL("Failed to calculate the packed size f"
|
|
"or an Add TS Request (0x%08x)."), nStatus);
|
|
"or an Add TS Request (0x%08x)."), nStatus);
|
|
/* We'll fall back on the worst case scenario: */
|
|
/* We'll fall back on the worst case scenario: */
|
|
@@ -1023,7 +1021,7 @@ lim_send_addts_req_action_frame(tpAniSirGlobal pMac,
|
|
dot11f_get_packed_wmm_add_ts_request_size(pMac, &WMMAddTSReq,
|
|
dot11f_get_packed_wmm_add_ts_request_size(pMac, &WMMAddTSReq,
|
|
&nPayload);
|
|
&nPayload);
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
- lim_log(pMac, LOGP,
|
|
|
|
|
|
+ lim_log(pMac, LOGE,
|
|
FL("Failed to calculate the packed size f"
|
|
FL("Failed to calculate the packed size f"
|
|
"or a WMM Add TS Request (0x%08x)."),
|
|
"or a WMM Add TS Request (0x%08x)."),
|
|
nStatus);
|
|
nStatus);
|
|
@@ -1042,7 +1040,7 @@ lim_send_addts_req_action_frame(tpAniSirGlobal pMac,
|
|
qdf_status = cds_packet_alloc((uint16_t) nBytes, (void **)&pFrame,
|
|
qdf_status = cds_packet_alloc((uint16_t) nBytes, (void **)&pFrame,
|
|
(void **)&pPacket);
|
|
(void **)&pPacket);
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
- lim_log(pMac, LOGP, FL("Failed to allocate %d bytes for an Ad"
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("Failed to allocate %d bytes for an Ad"
|
|
"d TS Request."), nBytes);
|
|
"d TS Request."), nBytes);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -1095,9 +1093,8 @@ lim_send_addts_req_action_frame(tpAniSirGlobal pMac,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- PELOG3(lim_log(pMac, LOG3, FL("Sending an Add TS Request frame to "));
|
|
|
|
- lim_print_mac_addr(pMac, peerMacAddr, LOG3);
|
|
|
|
- )
|
|
|
|
|
|
+ lim_log(pMac, LOGD, FL("Sending an Add TS Request frame to "));
|
|
|
|
+ lim_print_mac_addr(pMac, peerMacAddr, LOGD);
|
|
|
|
|
|
if ((SIR_BAND_5_GHZ ==
|
|
if ((SIR_BAND_5_GHZ ==
|
|
lim_get_rf_band(psessionEntry->currentOperChannel))
|
|
lim_get_rf_band(psessionEntry->currentOperChannel))
|
|
@@ -1422,7 +1419,7 @@ lim_send_assoc_rsp_mgmt_frame(tpAniSirGlobal mac_ctx,
|
|
qdf_status = cds_packet_alloc((uint16_t) bytes, (void **)&frame,
|
|
qdf_status = cds_packet_alloc((uint16_t) bytes, (void **)&frame,
|
|
(void **)&packet);
|
|
(void **)&packet);
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
- lim_log(mac_ctx, LOGP, FL("cds_packet_alloc failed."));
|
|
|
|
|
|
+ lim_log(mac_ctx, LOGE, FL("cds_packet_alloc failed."));
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
/* Paranoia: */
|
|
/* Paranoia: */
|
|
@@ -1532,7 +1529,7 @@ lim_send_delts_req_action_frame(tpAniSirGlobal pMac,
|
|
|
|
|
|
nStatus = dot11f_get_packed_del_ts_size(pMac, &DelTS, &nPayload);
|
|
nStatus = dot11f_get_packed_del_ts_size(pMac, &DelTS, &nPayload);
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
- lim_log(pMac, LOGP,
|
|
|
|
|
|
+ lim_log(pMac, LOGE,
|
|
FL("Failed to calculate the packed si"
|
|
FL("Failed to calculate the packed si"
|
|
"ze for a Del TS (0x%08x)."), nStatus);
|
|
"ze for a Del TS (0x%08x)."), nStatus);
|
|
/* We'll fall back on the worst case scenario: */
|
|
/* We'll fall back on the worst case scenario: */
|
|
@@ -1554,7 +1551,7 @@ lim_send_delts_req_action_frame(tpAniSirGlobal pMac,
|
|
nStatus =
|
|
nStatus =
|
|
dot11f_get_packed_wmm_del_ts_size(pMac, &WMMDelTS, &nPayload);
|
|
dot11f_get_packed_wmm_del_ts_size(pMac, &WMMDelTS, &nPayload);
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
- lim_log(pMac, LOGP,
|
|
|
|
|
|
+ lim_log(pMac, LOGE,
|
|
FL("Failed to calculate the packed si"
|
|
FL("Failed to calculate the packed si"
|
|
"ze for a WMM Del TS (0x%08x)."), nStatus);
|
|
"ze for a WMM Del TS (0x%08x)."), nStatus);
|
|
/* We'll fall back on the worst case scenario: */
|
|
/* We'll fall back on the worst case scenario: */
|
|
@@ -1573,7 +1570,7 @@ lim_send_delts_req_action_frame(tpAniSirGlobal pMac,
|
|
cds_packet_alloc((uint16_t) nBytes, (void **)&pFrame,
|
|
cds_packet_alloc((uint16_t) nBytes, (void **)&pFrame,
|
|
(void **)&pPacket);
|
|
(void **)&pPacket);
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
- lim_log(pMac, LOGP, FL("Failed to allocate %d bytes for an Ad"
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("Failed to allocate %d bytes for an Ad"
|
|
"d TS Response."), nBytes);
|
|
"d TS Response."), nBytes);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -1984,7 +1981,7 @@ lim_send_assoc_req_mgmt_frame(tpAniSirGlobal mac_ctx,
|
|
|
|
|
|
status = dot11f_get_packed_assoc_request_size(mac_ctx, frm, &payload);
|
|
status = dot11f_get_packed_assoc_request_size(mac_ctx, frm, &payload);
|
|
if (DOT11F_FAILED(status)) {
|
|
if (DOT11F_FAILED(status)) {
|
|
- lim_log(mac_ctx, LOGP,
|
|
|
|
|
|
+ lim_log(mac_ctx, LOGE,
|
|
FL("Association Request packet size failure(0x%08x)."),
|
|
FL("Association Request packet size failure(0x%08x)."),
|
|
status);
|
|
status);
|
|
/* We'll fall back on the worst case scenario: */
|
|
/* We'll fall back on the worst case scenario: */
|
|
@@ -2000,7 +1997,7 @@ lim_send_assoc_req_mgmt_frame(tpAniSirGlobal mac_ctx,
|
|
qdf_status = cds_packet_alloc((uint16_t) bytes, (void **)&frame,
|
|
qdf_status = cds_packet_alloc((uint16_t) bytes, (void **)&frame,
|
|
(void **)&packet);
|
|
(void **)&packet);
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
- lim_log(mac_ctx, LOGP, FL("Failed to allocate %d bytes."),
|
|
|
|
|
|
+ lim_log(mac_ctx, LOGE, FL("Failed to allocate %d bytes."),
|
|
bytes);
|
|
bytes);
|
|
|
|
|
|
pe_session->limMlmState = pe_session->limPrevMlmState;
|
|
pe_session->limMlmState = pe_session->limPrevMlmState;
|
|
@@ -2190,7 +2187,7 @@ lim_send_auth_mgmt_frame(tpAniSirGlobal mac_ctx,
|
|
* status code, 128 bytes for challenge text and
|
|
* status code, 128 bytes for challenge text and
|
|
* 4 bytes each for IV & ICV.
|
|
* 4 bytes each for IV & ICV.
|
|
*/
|
|
*/
|
|
- lim_log(mac_ctx, LOG1,
|
|
|
|
|
|
+ lim_log(mac_ctx, LOGD,
|
|
FL("Sending encrypted auth frame to " MAC_ADDRESS_STR
|
|
FL("Sending encrypted auth frame to " MAC_ADDRESS_STR
|
|
"- wait_for_ack %d"), MAC_ADDR_ARRAY(peer_addr),
|
|
"- wait_for_ack %d"), MAC_ADDR_ARRAY(peer_addr),
|
|
wait_for_ack);
|
|
wait_for_ack);
|
|
@@ -2201,7 +2198,7 @@ lim_send_auth_mgmt_frame(tpAniSirGlobal mac_ctx,
|
|
goto alloc_packet;
|
|
goto alloc_packet;
|
|
}
|
|
}
|
|
|
|
|
|
- lim_log(mac_ctx, LOG1,
|
|
|
|
|
|
+ lim_log(mac_ctx, LOGD,
|
|
FL("Sending Auth seq# %d status %d (%d) wait_for_ack %d to "
|
|
FL("Sending Auth seq# %d status %d (%d) wait_for_ack %d to "
|
|
MAC_ADDRESS_STR),
|
|
MAC_ADDRESS_STR),
|
|
auth_frame->authTransactionSeqNumber,
|
|
auth_frame->authTransactionSeqNumber,
|
|
@@ -2230,11 +2227,11 @@ lim_send_auth_mgmt_frame(tpAniSirGlobal mac_ctx,
|
|
ft_ies_length = session->ftPEContext.
|
|
ft_ies_length = session->ftPEContext.
|
|
pFTPreAuthReq->ft_ies_length;
|
|
pFTPreAuthReq->ft_ies_length;
|
|
frame_len += ft_ies_length;
|
|
frame_len += ft_ies_length;
|
|
- lim_log(mac_ctx, LOG3,
|
|
|
|
|
|
+ lim_log(mac_ctx, LOGD,
|
|
FL("Auth frame, FTIES length added=%d"),
|
|
FL("Auth frame, FTIES length added=%d"),
|
|
ft_ies_length);
|
|
ft_ies_length);
|
|
} else {
|
|
} else {
|
|
- lim_log(mac_ctx, LOG3,
|
|
|
|
|
|
+ lim_log(mac_ctx, LOGD,
|
|
FL("Auth frame, Does not contain FTIES!!!"));
|
|
FL("Auth frame, Does not contain FTIES!!!"));
|
|
frame_len += (2 + SIR_MDIE_SIZE);
|
|
frame_len += (2 + SIR_MDIE_SIZE);
|
|
}
|
|
}
|
|
@@ -2312,7 +2309,7 @@ alloc_packet:
|
|
(void **)&packet);
|
|
(void **)&packet);
|
|
|
|
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
- lim_log(mac_ctx, LOGP,
|
|
|
|
|
|
+ lim_log(mac_ctx, LOGE,
|
|
FL("call to bufAlloc failed for AUTH frame"));
|
|
FL("call to bufAlloc failed for AUTH frame"));
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -2373,7 +2370,7 @@ alloc_packet:
|
|
session->ftPEContext.
|
|
session->ftPEContext.
|
|
pFTPreAuthReq->ft_ies,
|
|
pFTPreAuthReq->ft_ies,
|
|
ft_ies_length);
|
|
ft_ies_length);
|
|
- lim_log(mac_ctx, LOG2,
|
|
|
|
|
|
+ lim_log(mac_ctx, LOGD,
|
|
FL("Auth1 Frame FTIE is: "));
|
|
FL("Auth1 Frame FTIE is: "));
|
|
QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_PE,
|
|
QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_PE,
|
|
QDF_TRACE_LEVEL_DEBUG,
|
|
QDF_TRACE_LEVEL_DEBUG,
|
|
@@ -2474,10 +2471,8 @@ QDF_STATUS lim_send_deauth_cnf(tpAniSirGlobal pMac)
|
|
psessionEntry = pe_find_session_by_session_id(pMac,
|
|
psessionEntry = pe_find_session_by_session_id(pMac,
|
|
pMlmDeauthReq->sessionId);
|
|
pMlmDeauthReq->sessionId);
|
|
if (psessionEntry == NULL) {
|
|
if (psessionEntry == NULL) {
|
|
- PELOGE(lim_log(pMac, LOGE,
|
|
|
|
- FL
|
|
|
|
- ("session does not exist for given sessionId"));
|
|
|
|
- )
|
|
|
|
|
|
+ lim_log(pMac, LOGE,
|
|
|
|
+ FL("session does not exist for given sessionId"));
|
|
mlmDeauthCnf.resultCode =
|
|
mlmDeauthCnf.resultCode =
|
|
eSIR_SME_INVALID_PARAMETERS;
|
|
eSIR_SME_INVALID_PARAMETERS;
|
|
goto end;
|
|
goto end;
|
|
@@ -2744,7 +2739,7 @@ lim_send_disassoc_mgmt_frame(tpAniSirGlobal pMac,
|
|
|
|
|
|
nStatus = dot11f_get_packed_disassociation_size(pMac, &frm, &nPayload);
|
|
nStatus = dot11f_get_packed_disassociation_size(pMac, &frm, &nPayload);
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
- lim_log(pMac, LOGP, FL("Failed to calculate the packed size f"
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("Failed to calculate the packed size f"
|
|
"or a Disassociation (0x%08x)."),
|
|
"or a Disassociation (0x%08x)."),
|
|
nStatus);
|
|
nStatus);
|
|
/* We'll fall back on the worst case scenario: */
|
|
/* We'll fall back on the worst case scenario: */
|
|
@@ -2760,7 +2755,7 @@ lim_send_disassoc_mgmt_frame(tpAniSirGlobal pMac,
|
|
qdf_status = cds_packet_alloc((uint16_t) nBytes, (void **)&pFrame,
|
|
qdf_status = cds_packet_alloc((uint16_t) nBytes, (void **)&pFrame,
|
|
(void **)&pPacket);
|
|
(void **)&pPacket);
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
- lim_log(pMac, LOGP, FL("Failed to allocate %d bytes for a Dis"
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("Failed to allocate %d bytes for a Dis"
|
|
"association."), nBytes);
|
|
"association."), nBytes);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -2793,7 +2788,7 @@ lim_send_disassoc_mgmt_frame(tpAniSirGlobal pMac,
|
|
"isassociation (0x%08x)."), nStatus);
|
|
"isassociation (0x%08x)."), nStatus);
|
|
}
|
|
}
|
|
|
|
|
|
- lim_log(pMac, LOG1,
|
|
|
|
|
|
+ lim_log(pMac, LOGD,
|
|
FL("***Sessionid %d Sending Disassociation frame with "
|
|
FL("***Sessionid %d Sending Disassociation frame with "
|
|
"reason %u and waitForAck %d to " MAC_ADDRESS_STR " ,From "
|
|
"reason %u and waitForAck %d to " MAC_ADDRESS_STR " ,From "
|
|
MAC_ADDRESS_STR), psessionEntry->peSessionId, nReason,
|
|
MAC_ADDRESS_STR), psessionEntry->peSessionId, nReason,
|
|
@@ -2830,13 +2825,13 @@ lim_send_disassoc_mgmt_frame(tpAniSirGlobal pMac,
|
|
if (tx_timer_change
|
|
if (tx_timer_change
|
|
(&pMac->lim.limTimers.gLimDisassocAckTimer, val, 0)
|
|
(&pMac->lim.limTimers.gLimDisassocAckTimer, val, 0)
|
|
!= TX_SUCCESS) {
|
|
!= TX_SUCCESS) {
|
|
- lim_log(pMac, LOGP,
|
|
|
|
|
|
+ lim_log(pMac, LOGE,
|
|
FL("Unable to change Disassoc ack Timer val"));
|
|
FL("Unable to change Disassoc ack Timer val"));
|
|
return;
|
|
return;
|
|
} else if (TX_SUCCESS !=
|
|
} else if (TX_SUCCESS !=
|
|
tx_timer_activate(&pMac->lim.limTimers.
|
|
tx_timer_activate(&pMac->lim.limTimers.
|
|
gLimDisassocAckTimer)) {
|
|
gLimDisassocAckTimer)) {
|
|
- lim_log(pMac, LOGP,
|
|
|
|
|
|
+ lim_log(pMac, LOGE,
|
|
FL("Unable to activate Disassoc ack Timer"));
|
|
FL("Unable to activate Disassoc ack Timer"));
|
|
lim_deactivate_and_change_timer(pMac,
|
|
lim_deactivate_and_change_timer(pMac,
|
|
eLIM_DISASSOC_ACK_TIMER);
|
|
eLIM_DISASSOC_ACK_TIMER);
|
|
@@ -2923,7 +2918,7 @@ lim_send_deauth_mgmt_frame(tpAniSirGlobal pMac,
|
|
|
|
|
|
nStatus = dot11f_get_packed_de_auth_size(pMac, &frm, &nPayload);
|
|
nStatus = dot11f_get_packed_de_auth_size(pMac, &frm, &nPayload);
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
- lim_log(pMac, LOGP, FL("Failed to calculate the packed size f"
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("Failed to calculate the packed size f"
|
|
"or a De-Authentication (0x%08x)."),
|
|
"or a De-Authentication (0x%08x)."),
|
|
nStatus);
|
|
nStatus);
|
|
/* We'll fall back on the worst case scenario: */
|
|
/* We'll fall back on the worst case scenario: */
|
|
@@ -2939,7 +2934,7 @@ lim_send_deauth_mgmt_frame(tpAniSirGlobal pMac,
|
|
qdf_status = cds_packet_alloc((uint16_t) nBytes, (void **)&pFrame,
|
|
qdf_status = cds_packet_alloc((uint16_t) nBytes, (void **)&pFrame,
|
|
(void **)&pPacket);
|
|
(void **)&pPacket);
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
- lim_log(pMac, LOGP, FL("Failed to allocate %d bytes for a De-"
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("Failed to allocate %d bytes for a De-"
|
|
"Authentication."), nBytes);
|
|
"Authentication."), nBytes);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -2970,7 +2965,7 @@ lim_send_deauth_mgmt_frame(tpAniSirGlobal pMac,
|
|
lim_log(pMac, LOGW, FL("There were warnings while packing a D"
|
|
lim_log(pMac, LOGW, FL("There were warnings while packing a D"
|
|
"e-Authentication (0x%08x)."), nStatus);
|
|
"e-Authentication (0x%08x)."), nStatus);
|
|
}
|
|
}
|
|
- lim_log(pMac, LOG1, FL("***Sessionid %d Sending Deauth frame with "
|
|
|
|
|
|
+ lim_log(pMac, LOGD, FL("***Sessionid %d Sending Deauth frame with "
|
|
"reason %u and waitForAck %d to " MAC_ADDRESS_STR
|
|
"reason %u and waitForAck %d to " MAC_ADDRESS_STR
|
|
" ,From " MAC_ADDRESS_STR),
|
|
" ,From " MAC_ADDRESS_STR),
|
|
psessionEntry->peSessionId, nReason, waitForAck,
|
|
psessionEntry->peSessionId, nReason, waitForAck,
|
|
@@ -3023,13 +3018,13 @@ lim_send_deauth_mgmt_frame(tpAniSirGlobal pMac,
|
|
if (tx_timer_change
|
|
if (tx_timer_change
|
|
(&pMac->lim.limTimers.gLimDeauthAckTimer, val, 0)
|
|
(&pMac->lim.limTimers.gLimDeauthAckTimer, val, 0)
|
|
!= TX_SUCCESS) {
|
|
!= TX_SUCCESS) {
|
|
- lim_log(pMac, LOGP,
|
|
|
|
|
|
+ lim_log(pMac, LOGE,
|
|
FL("Unable to change Deauth ack Timer val"));
|
|
FL("Unable to change Deauth ack Timer val"));
|
|
return;
|
|
return;
|
|
} else if (TX_SUCCESS !=
|
|
} else if (TX_SUCCESS !=
|
|
tx_timer_activate(&pMac->lim.limTimers.
|
|
tx_timer_activate(&pMac->lim.limTimers.
|
|
gLimDeauthAckTimer)) {
|
|
gLimDeauthAckTimer)) {
|
|
- lim_log(pMac, LOGP,
|
|
|
|
|
|
+ lim_log(pMac, LOGE,
|
|
FL("Unable to activate Deauth ack Timer"));
|
|
FL("Unable to activate Deauth ack Timer"));
|
|
lim_deactivate_and_change_timer(pMac,
|
|
lim_deactivate_and_change_timer(pMac,
|
|
eLIM_DEAUTH_ACK_TIMER);
|
|
eLIM_DEAUTH_ACK_TIMER);
|
|
@@ -3132,7 +3127,7 @@ lim_send_meas_report_frame(tpAniSirGlobal pMac,
|
|
|
|
|
|
nStatus = dot11f_get_packed_measurement_report_size(pMac, &frm, &nPayload);
|
|
nStatus = dot11f_get_packed_measurement_report_size(pMac, &frm, &nPayload);
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
- lim_log(pMac, LOGP, FL("Failed to calculate the packed size f"
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("Failed to calculate the packed size f"
|
|
"or a Measurement Report (0x%08x)."),
|
|
"or a Measurement Report (0x%08x)."),
|
|
nStatus);
|
|
nStatus);
|
|
/* We'll fall back on the worst case scenario: */
|
|
/* We'll fall back on the worst case scenario: */
|
|
@@ -3150,7 +3145,7 @@ lim_send_meas_report_frame(tpAniSirGlobal pMac,
|
|
(uint16_t) nBytes, (void **)&pFrame,
|
|
(uint16_t) nBytes, (void **)&pFrame,
|
|
(void **)&pPacket);
|
|
(void **)&pPacket);
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
- lim_log(pMac, LOGP, FL("Failed to allocate %d bytes for a De-"
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("Failed to allocate %d bytes for a De-"
|
|
"Authentication."), nBytes);
|
|
"Authentication."), nBytes);
|
|
return eSIR_FAILURE;
|
|
return eSIR_FAILURE;
|
|
}
|
|
}
|
|
@@ -3237,7 +3232,7 @@ lim_send_tpc_request_frame(tpAniSirGlobal pMac,
|
|
|
|
|
|
nStatus = dot11f_get_packed_tpc_request_size(pMac, &frm, &nPayload);
|
|
nStatus = dot11f_get_packed_tpc_request_size(pMac, &frm, &nPayload);
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
- lim_log(pMac, LOGP, FL("Failed to calculate the packed size f"
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("Failed to calculate the packed size f"
|
|
"or a TPC Request (0x%08x)."), nStatus);
|
|
"or a TPC Request (0x%08x)."), nStatus);
|
|
/* We'll fall back on the worst case scenario: */
|
|
/* We'll fall back on the worst case scenario: */
|
|
nPayload = sizeof(tDot11fTPCRequest);
|
|
nPayload = sizeof(tDot11fTPCRequest);
|
|
@@ -3254,7 +3249,7 @@ lim_send_tpc_request_frame(tpAniSirGlobal pMac,
|
|
(uint16_t) nBytes, (void **)&pFrame,
|
|
(uint16_t) nBytes, (void **)&pFrame,
|
|
(void **)&pPacket);
|
|
(void **)&pPacket);
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
- lim_log(pMac, LOGP, FL("Failed to allocate %d bytes for a TPC"
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("Failed to allocate %d bytes for a TPC"
|
|
" Request."), nBytes);
|
|
" Request."), nBytes);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -3343,7 +3338,7 @@ lim_send_tpc_report_frame(tpAniSirGlobal pMac,
|
|
|
|
|
|
nStatus = dot11f_get_packed_tpc_report_size(pMac, &frm, &nPayload);
|
|
nStatus = dot11f_get_packed_tpc_report_size(pMac, &frm, &nPayload);
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
- lim_log(pMac, LOGP, FL("Failed to calculate the packed size f"
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("Failed to calculate the packed size f"
|
|
"or a TPC Report (0x%08x)."), nStatus);
|
|
"or a TPC Report (0x%08x)."), nStatus);
|
|
/* We'll fall back on the worst case scenario: */
|
|
/* We'll fall back on the worst case scenario: */
|
|
nPayload = sizeof(tDot11fTPCReport);
|
|
nPayload = sizeof(tDot11fTPCReport);
|
|
@@ -3360,7 +3355,7 @@ lim_send_tpc_report_frame(tpAniSirGlobal pMac,
|
|
(uint16_t) nBytes, (void **)&pFrame,
|
|
(uint16_t) nBytes, (void **)&pFrame,
|
|
(void **)&pPacket);
|
|
(void **)&pPacket);
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
- lim_log(pMac, LOGP, FL("Failed to allocate %d bytes for a TPC"
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("Failed to allocate %d bytes for a TPC"
|
|
" Report."), nBytes);
|
|
" Report."), nBytes);
|
|
return eSIR_FAILURE;
|
|
return eSIR_FAILURE;
|
|
}
|
|
}
|
|
@@ -3454,7 +3449,7 @@ lim_send_channel_switch_mgmt_frame(tpAniSirGlobal pMac,
|
|
uint8_t smeSessionId = 0;
|
|
uint8_t smeSessionId = 0;
|
|
|
|
|
|
if (psessionEntry == NULL) {
|
|
if (psessionEntry == NULL) {
|
|
- PELOGE(lim_log(pMac, LOGE, FL("Session entry is NULL!!!"));)
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("Session entry is NULL!!!"));
|
|
return eSIR_FAILURE;
|
|
return eSIR_FAILURE;
|
|
}
|
|
}
|
|
smeSessionId = psessionEntry->smeSessionId;
|
|
smeSessionId = psessionEntry->smeSessionId;
|
|
@@ -3470,7 +3465,7 @@ lim_send_channel_switch_mgmt_frame(tpAniSirGlobal pMac,
|
|
|
|
|
|
nStatus = dot11f_get_packed_channel_switch_size(pMac, &frm, &nPayload);
|
|
nStatus = dot11f_get_packed_channel_switch_size(pMac, &frm, &nPayload);
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
- lim_log(pMac, LOGP, FL("Failed to calculate the packed size f"
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("Failed to calculate the packed size f"
|
|
"or a Channel Switch (0x%08x)."),
|
|
"or a Channel Switch (0x%08x)."),
|
|
nStatus);
|
|
nStatus);
|
|
/* We'll fall back on the worst case scenario: */
|
|
/* We'll fall back on the worst case scenario: */
|
|
@@ -3487,7 +3482,7 @@ lim_send_channel_switch_mgmt_frame(tpAniSirGlobal pMac,
|
|
cds_packet_alloc((uint16_t) nBytes, (void **)&pFrame,
|
|
cds_packet_alloc((uint16_t) nBytes, (void **)&pFrame,
|
|
(void **)&pPacket);
|
|
(void **)&pPacket);
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
- lim_log(pMac, LOGP, FL("Failed to allocate %d bytes for a TPC"
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("Failed to allocate %d bytes for a TPC"
|
|
" Report."), nBytes);
|
|
" Report."), nBytes);
|
|
return eSIR_FAILURE;
|
|
return eSIR_FAILURE;
|
|
}
|
|
}
|
|
@@ -3598,7 +3593,7 @@ lim_send_extended_chan_switch_action_frame(tpAniSirGlobal mac_ctx,
|
|
status = dot11f_get_packed_ext_channel_switch_action_frame_size(mac_ctx,
|
|
status = dot11f_get_packed_ext_channel_switch_action_frame_size(mac_ctx,
|
|
&frm, &n_payload);
|
|
&frm, &n_payload);
|
|
if (DOT11F_FAILED(status)) {
|
|
if (DOT11F_FAILED(status)) {
|
|
- lim_log(mac_ctx, LOGP,
|
|
|
|
|
|
+ lim_log(mac_ctx, LOGE,
|
|
FL("Failed to get packed size for Channel Switch 0x%08x."),
|
|
FL("Failed to get packed size for Channel Switch 0x%08x."),
|
|
status);
|
|
status);
|
|
/* We'll fall back on the worst case scenario*/
|
|
/* We'll fall back on the worst case scenario*/
|
|
@@ -3615,7 +3610,7 @@ lim_send_extended_chan_switch_action_frame(tpAniSirGlobal mac_ctx,
|
|
(void **) &frame, (void **) &packet);
|
|
(void **) &frame, (void **) &packet);
|
|
|
|
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
- lim_log(mac_ctx, LOGP,
|
|
|
|
|
|
+ lim_log(mac_ctx, LOGE,
|
|
FL("Failed to allocate %d bytes for a Ext Channel Switch."),
|
|
FL("Failed to allocate %d bytes for a Ext Channel Switch."),
|
|
num_bytes);
|
|
num_bytes);
|
|
return eSIR_FAILURE;
|
|
return eSIR_FAILURE;
|
|
@@ -3767,7 +3762,7 @@ lim_p2p_oper_chan_change_confirm_action_frame(tpAniSirGlobal mac_ctx,
|
|
status = dot11f_get_packed_p2p_oper_chan_change_confirmSize(mac_ctx,
|
|
status = dot11f_get_packed_p2p_oper_chan_change_confirmSize(mac_ctx,
|
|
&frm, &n_payload);
|
|
&frm, &n_payload);
|
|
if (DOT11F_FAILED(status)) {
|
|
if (DOT11F_FAILED(status)) {
|
|
- lim_log(mac_ctx, LOGP,
|
|
|
|
|
|
+ lim_log(mac_ctx, LOGE,
|
|
FL("Failed to get packed size 0x%08x."),
|
|
FL("Failed to get packed size 0x%08x."),
|
|
status);
|
|
status);
|
|
/* We'll fall back on the worst case scenario*/
|
|
/* We'll fall back on the worst case scenario*/
|
|
@@ -3784,7 +3779,7 @@ lim_p2p_oper_chan_change_confirm_action_frame(tpAniSirGlobal mac_ctx,
|
|
(void **) &frame, (void **) &packet);
|
|
(void **) &frame, (void **) &packet);
|
|
|
|
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
- lim_log(mac_ctx, LOGP,
|
|
|
|
|
|
+ lim_log(mac_ctx, LOGE,
|
|
FL("Failed to allocate %d bytes."),
|
|
FL("Failed to allocate %d bytes."),
|
|
num_bytes);
|
|
num_bytes);
|
|
return eSIR_FAILURE;
|
|
return eSIR_FAILURE;
|
|
@@ -3820,7 +3815,7 @@ lim_p2p_oper_chan_change_confirm_action_frame(tpAniSirGlobal mac_ctx,
|
|
(session_entry->pePersona == QDF_P2P_GO_MODE)) {
|
|
(session_entry->pePersona == QDF_P2P_GO_MODE)) {
|
|
tx_flag |= HAL_USE_BD_RATE2_FOR_MANAGEMENT_FRAME;
|
|
tx_flag |= HAL_USE_BD_RATE2_FOR_MANAGEMENT_FRAME;
|
|
}
|
|
}
|
|
- lim_log(mac_ctx, LOG1, FL("Send frame on channel %d to mac "
|
|
|
|
|
|
+ lim_log(mac_ctx, LOGD, FL("Send frame on channel %d to mac "
|
|
MAC_ADDRESS_STR), session_entry->currentOperChannel,
|
|
MAC_ADDRESS_STR), session_entry->currentOperChannel,
|
|
MAC_ADDR_ARRAY(peer));
|
|
MAC_ADDR_ARRAY(peer));
|
|
|
|
|
|
@@ -3863,7 +3858,7 @@ lim_send_vht_opmode_notification_frame(tpAniSirGlobal pMac,
|
|
uint8_t smeSessionId = 0;
|
|
uint8_t smeSessionId = 0;
|
|
|
|
|
|
if (psessionEntry == NULL) {
|
|
if (psessionEntry == NULL) {
|
|
- PELOGE(lim_log(pMac, LOGE, FL("Session entry is NULL!!!"));)
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("Session entry is NULL!!!"));
|
|
return eSIR_FAILURE;
|
|
return eSIR_FAILURE;
|
|
}
|
|
}
|
|
smeSessionId = psessionEntry->smeSessionId;
|
|
smeSessionId = psessionEntry->smeSessionId;
|
|
@@ -3878,7 +3873,7 @@ lim_send_vht_opmode_notification_frame(tpAniSirGlobal pMac,
|
|
|
|
|
|
nStatus = dot11f_get_packed_operating_mode_size(pMac, &frm, &nPayload);
|
|
nStatus = dot11f_get_packed_operating_mode_size(pMac, &frm, &nPayload);
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
- lim_log(pMac, LOGP, FL("Failed to calculate the packed size f"
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("Failed to calculate the packed size f"
|
|
"or a Operating Mode (0x%08x)."),
|
|
"or a Operating Mode (0x%08x)."),
|
|
nStatus);
|
|
nStatus);
|
|
/* We'll fall back on the worst case scenario: */
|
|
/* We'll fall back on the worst case scenario: */
|
|
@@ -3895,7 +3890,7 @@ lim_send_vht_opmode_notification_frame(tpAniSirGlobal pMac,
|
|
cds_packet_alloc((uint16_t) nBytes, (void **)&pFrame,
|
|
cds_packet_alloc((uint16_t) nBytes, (void **)&pFrame,
|
|
(void **)&pPacket);
|
|
(void **)&pPacket);
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
- lim_log(pMac, LOGP,
|
|
|
|
|
|
+ lim_log(pMac, LOGE,
|
|
FL("Failed to allocate %d bytes for a Operating Mode"
|
|
FL("Failed to allocate %d bytes for a Operating Mode"
|
|
" Report."), nBytes);
|
|
" Report."), nBytes);
|
|
return eSIR_FAILURE;
|
|
return eSIR_FAILURE;
|
|
@@ -4008,7 +4003,7 @@ lim_send_neighbor_report_request_frame(tpAniSirGlobal pMac,
|
|
nStatus =
|
|
nStatus =
|
|
dot11f_get_packed_neighbor_report_request_size(pMac, &frm, &nPayload);
|
|
dot11f_get_packed_neighbor_report_request_size(pMac, &frm, &nPayload);
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
- lim_log(pMac, LOGP, FL("Failed to calculate the packed size f"
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("Failed to calculate the packed size f"
|
|
"or a Neighbor Report Request(0x%08x)."),
|
|
"or a Neighbor Report Request(0x%08x)."),
|
|
nStatus);
|
|
nStatus);
|
|
/* We'll fall back on the worst case scenario: */
|
|
/* We'll fall back on the worst case scenario: */
|
|
@@ -4025,7 +4020,7 @@ lim_send_neighbor_report_request_frame(tpAniSirGlobal pMac,
|
|
cds_packet_alloc((uint16_t) nBytes, (void **)&pFrame,
|
|
cds_packet_alloc((uint16_t) nBytes, (void **)&pFrame,
|
|
(void **)&pPacket);
|
|
(void **)&pPacket);
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
- lim_log(pMac, LOGP,
|
|
|
|
|
|
+ lim_log(pMac, LOGE,
|
|
FL("Failed to allocate %d bytes for a Neighbor "
|
|
FL("Failed to allocate %d bytes for a Neighbor "
|
|
"Report Request."), nBytes);
|
|
"Report Request."), nBytes);
|
|
return eSIR_FAILURE;
|
|
return eSIR_FAILURE;
|
|
@@ -4068,8 +4063,8 @@ lim_send_neighbor_report_request_frame(tpAniSirGlobal pMac,
|
|
"Request (0x%08x)."), nStatus);
|
|
"Request (0x%08x)."), nStatus);
|
|
}
|
|
}
|
|
|
|
|
|
- lim_log(pMac, LOGW, FL("Sending a Neighbor Report Request to "));
|
|
|
|
- lim_print_mac_addr(pMac, peer, LOGW);
|
|
|
|
|
|
+ lim_log(pMac, LOGD, FL("Sending a Neighbor Report Request to "));
|
|
|
|
+ lim_print_mac_addr(pMac, peer, LOGD);
|
|
|
|
|
|
if ((SIR_BAND_5_GHZ == lim_get_rf_band(psessionEntry->currentOperChannel))
|
|
if ((SIR_BAND_5_GHZ == lim_get_rf_band(psessionEntry->currentOperChannel))
|
|
|| (psessionEntry->pePersona == QDF_P2P_CLIENT_MODE) ||
|
|
|| (psessionEntry->pePersona == QDF_P2P_CLIENT_MODE) ||
|
|
@@ -4090,10 +4085,8 @@ lim_send_neighbor_report_request_frame(tpAniSirGlobal pMac,
|
|
MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
|
|
MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
|
|
psessionEntry->peSessionId, qdf_status));
|
|
psessionEntry->peSessionId, qdf_status));
|
|
if (QDF_STATUS_SUCCESS != qdf_status) {
|
|
if (QDF_STATUS_SUCCESS != qdf_status) {
|
|
- PELOGE(lim_log
|
|
|
|
- (pMac, LOGE, FL("wma_tx_frame FAILED! Status [%d]"),
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("wma_tx_frame FAILED! Status [%d]"),
|
|
qdf_status);
|
|
qdf_status);
|
|
- )
|
|
|
|
statusCode = eSIR_FAILURE;
|
|
statusCode = eSIR_FAILURE;
|
|
/* Pkt will be freed up by the callback */
|
|
/* Pkt will be freed up by the callback */
|
|
return statusCode;
|
|
return statusCode;
|
|
@@ -4169,7 +4162,7 @@ lim_send_link_report_action_frame(tpAniSirGlobal pMac,
|
|
nStatus =
|
|
nStatus =
|
|
dot11f_get_packed_link_measurement_report_size(pMac, &frm, &nPayload);
|
|
dot11f_get_packed_link_measurement_report_size(pMac, &frm, &nPayload);
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
- lim_log(pMac, LOGP, FL("Failed to calculate the packed size f"
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("Failed to calculate the packed size f"
|
|
"or a Link Report (0x%08x)."), nStatus);
|
|
"or a Link Report (0x%08x)."), nStatus);
|
|
/* We'll fall back on the worst case scenario: */
|
|
/* We'll fall back on the worst case scenario: */
|
|
nPayload = sizeof(tDot11fLinkMeasurementReport);
|
|
nPayload = sizeof(tDot11fLinkMeasurementReport);
|
|
@@ -4185,7 +4178,7 @@ lim_send_link_report_action_frame(tpAniSirGlobal pMac,
|
|
cds_packet_alloc((uint16_t) nBytes, (void **)&pFrame,
|
|
cds_packet_alloc((uint16_t) nBytes, (void **)&pFrame,
|
|
(void **)&pPacket);
|
|
(void **)&pPacket);
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
- lim_log(pMac, LOGP, FL("Failed to allocate %d bytes for a Link "
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("Failed to allocate %d bytes for a Link "
|
|
"Report."), nBytes);
|
|
"Report."), nBytes);
|
|
return eSIR_FAILURE;
|
|
return eSIR_FAILURE;
|
|
}
|
|
}
|
|
@@ -4247,10 +4240,8 @@ lim_send_link_report_action_frame(tpAniSirGlobal pMac,
|
|
MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
|
|
MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
|
|
psessionEntry->peSessionId, qdf_status));
|
|
psessionEntry->peSessionId, qdf_status));
|
|
if (QDF_STATUS_SUCCESS != qdf_status) {
|
|
if (QDF_STATUS_SUCCESS != qdf_status) {
|
|
- PELOGE(lim_log
|
|
|
|
- (pMac, LOGE, FL("wma_tx_frame FAILED! Status [%d]"),
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("wma_tx_frame FAILED! Status [%d]"),
|
|
qdf_status);
|
|
qdf_status);
|
|
- )
|
|
|
|
statusCode = eSIR_FAILURE;
|
|
statusCode = eSIR_FAILURE;
|
|
/* Pkt will be freed up by the callback */
|
|
/* Pkt will be freed up by the callback */
|
|
return statusCode;
|
|
return statusCode;
|
|
@@ -4360,7 +4351,7 @@ lim_send_radio_measure_report_action_frame(tpAniSirGlobal pMac,
|
|
nStatus =
|
|
nStatus =
|
|
dot11f_get_packed_radio_measurement_report_size(pMac, frm, &nPayload);
|
|
dot11f_get_packed_radio_measurement_report_size(pMac, frm, &nPayload);
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
- lim_log(pMac, LOGP, FL("Failed to calculate the packed size f"
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("Failed to calculate the packed size f"
|
|
"or a Radio Measure Report (0x%08x)."),
|
|
"or a Radio Measure Report (0x%08x)."),
|
|
nStatus);
|
|
nStatus);
|
|
/* We'll fall back on the worst case scenario: */
|
|
/* We'll fall back on the worst case scenario: */
|
|
@@ -4379,7 +4370,7 @@ lim_send_radio_measure_report_action_frame(tpAniSirGlobal pMac,
|
|
cds_packet_alloc((uint16_t) nBytes, (void **)&pFrame,
|
|
cds_packet_alloc((uint16_t) nBytes, (void **)&pFrame,
|
|
(void **)&pPacket);
|
|
(void **)&pPacket);
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
- lim_log(pMac, LOGP,
|
|
|
|
|
|
+ lim_log(pMac, LOGE,
|
|
FL("Failed to allocate %d bytes for a Radio Measure "
|
|
FL("Failed to allocate %d bytes for a Radio Measure "
|
|
"Report."), nBytes);
|
|
"Report."), nBytes);
|
|
qdf_mem_free(frm);
|
|
qdf_mem_free(frm);
|
|
@@ -4444,10 +4435,8 @@ lim_send_radio_measure_report_action_frame(tpAniSirGlobal pMac,
|
|
MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
|
|
MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
|
|
psessionEntry->peSessionId, qdf_status));
|
|
psessionEntry->peSessionId, qdf_status));
|
|
if (QDF_STATUS_SUCCESS != qdf_status) {
|
|
if (QDF_STATUS_SUCCESS != qdf_status) {
|
|
- PELOGE(lim_log
|
|
|
|
- (pMac, LOGE, FL("wma_tx_frame FAILED! Status [%d]"),
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("wma_tx_frame FAILED! Status [%d]"),
|
|
qdf_status);
|
|
qdf_status);
|
|
- )
|
|
|
|
statusCode = eSIR_FAILURE;
|
|
statusCode = eSIR_FAILURE;
|
|
/* Pkt will be freed up by the callback */
|
|
/* Pkt will be freed up by the callback */
|
|
qdf_mem_free(frm);
|
|
qdf_mem_free(frm);
|
|
@@ -4508,7 +4497,7 @@ tSirRetStatus lim_send_sa_query_request_frame(tpAniSirGlobal pMac, uint8_t *tran
|
|
|
|
|
|
nStatus = dot11f_get_packed_sa_query_req_size(pMac, &frm, &nPayload);
|
|
nStatus = dot11f_get_packed_sa_query_req_size(pMac, &frm, &nPayload);
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
- lim_log(pMac, LOGP, FL("Failed to calculate the packed size "
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("Failed to calculate the packed size "
|
|
"for an SA Query Request (0x%08x)."),
|
|
"for an SA Query Request (0x%08x)."),
|
|
nStatus);
|
|
nStatus);
|
|
/* We'll fall back on the worst case scenario: */
|
|
/* We'll fall back on the worst case scenario: */
|
|
@@ -4523,7 +4512,7 @@ tSirRetStatus lim_send_sa_query_request_frame(tpAniSirGlobal pMac, uint8_t *tran
|
|
qdf_status =
|
|
qdf_status =
|
|
cds_packet_alloc(nBytes, (void **)&pFrame, (void **)&pPacket);
|
|
cds_packet_alloc(nBytes, (void **)&pFrame, (void **)&pPacket);
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
- lim_log(pMac, LOGP,
|
|
|
|
|
|
+ lim_log(pMac, LOGE,
|
|
FL("Failed to allocate %d bytes for a SA Query Request "
|
|
FL("Failed to allocate %d bytes for a SA Query Request "
|
|
"action frame"), nBytes);
|
|
"action frame"), nBytes);
|
|
return eSIR_FAILURE;
|
|
return eSIR_FAILURE;
|
|
@@ -4587,10 +4576,8 @@ tSirRetStatus lim_send_sa_query_request_frame(tpAniSirGlobal pMac, uint8_t *tran
|
|
7, lim_tx_complete, pFrame, txFlag,
|
|
7, lim_tx_complete, pFrame, txFlag,
|
|
smeSessionId, 0);
|
|
smeSessionId, 0);
|
|
if (QDF_STATUS_SUCCESS != qdf_status) {
|
|
if (QDF_STATUS_SUCCESS != qdf_status) {
|
|
- PELOGE(lim_log
|
|
|
|
- (pMac, LOGE, FL("wma_tx_frame FAILED! Status [%d]"),
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("wma_tx_frame FAILED! Status [%d]"),
|
|
qdf_status);
|
|
qdf_status);
|
|
- )
|
|
|
|
nSirStatus = eSIR_FAILURE;
|
|
nSirStatus = eSIR_FAILURE;
|
|
/* Pkt will be freed up by the callback */
|
|
/* Pkt will be freed up by the callback */
|
|
return nSirStatus;
|
|
return nSirStatus;
|
|
@@ -4650,7 +4637,7 @@ tSirRetStatus lim_send_sa_query_response_frame(tpAniSirGlobal pMac,
|
|
|
|
|
|
nStatus = dot11f_get_packed_sa_query_rsp_size(pMac, &frm, &nPayload);
|
|
nStatus = dot11f_get_packed_sa_query_rsp_size(pMac, &frm, &nPayload);
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
if (DOT11F_FAILED(nStatus)) {
|
|
- lim_log(pMac, LOGP, FL("Failed to calculate the packed size f"
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("Failed to calculate the packed size f"
|
|
"or a SA Query Response (0x%08x)."),
|
|
"or a SA Query Response (0x%08x)."),
|
|
nStatus);
|
|
nStatus);
|
|
/* We'll fall back on the worst case scenario: */
|
|
/* We'll fall back on the worst case scenario: */
|
|
@@ -4665,7 +4652,7 @@ tSirRetStatus lim_send_sa_query_response_frame(tpAniSirGlobal pMac,
|
|
qdf_status =
|
|
qdf_status =
|
|
cds_packet_alloc(nBytes, (void **)&pFrame, (void **)&pPacket);
|
|
cds_packet_alloc(nBytes, (void **)&pFrame, (void **)&pPacket);
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
- lim_log(pMac, LOGP,
|
|
|
|
|
|
+ lim_log(pMac, LOGE,
|
|
FL("Failed to allocate %d bytes for a SA query response"
|
|
FL("Failed to allocate %d bytes for a SA query response"
|
|
" action frame"), nBytes);
|
|
" action frame"), nBytes);
|
|
return eSIR_FAILURE;
|
|
return eSIR_FAILURE;
|
|
@@ -4730,10 +4717,8 @@ tSirRetStatus lim_send_sa_query_response_frame(tpAniSirGlobal pMac,
|
|
MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
|
|
MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
|
|
psessionEntry->peSessionId, qdf_status));
|
|
psessionEntry->peSessionId, qdf_status));
|
|
if (QDF_STATUS_SUCCESS != qdf_status) {
|
|
if (QDF_STATUS_SUCCESS != qdf_status) {
|
|
- PELOGE(lim_log
|
|
|
|
- (pMac, LOGE, FL("wma_tx_frame FAILED! Status [%d]"),
|
|
|
|
|
|
+ lim_log(pMac, LOGE, FL("wma_tx_frame FAILED! Status [%d]"),
|
|
qdf_status);
|
|
qdf_status);
|
|
- )
|
|
|
|
nSirStatus = eSIR_FAILURE;
|
|
nSirStatus = eSIR_FAILURE;
|
|
/* Pkt will be freed up by the callback */
|
|
/* Pkt will be freed up by the callback */
|
|
return nSirStatus;
|
|
return nSirStatus;
|