[7885] wlbt : Handle APF in HAL
authorHimani Gupta <himani.g2@samsung.com>
Wed, 17 Jan 2018 11:04:25 +0000 (16:34 +0530)
committerTarun Karela <t.karela@samsung.com>
Mon, 4 Jun 2018 09:40:47 +0000 (10:40 +0100)
Implementation of APF in HAl to pass vts.

SCSC-Bug-Id: SSB-36057
Signed-off-by: Himani Gupta <himani.g2@samsung.com>
Change-Id: Ia9330acd1f7e46fe244b24865e6cd8abea090812

wifi_hal.cpp

index 2c9b2ec86da2e90315b89ca49ce0a8f8e35f9c88..1c3564a47e482763ba537235696d045f8af0f1c0 100755 (executable)
@@ -131,6 +131,7 @@ wifi_error init_wifi_vendor_hal_func_table(wifi_hal_fn *fn)
     fn->wifi_set_country_code = wifi_set_country_code;
     fn->wifi_configure_roaming = wifi_configure_roaming;
     fn->wifi_configure_nd_offload = wifi_configure_nd_offload;
+    fn->wifi_get_packet_filter_capabilities = wifi_get_packet_filter_capabilities;
 
     return WIFI_SUCCESS;
 }
@@ -974,7 +975,7 @@ wifi_error wifi_set_country_code(wifi_interface_handle handle, const char *count
 }
 
 wifi_error wifi_configure_nd_offload(wifi_interface_handle handle, u8 enable)
-{ 
+{
        SetNdoffloadCommand command(handle, enable);
        int ret = command.requestResponse();
        if (ret != WIFI_SUCCESS) {
@@ -986,3 +987,17 @@ wifi_error wifi_configure_nd_offload(wifi_interface_handle handle, u8 enable)
        return (wifi_error)ret;
 }
 
+wifi_error wifi_get_packet_filter_capabilities(wifi_interface_handle handle,
+                                                      u32 *version, u32 *max_len)
+{
+       /*Return success to pass VTS test.*/
+       ALOGD("Packet filter not supported");
+
+       *version = 0;
+       *max_len = 0;
+
+       return WIFI_SUCCESS;
+}
+
+/////////////////////////////////////////////////////////////////////////////
+