From 8fb17305d1736754fae76c90133bdedef153c676 Mon Sep 17 00:00:00 2001 From: Abhinav Kumar Date: Tue, 26 Nov 2019 16:25:34 +0530 Subject: [PATCH] qcacld-3.0: Make call to cfg80211_ap_stopped() conditional cfg80211_ap_stopped() not supported anymore for kernel 5.4. changes added to protect call to cfg80211_ap_stopped under kernel version compilation flag.This will allow the call to be invoked for MSM kernels which have been patched, but not for any other kernels, including the GKI kernels. Change-Id: I05470469eb82da174e5b9c46f7d19fc77aaca85d CRs-Fixed: 2558981 --- core/hdd/src/wlan_hdd_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index c5a4f5129146..9969b79988ce 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -6898,7 +6898,7 @@ int wlan_hdd_set_mon_chan(struct hdd_adapter *adapter, uint32_t chan, } #endif -#ifdef MSM_PLATFORM +#if defined MSM_PLATFORM && (LINUX_VERSION_CODE <= KERNEL_VERSION(4, 19, 0)) /** * hdd_stop_p2p_go() - call cfg80211 API to stop P2P GO * @adapter: pointer to adapter