Преглед на файлове

qcacld-3.0: Remove lim_populate_p2p_mac_header()

Change I64d0b71853004679ae694bcd6ca7a2f2347adc84 ("qcacld-3.0:
Remove legacy P2P codes in MAC") removed the last client of
lim_populate_p2p_mac_header(). Since this function is now
obsolete, remove it.

Change-Id: I3adb55dcf3eb3b14c6f7d6a82e686f13c3d955a1
CRs-Fixed: 2371092
Jeff Johnson преди 6 години
родител
ревизия
dfa0356bc4
променени са 2 файла, в които са добавени 0 реда и са изтрити 32 реда
  1. 0 31
      core/mac/src/pe/lim/lim_send_management_frames.c
  2. 0 1
      core/mac/src/pe/lim/lim_types.h

+ 0 - 31
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
  *

+ 0 - 1
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 *,