summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMukul Sharma <mukul@qti.qualcomm.com>2016-07-11 16:11:50 +0530
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2016-07-26 14:41:13 +0530
commit212ed5b95433b1c7e6939e256b9cfbfcc70b2154 (patch)
tree3e5e8a3905a8b5c16e4af6dc2faefae3de228f6e
parented07f233319e3890c47bab496bc3b8129809adc0 (diff)
qcacld-2.0: Don't process rmmod once inject crash ioctl received
During time window where crash ioctl is issued but target failure handler is not called yet, Meanwhile if rmmod comes then host allow it to proceed because logp is not yet set. Simultaneously target failure comes and set logp hence rmmod start wlan shutdown instead wlan exit in ath_hif_sdio_remove. To mitigate this problem, ensure host do not honour rmmod after it receives inject crash ioctl. Change-Id: Ia654fe4919deb515a30bab147316ee7e9bbba1df CRs-Fixed: 1039404
-rw-r--r--CORE/HDD/src/wlan_hdd_hostapd.c2
-rw-r--r--CORE/HDD/src/wlan_hdd_wext.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_hostapd.c b/CORE/HDD/src/wlan_hdd_hostapd.c
index 88dc0b8be3a8..96a120d2925d 100644
--- a/CORE/HDD/src/wlan_hdd_hostapd.c
+++ b/CORE/HDD/src/wlan_hdd_hostapd.c
@@ -2627,6 +2627,8 @@ static int __iw_softap_set_two_ints_getnone(struct net_device *dev,
ret = process_wma_set_command_twoargs((int) pAdapter->sessionId,
(int) GEN_PARAM_CRASH_INJECT,
value[1], value[2], GEN_CMD);
+ if (!ret)
+ pHddCtx->isLogpInProgress = true;
break;
#endif
case QCSAP_IOCTL_DUMP_DP_TRACE_LEVEL:
diff --git a/CORE/HDD/src/wlan_hdd_wext.c b/CORE/HDD/src/wlan_hdd_wext.c
index 5a19ab2b4d88..e16f33d2124c 100644
--- a/CORE/HDD/src/wlan_hdd_wext.c
+++ b/CORE/HDD/src/wlan_hdd_wext.c
@@ -11319,6 +11319,9 @@ static int __iw_set_two_ints_getnone(struct net_device *dev,
ret = process_wma_set_command_twoargs((int) pAdapter->sessionId,
(int) GEN_PARAM_CRASH_INJECT,
value[1], value[2], GEN_CMD);
+ if (!ret)
+ hdd_ctx->isLogpInProgress = true;
+
break;
#endif
case WE_SET_MON_MODE_CHAN: