summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Khandavalli <akhandav@qti.qualcomm.com>2016-07-20 10:01:07 +0530
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2016-07-20 15:58:54 +0530
commitc861095045a8cd34b30ca149f9cdbcefef16f4ec (patch)
treefae0baff1a4d5de2d7f7b3546a31db8f6d5a5491
parent9dec1cda6c452f994cd22e502cd74b2910fae36e (diff)
qcacld-2.0: Configure NSoffload request in case of active mode offload
Presently when the active mode offload is enabled, only disable request from the upper layer are sent to the firmware. Enable the nsoffload request is dropped. Changes are made to adhere the request of enable/disable nsoffload when the active mode is enabled. Change-Id: I5d14f3a4b33e961c0b66678258b5ed0fc007b47f CRs-Fixed: 1043855
-rw-r--r--CORE/HDD/src/wlan_hdd_cfg80211.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 1fac6622a739..8674245abe49 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -9859,12 +9859,15 @@ __wlan_hdd_cfg80211_set_ns_offload(struct wiphy *wiphy,
pHddCtx->ns_offload_enable =
nla_get_u8(tb[QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG]);
- /* Disable NS offload if active mode offload is enabled */
- if (!(pHddCtx->ns_offload_enable) &&
- pHddCtx->cfg_ini->active_mode_offload) {
+ /*
+ * If active mode offload is enabled configure the nsoffload
+ * enable/disable request from the upper layer.
+ */
+ if (pHddCtx->cfg_ini->active_mode_offload) {
hddLog(LOG1,
- FL("Disable NS offload : active offload is enabled"));
- hdd_conf_ns_offload(pAdapter, 0);
+ FL("Configure NS offload with command: %d"),
+ pHddCtx->ns_offload_enable);
+ hdd_conf_ns_offload(pAdapter, pHddCtx->ns_offload_enable);
}
return 0;