|
@@ -2088,7 +2088,7 @@ void
|
|
|
lim_send_auth_mgmt_frame(tpAniSirGlobal mac_ctx,
|
|
|
tpSirMacAuthFrameBody auth_frame,
|
|
|
tSirMacAddr peer_addr,
|
|
|
- uint8_t wep_bit,
|
|
|
+ uint8_t wep_challenge_len,
|
|
|
tpPESession session, bool wait_for_ack)
|
|
|
{
|
|
|
uint8_t *frame, *body;
|
|
@@ -2108,7 +2108,7 @@ lim_send_auth_mgmt_frame(tpAniSirGlobal mac_ctx,
|
|
|
|
|
|
sme_sessionid = session->smeSessionId;
|
|
|
|
|
|
- if (wep_bit == LIM_WEP_IN_FC) {
|
|
|
+ if (wep_challenge_len) {
|
|
|
/*
|
|
|
* Auth frame3 to be sent with encrypted framebody
|
|
|
*
|
|
@@ -2121,7 +2121,7 @@ lim_send_auth_mgmt_frame(tpAniSirGlobal mac_ctx,
|
|
|
pe_debug("Sending encrypted auth frame to " MAC_ADDRESS_STR,
|
|
|
MAC_ADDR_ARRAY(peer_addr));
|
|
|
|
|
|
- body_len = LIM_ENCR_AUTH_BODY_LEN;
|
|
|
+ body_len = wep_challenge_len + LIM_ENCR_AUTH_INFO_LEN;
|
|
|
frame_len = sizeof(tSirMacMgmtHdr) + body_len;
|
|
|
|
|
|
goto alloc_packet;
|
|
@@ -2242,7 +2242,10 @@ alloc_packet:
|
|
|
lim_populate_mac_header(mac_ctx, frame, SIR_MAC_MGMT_FRAME,
|
|
|
SIR_MAC_MGMT_AUTH, peer_addr, session->selfMacAddr);
|
|
|
mac_hdr = (tpSirMacMgmtHdr) frame;
|
|
|
- mac_hdr->fc.wep = wep_bit;
|
|
|
+ if (wep_challenge_len)
|
|
|
+ mac_hdr->fc.wep = LIM_WEP_IN_FC;
|
|
|
+ else
|
|
|
+ mac_hdr->fc.wep = LIM_NO_WEP_IN_FC;
|
|
|
|
|
|
/* Prepare BSSId */
|
|
|
if (LIM_IS_AP_ROLE(session))
|
|
@@ -2253,7 +2256,7 @@ alloc_packet:
|
|
|
/* Prepare Authentication frame body */
|
|
|
body = frame + sizeof(tSirMacMgmtHdr);
|
|
|
|
|
|
- if (wep_bit == LIM_WEP_IN_FC) {
|
|
|
+ if (wep_challenge_len) {
|
|
|
qdf_mem_copy(body, (uint8_t *) auth_frame, body_len);
|
|
|
|
|
|
pe_debug("Sending Auth seq# 3 to " MAC_ADDRESS_STR,
|