summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Xu <pxu@qca.qualcomm.com>2014-09-10 14:55:25 -0700
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-09-11 18:07:46 -0700
commit950fc422d4962cbc874af75f6707a2e1d26c5c8d (patch)
treee86bb7b1957eae91fdceecae90d99bfed5b7ae41
parent148ad5dae35b40a188de55a90ea4f1174e356ff7 (diff)
qca-cld:hdd: Fix compilation issue for non-MDM plateform
Fixed the compilation issue for non-MDM platform as the ACS/OBSS coex feature is only for MDM platform. Change-Id: I46cbb70e9739860980f3e54ddbf40e583910f8b5 CRs-fixed: 714883
-rw-r--r--CORE/HDD/src/wlan_hdd_hostapd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_hostapd.c b/CORE/HDD/src/wlan_hdd_hostapd.c
index 9809fa15dcca..e4de8281f866 100644
--- a/CORE/HDD/src/wlan_hdd_hostapd.c
+++ b/CORE/HDD/src/wlan_hdd_hostapd.c
@@ -725,6 +725,7 @@ static int hdd_stop_p2p_link(hdd_adapter_t *pHostapdAdapter,v_PVOID_t usrDataFor
return (status == VOS_STATUS_SUCCESS) ? 0 : -EBUSY;
}
+#ifdef QCA_HT_2040_COEX
static void hdd_send_channel_switch_evt(hdd_adapter_t *pHostapdAdapter,
tpSap_Event pSapEvent,
v_PVOID_t usrDataForCallback)
@@ -805,6 +806,7 @@ static void hdd_send_channel_switch_evt(hdd_adapter_t *pHostapdAdapter,
cfg80211_ch_switch_notify(dev, &chandef);
}
}
+#endif
VOS_STATUS hdd_hostapd_SAPEventCB( tpSap_Event pSapEvent, v_PVOID_t usrDataForCallback)
@@ -1522,10 +1524,12 @@ VOS_STATUS hdd_hostapd_SAPEventCB( tpSap_Event pSapEvent, v_PVOID_t usrDataForCa
/* Allow suspend for old channel */
hdd_hostapd_channel_allow_suspend(pHostapdAdapter,
pHddApCtx->operatingChannel);
+#ifdef QCA_HT_2040_COEX
/* indicate operating channel change to hostapd */
hdd_send_channel_switch_evt(pHostapdAdapter,
pSapEvent,
usrDataForCallback);
+#endif
return VOS_STATUS_SUCCESS;
#ifdef FEATURE_WLAN_AP_AP_ACS_OPTIMIZE