From c861095045a8cd34b30ca149f9cdbcefef16f4ec Mon Sep 17 00:00:00 2001 From: Arun Khandavalli Date: Wed, 20 Jul 2016 10:01:07 +0530 Subject: 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 --- CORE/HDD/src/wlan_hdd_cfg80211.c | 13 ++++++++----- 1 file 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; -- cgit v1.2.3