summaryrefslogtreecommitdiff
path: root/ipacm/src/IPACM_Wlan.cpp
diff options
context:
space:
mode:
authorShihuan Liu <chiaweic@codeaurora.org>2017-10-05 17:54:39 -0700
committerShihuan Liu <chiaweic@codeaurora.org>2017-10-23 11:01:57 -0700
commit14a965364d796d702f4f45ffd7093d88640870ec (patch)
treee71ebdbcfd33e23b4e0a67dedcc3a6306742576c /ipacm/src/IPACM_Wlan.cpp
parent062ad1c13776b8ff37502c74882bb99b22a185d6 (diff)
downloadipacfg-mgr-14a965364d796d702f4f45ffd7093d88640870ec.tar.gz
IPACM: change DL routing rules back to hashable
Change DL routing rules back to hashable routing rules under IPA v4. Acked-by: Shihuan Liu <shihuanl@qti.qualcomm.com> Change-Id: Iadadc7493bf19d03d2c573d3eee495b76a58ff70
Diffstat (limited to 'ipacm/src/IPACM_Wlan.cpp')
-rw-r--r--ipacm/src/IPACM_Wlan.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/ipacm/src/IPACM_Wlan.cpp b/ipacm/src/IPACM_Wlan.cpp
index a594fe5..14fe0b7 100644
--- a/ipacm/src/IPACM_Wlan.cpp
+++ b/ipacm/src/IPACM_Wlan.cpp
@@ -1436,9 +1436,12 @@ int IPACM_Wlan::handle_wlan_client_route_rule(uint8_t *mac_addr, ipa_ip_type ipt
rt_rule_entry->rule.hdr_hdl = get_client_memptr(wlan_client, wlan_index)->hdr_hdl_v4;
rt_rule_entry->rule.attrib.u.v4.dst_addr = get_client_memptr(wlan_client, wlan_index)->v4_addr;
rt_rule_entry->rule.attrib.u.v4.dst_addr_mask = 0xFFFFFFFF;
-#ifdef FEATURE_IPA_V3
- rt_rule_entry->rule.hashable = false;
-#endif
+
+ if(IPACM_Iface::ipacmcfg->GetIPAVer() >= IPA_HW_v4_0)
+ {
+ rt_rule_entry->rule.hashable = true;
+ }
+
if (false == m_routing.AddRoutingRule(rt_rule))
{
IPACMERR("Routing rule addition failed!\n");