wlbt: Fix for nl attribute index match for Batch-2 commands.
authorMohit Ghuley <mohit.ghuley@samsung.com>
Wed, 12 Aug 2020 20:19:05 +0000 (01:49 +0530)
committerYoungsoo Kim <youngss.kim@samsung.com>
Mon, 31 Aug 2020 04:37:38 +0000 (13:37 +0900)
Changes are done to match index of nl attribute
in scsc driver and wifi-hal.

SCSC-Bug-Id: HOST-13256
Signed-off-by: Mohit Ghuley <mohit.ghuley@samsung.com>
Change-Id: I75aeb366f4d4447ed4a4ccdbe53902d0fd2c2761

gscan.cpp
rtt.cpp
wifi_hal.cpp

index e3227e1b47a601210676d4d23b0aafb6b06406bd..efd7cac7d7dda4d87b6a16a10f8e1d92964f1a47 100755 (executable)
--- a/gscan.cpp
+++ b/gscan.cpp
@@ -25,7 +25,7 @@
 #include "cpp_bindings.h"
 
 typedef enum {
-    EPNO_ATTRIBUTE_MINIMUM_5G_RSSI,
+    EPNO_ATTRIBUTE_MINIMUM_5G_RSSI = WIFI_HAL_ATTR_START,
     EPNO_ATTRIBUTE_MINIMUM_2G_RSSI,
     EPNO_ATTRIBUTE_INITIAL_SCORE_MAX,
     EPNO_ATTRIBUTE_CUR_CONN_BONUS,
@@ -42,7 +42,7 @@ typedef enum {
 } EPNO_ATTRIBUTE;
 
 typedef enum {
-    EPNO_ATTRIBUTE_HS_PARAM_LIST,
+    EPNO_ATTRIBUTE_HS_PARAM_LIST = WIFI_HAL_ATTR_START,
     EPNO_ATTRIBUTE_HS_NUM,
     EPNO_ATTRIBUTE_HS_ID,
     EPNO_ATTRIBUTE_HS_REALM,
diff --git a/rtt.cpp b/rtt.cpp
index 9a1ef3a31ed0af381f667b7faf622cd9ed12ae2d..380c213bbbbc627e516ad430be4325263af9103d 100755 (executable)
--- a/rtt.cpp
+++ b/rtt.cpp
@@ -27,7 +27,7 @@
 using namespace std;
 
 typedef enum {
-    SLSI_RTT_ATTRIBUTE_TARGET_CNT = 0,
+    SLSI_RTT_ATTRIBUTE_TARGET_CNT = WIFI_HAL_ATTR_START,
     SLSI_RTT_ATTRIBUTE_TARGET_INFO,
     SLSI_RTT_ATTRIBUTE_TARGET_MAC,
     SLSI_RTT_ATTRIBUTE_TARGET_TYPE,
@@ -47,7 +47,8 @@ typedef enum {
     SLSI_RTT_ATTRIBUTE_RESULTS_PER_TARGET,
     SLSI_RTT_ATTRIBUTE_RESULT_CNT,
     SLSI_RTT_ATTRIBUTE_RESULT,
-    SLSI_RTT_ATTRIBUTE_TARGET_ID
+    SLSI_RTT_ATTRIBUTE_TARGET_ID,
+    SLSI_RTT_ATTRIBUTE_MAX
 } SLSI_RTT_ATTRIBUTE;
 
 enum slsi_rtt_event_attributes {
index 1cf3116f12b5833a3e512719c8bfec87bc17e529..2fde7ba4745d6b055239e420fa933e93e9ea5ee6 100755 (executable)
@@ -51,21 +51,24 @@ static int wifi_add_membership(wifi_handle handle, const char *group);
 static wifi_error wifi_init_interfaces(wifi_handle handle);
 
 typedef enum wifi_attr {
-    ANDR_WIFI_ATTRIBUTE_ND_OFFLOAD_CONFIG,
-    ANDR_WIFI_ATTRIBUTE_PNO_RANDOM_MAC_OUI
+    ANDR_WIFI_ATTRIBUTE_ND_OFFLOAD_CONFIG = WIFI_HAL_ATTR_START,
+    ANDR_WIFI_ATTRIBUTE_PNO_RANDOM_MAC_OUI,
+    ANDR_WIFI_ATTRIBUTE_GSCAN_OUI_MAX
 } wifi_attr_t;
 
 enum wifi_rssi_monitor_attr {
-    RSSI_MONITOR_ATTRIBUTE_MAX_RSSI,
+    RSSI_MONITOR_ATTRIBUTE_MAX_RSSI = WIFI_HAL_ATTR_START,
     RSSI_MONITOR_ATTRIBUTE_MIN_RSSI,
     RSSI_MONITOR_ATTRIBUTE_START,
+    RSSI_MONITOR_ATTRIBUTE_MAX
 };
 
 enum wifi_apf_attr {
     APF_ATTRIBUTE_VERSION,
     APF_ATTRIBUTE_MAX_LEN,
     APF_ATTRIBUTE_PROGRAM,
-    APF_ATTRIBUTE_PROGRAM_LEN
+    APF_ATTRIBUTE_PROGRAM_LEN,
+    APF_ATTRIBUTE_MAX
 };
 
 enum apf_request_type {