Browse Source

qcacld-3.0: Fix unknown symbol lim_process_sme_del_all_tdls_peers

lim_process_sme_del_all_tdls_peers is defined only when FEATURE_WLAN_TDLS
is enabled, but declared always. There is unknown symbol error when insmod
wlan.ko without this feature. Only declare/define when FEATURE_WLAN_TDLS
is defined to resolve this issue.

Change-Id: I817e5cc2bb22a4242f42c7398cbd00d01ff0a64b
CRs-Fixed: 2034861
Yingying Tang 8 years ago
parent
commit
d491e18b0a
1 changed files with 11 additions and 0 deletions
  1. 11 0
      core/mac/src/pe/lim/lim_types.h

+ 11 - 0
core/mac/src/pe/lim/lim_types.h

@@ -927,8 +927,19 @@ int lim_process_remain_on_chnl_req(tpAniSirGlobal pMac, uint32_t *pMsg);
 void lim_remain_on_chn_rsp(tpAniSirGlobal pMac, QDF_STATUS status, uint32_t *data);
 void lim_send_sme_disassoc_deauth_ntf(tpAniSirGlobal mac_ctx,
 				QDF_STATUS status, uint32_t *ctx);
+
+#ifdef FEATURE_WLAN_TDLS
 tSirRetStatus lim_process_sme_del_all_tdls_peers(tpAniSirGlobal p_mac,
 						 uint32_t *msg_buf);
+#else
+static inline
+tSirRetStatus lim_process_sme_del_all_tdls_peers(tpAniSirGlobal p_mac,
+						 uint32_t *msg_buf)
+{
+	return eSIR_SUCCESS;
+}
+#endif
+
 /* / Bit value data structure */
 typedef enum sHalBitVal         /* For Bit operations */
 {