diff --git a/core/mac/src/pe/lim/lim_send_management_frames.c b/core/mac/src/pe/lim/lim_send_management_frames.c index 13e5edc66d2e..158cdf9d5ed4 100644 --- a/core/mac/src/pe/lim/lim_send_management_frames.c +++ b/core/mac/src/pe/lim/lim_send_management_frames.c @@ -88,37 +88,6 @@ static void lim_add_mgmt_seq_num(struct mac_context *mac, tpSirMacMgmtHdr pMacHd ((mac->mgmtSeqNum & HIGH_SEQ_NUM_MASK) >> HIGH_SEQ_NUM_OFFSET); } -/** - * - * \brief This function is called before sending a p2p action frame - * inorder to add sequence numbers to action packets - * - * \param mac Pointer to Global MAC structure - * - * \param pBD Pointer to the frame buffer that needs to be populate - * - * The pMacHdr argument points to the MAC management header. The - * sequence number stored in the mac structure will be incremented - * and updated to the MAC management header. The start sequence - * number is WLAN_HOST_SEQ_NUM_MIN and the end value is - * WLAN_HOST_SEQ_NUM_MAX. After reaching the MAX value, the sequence - * number will roll over. - * - */ -void lim_populate_p2p_mac_header(struct mac_context *mac, uint8_t *pBD) -{ - tpSirMacMgmtHdr pMacHdr; - - /* / Prepare MAC management header */ - pMacHdr = (tpSirMacMgmtHdr) (pBD); - - /* Prepare sequence number */ - lim_add_mgmt_seq_num(mac, pMacHdr); - pe_debug("seqNumLo=%d, seqNumHi=%d, mgmtSeqNum=%d", - pMacHdr->seqControl.seqNumLo, - pMacHdr->seqControl.seqNumHi, mac->mgmtSeqNum); -} - /** * lim_populate_mac_header() - Fill in 802.11 header of frame * diff --git a/core/mac/src/pe/lim/lim_types.h b/core/mac/src/pe/lim/lim_types.h index c6e93435bdda..ad4b31bc1241 100644 --- a/core/mac/src/pe/lim/lim_types.h +++ b/core/mac/src/pe/lim/lim_types.h @@ -520,7 +520,6 @@ void lim_perform_deauth(struct mac_context *mac_ctx, struct pe_session *pe_sessi void lim_process_action_frame(struct mac_context *, uint8_t *, struct pe_session *); void lim_process_action_frame_no_session(struct mac_context *mac, uint8_t *pRxMetaInfo); -void lim_populate_p2p_mac_header(struct mac_context *, uint8_t *); void lim_populate_mac_header(struct mac_context *, uint8_t *, uint8_t, uint8_t, tSirMacAddr, tSirMacAddr); QDF_STATUS lim_send_probe_req_mgmt_frame(struct mac_context *, tSirMacSSid *,