Kaynağa Gözat

qcacld-3.0: Correct the data type of argument used in lim_get_rx_ldpc

Correct the data type of argument used in lim_get_rx_ldpc API.

At present absolute channel number is passed to lim_get_rx_ldpc API and
this API internally try to treat it as channel enum type which creates
stability issue.

CRs-Fixed: 2069959
Change-Id: Iebb6b5b5164e1aa6e6a7c48a5942cd30062aebad
Krunal Soni 8 yıl önce
ebeveyn
işleme
3512f6ba16
1 değiştirilmiş dosya ile 4 ekleme ve 2 silme
  1. 4 2
      core/mac/src/pe/lim/lim_utils.c

+ 4 - 2
core/mac/src/pe/lim/lim_utils.c

@@ -6410,11 +6410,13 @@ static QDF_STATUS lim_send_ie(tpAniSirGlobal mac_ctx, uint32_t sme_session_id,
 /**
  * lim_get_rx_ldpc() - gets ldpc setting for given channel(band)
  * @mac_ctx: global mac context
- * @ch: channel for which ldpc setting is required
+ * @ch: channel enum for which ldpc setting is required
+ *      Note: ch param is not absolute channel number rather it is
+ *            channel number enum.
  *
  * Return: true if enabled and false otherwise
  */
-static inline bool lim_get_rx_ldpc(tpAniSirGlobal mac_ctx, uint8_t ch)
+static inline bool lim_get_rx_ldpc(tpAniSirGlobal mac_ctx, enum channel_enum ch)
 {
 	if (mac_ctx->roam.configParam.rx_ldpc_enable &&
 		wma_is_rx_ldpc_supported_for_channel(WLAN_REG_CH_NUM(ch)))