Prechádzať zdrojové kódy

qcacmn: Define new lock to access special peer list

Define new lock to access special peer list and make
a function static.

Change-Id: If2ddfc4ad3384a78c96618f79bebfd9f6192f50c
Varsha Mishra 5 rokov pred
rodič
commit
1530697064
3 zmenil súbory, kde vykonal 3 pridanie a 4 odobranie
  1. 2 2
      dp/wifi3.0/dp_tx.c
  2. 0 2
      dp/wifi3.0/dp_tx.h
  3. 1 0
      dp/wifi3.0/dp_types.h

+ 2 - 2
dp/wifi3.0/dp_tx.c

@@ -303,8 +303,8 @@ dp_tx_desc_release(struct dp_tx_desc_s *tx_desc, uint8_t desc_pool_id)
  * Return: HTT metadata size
  *
  */
-uint8_t dp_tx_prepare_htt_metadata(struct dp_vdev *vdev, qdf_nbuf_t nbuf,
-				   struct dp_tx_msdu_info_s *msdu_info)
+static uint8_t dp_tx_prepare_htt_metadata(struct dp_vdev *vdev, qdf_nbuf_t nbuf,
+					  struct dp_tx_msdu_info_s *msdu_info)
 {
 	uint32_t *meta_data = msdu_info->meta_data;
 	struct htt_tx_msdu_desc_ext2_t *desc_ext =

+ 0 - 2
dp/wifi3.0/dp_tx.h

@@ -333,5 +333,3 @@ static inline void dp_tx_comp_process_exception(struct dp_tx_desc_s *tx_desc)
 }
 /* TODO TX_FEATURE_NOT_YET */
 #endif
-uint8_t dp_tx_prepare_htt_metadata(struct dp_vdev *vdev, qdf_nbuf_t nbuf,
-				   struct dp_tx_msdu_info_s *msdu_info);

+ 1 - 0
dp/wifi3.0/dp_types.h

@@ -1824,6 +1824,7 @@ struct dp_vdev {
 
 	/* dp_peer special list */
 	TAILQ_HEAD(, dp_peer) mpass_peer_list;
+	DP_MUTEX_TYPE mpass_peer_mutex;
 #endif
 };