From 17184269de5aafb7e6962dbca400b29a2afa6e2a Mon Sep 17 00:00:00 2001 From: Krunal Soni Date: Wed, 7 Jun 2017 16:42:38 -0700 Subject: [PATCH] qcacld-3.0: Send failure reassoc response up on receiving reassoc req SAP-DUT should reject reassoc request coming from STA to avoid IOT issue. Change-Id: I9f8080b6882053a24ac1cb16001b2ec7ceb54c12 CRs-Fixed: 2088722 --- core/mac/src/pe/lim/lim_process_assoc_req_frame.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/core/mac/src/pe/lim/lim_process_assoc_req_frame.c b/core/mac/src/pe/lim/lim_process_assoc_req_frame.c index 82f9da0176e7..52d19901c725 100644 --- a/core/mac/src/pe/lim/lim_process_assoc_req_frame.c +++ b/core/mac/src/pe/lim/lim_process_assoc_req_frame.c @@ -1773,6 +1773,20 @@ void lim_process_assoc_req_frame(tpAniSirGlobal mac_ctx, uint8_t *rx_pkt_info, sub_type, GET_LIM_SYSTEM_ROLE(session), MAC_ADDR_ARRAY(hdr->sa)); return; + } else if (!sta_ds->rmfEnabled && (sub_type == LIM_REASSOC)) { + /* + * SAP should send reassoc response with reject code + * to avoid IOT issues. as per the specification SAP + * should do 4-way handshake after reassoc response and + * some STA doesn't like 4way handshake after reassoc + * where some STA does expect 4-way handshake. + */ + lim_send_assoc_rsp_mgmt_frame(mac_ctx, + eSIR_MAC_OUTSIDE_SCOPE_OF_SPEC_STATUS, + sta_ds->assocId, sta_ds->staAddr, + sub_type, sta_ds, session); + pe_err("Rejecting reassoc req from STA"); + return; } else if (!sta_ds->rmfEnabled) { /* * Do this only for non PMF case.