summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYun Park <yunp@qca.qualcomm.com>2015-10-09 23:46:58 -0700
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2015-10-21 12:36:40 +0530
commite3d64955501dfe1d67182972593852c72fdf331d (patch)
tree02bfc9f4265d81b294f8567ae3387c57994683aa
parente20104421f5b50d9852c1874fbbda5eed51c8c8a (diff)
qcacld-2.0: Fix iwpriv ipaucstat causes unexpected behavior
iwpriv ipaucstat with parameter 1 or 3 will also execute QCASAP_SET_ PHYMODE, since the code will not return. This will cause unexpected behavior based on the current device status , and This change fixes this issue. Change-Id: I5ef3044639ad4f32db8c24d917b7b7f2c54d3d51 CRs-Fixed: 927586
-rw-r--r--CORE/HDD/src/wlan_hdd_hostapd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/CORE/HDD/src/wlan_hdd_hostapd.c b/CORE/HDD/src/wlan_hdd_hostapd.c
index f5b7516c60b8..f76e44c9c05b 100644
--- a/CORE/HDD/src/wlan_hdd_hostapd.c
+++ b/CORE/HDD/src/wlan_hdd_hostapd.c
@@ -3297,14 +3297,16 @@ static __iw_softap_setparam(struct net_device *dev,
case QCSAP_IPA_UC_STAT:
{
/* If input value is non-zero get stats */
- if (1 == set_value)
+ if (1 == set_value) {
hdd_ipa_uc_stat_request(pHostapdAdapter, set_value);
- else if (3 == set_value)
+ } else if (3 == set_value) {
hdd_ipa_uc_rt_debug_host_dump(
WLAN_HDD_GET_CTX(pHostapdAdapter));
- else
+ } else {
/* place holder for stats clean up
* Stats clean not implemented yet on firmware and ipa */
+ }
+
return ret;
}
#endif /* IPA_UC_OFFLOAD */