diff options
| author | Kabilan Kannan <kabilank@codeaurora.org> | 2018-04-29 21:02:14 -0700 |
|---|---|---|
| committer | Kabilan Kannan <kabilank@codeaurora.org> | 2018-04-29 21:49:13 -0700 |
| commit | d86b317e2418e0b147ef5cfa1beec3fce9adcdfa (patch) | |
| tree | 28d090c3823d7da85317b292c104dd9509a5ba6f | |
| parent | 5d74cd898fd008a86443009f159733b150a51dd7 (diff) | |
qcacld-3.0: Fix TDLS compilation problem
Move the TDLS specific code under TDLS feature flag
to avoid compilation problem in Non TDLS
platform
Change-Id: I0a48899ad074d3a86bb117c13a550445d4ddee58
CRs-Fixed: 2233224
| -rw-r--r-- | core/mac/src/pe/lim/lim_process_probe_rsp_frame.c | 2 | ||||
| -rw-r--r-- | core/mac/src/pe/lim/lim_send_sme_rsp_messages.c | 2 | ||||
| -rw-r--r-- | core/mac/src/pe/sch/sch_beacon_process.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/core/mac/src/pe/lim/lim_process_probe_rsp_frame.c b/core/mac/src/pe/lim/lim_process_probe_rsp_frame.c index 6af096448df4..2640a4f8c028 100644 --- a/core/mac/src/pe/lim/lim_process_probe_rsp_frame.c +++ b/core/mac/src/pe/lim/lim_process_probe_rsp_frame.c @@ -236,12 +236,14 @@ lim_process_probe_rsp_frame(tpAniSirGlobal mac_ctx, uint8_t *rx_Packet_info, if (LIM_IS_STA_ROLE(session_entry) && !wma_is_csa_offload_enabled()) { if (probe_rsp->channelSwitchPresent) { +#ifdef FEATURE_WLAN_TDLS /* * on receiving channel switch announcement * from AP, delete all TDLS peers before * leaving BSS and proceed for channel switch */ session_entry->is_tdls_csa = true; +#endif lim_delete_tdls_peers(mac_ctx, session_entry); lim_update_channel_switch(mac_ctx, diff --git a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c index 85f79eb94da9..70a9bb85c34c 100644 --- a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c +++ b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c @@ -2244,11 +2244,13 @@ void lim_handle_csa_offload_msg(tpAniSirGlobal mac_ctx, tpSirMsgQ msg) goto err; } +#ifdef FEATURE_WLAN_TDLS /* * on receiving channel switch announcement from AP, delete all * TDLS peers before leaving BSS and proceed for channel switch */ session_entry->is_tdls_csa = true; +#endif lim_delete_tdls_peers(mac_ctx, session_entry); lim_ch_switch = &session_entry->gLimChannelSwitch; diff --git a/core/mac/src/pe/sch/sch_beacon_process.c b/core/mac/src/pe/sch/sch_beacon_process.c index dd48100c91af..51b3396fb7b1 100644 --- a/core/mac/src/pe/sch/sch_beacon_process.c +++ b/core/mac/src/pe/sch/sch_beacon_process.c @@ -794,7 +794,9 @@ static void __sch_beacon_process_for_session(tpAniSirGlobal mac_ctx, * for channel switch */ if (LIM_IS_STA_ROLE(session)) { +#ifdef FEATURE_WLAN_TDLS session->is_tdls_csa = true; +#endif lim_delete_tdls_peers(mac_ctx, session); } |
