[AUTO00246924][rdkb][common][app][add uci cmd for he_bss_color,
transmit_power]

[Description]
add uci cmd for he_bss_color, transmit_power.

[Release-log]
N/A

Feature: [wifi]

Change-Id: I8d769b060e0fb1b69ee2f2c9e026acbb166bfd53
diff --git a/recipes-wifi/wifi-test-tool/files/src/wifi-test-tool.c b/recipes-wifi/wifi-test-tool/files/src/wifi-test-tool.c
index 3ed431b..43478fa 100644
--- a/recipes-wifi/wifi-test-tool/files/src/wifi-test-tool.c
+++ b/recipes-wifi/wifi-test-tool/files/src/wifi-test-tool.c
@@ -224,6 +224,16 @@
         radio_param->background_radar = FALSE;
 }
 
+void set_he_bss_color(wifi_radio_param *radio_param, char *he_bss_color)
+{
+    radio_param->he_bss_color = strtol(he_bss_color, NULL, 10);
+}
+
+void set_transmit_power(wifi_radio_param *radio_param, char *transmit_power)
+{
+    radio_param->transmit_power = strtoul(transmit_power, NULL, 10);
+}
+
 void set_radionum(wifi_intf_param *intf_param, char *phy_name)
 {
     int radio_num = 0;
@@ -419,6 +429,9 @@
     //ht_coex
     operationParam.obssCoex = radio_parameter.ht_coex;
 
+    // transmit_power
+    operationParam.transmitPower = radio_parameter.transmit_power;
+
     // apply setting
     ret = wifi_setRadioOperatingParameters(radio_parameter.radio_index, &operationParam);
     if (ret != RETURN_OK)
@@ -456,6 +469,14 @@
         fprintf(stderr, "[Set background_radar failed!!!]\n");
     ret = 0;
 
+    // he_bss_color
+    fprintf(stderr, "Set he_bss_color: %hhu \n", radio_parameter.he_bss_color);
+    ret = wifi_setBSSColor(radio_parameter.radio_index, radio_parameter.he_bss_color);
+    if (ret != RETURN_OK)
+        fprintf(stderr, "[Set he_bss_color failed!!!]\n");
+
+    ret = 0;
+
 }
 
 void set_ap_param(wifi_intf_param ap_param , wifi_vap_info_map_t *map)
@@ -913,6 +934,10 @@
                     set_rts(&radio_param, op->v.string);
                 else if (strcmp(op->e.name, "background_radar") == 0)
                     set_background_radar(&radio_param, op->v.string);
+                else if (strcmp(op->e.name, "he_bss_color") == 0)
+                    set_he_bss_color(&radio_param, op->v.string);
+                else if (strcmp(op->e.name, "txpower") == 0)
+                    set_transmit_power(&radio_param, op->v.string);
                 else if (strcmp(op->e.name, "type") == 0 || strcmp(op->e.name, "path") == 0)
                     continue;
                 else
diff --git a/recipes-wifi/wifi-test-tool/files/src/wifi-test-tool.h b/recipes-wifi/wifi-test-tool/files/src/wifi-test-tool.h
index d5f24ed..b81c86f 100644
--- a/recipes-wifi/wifi-test-tool/files/src/wifi-test-tool.h
+++ b/recipes-wifi/wifi-test-tool/files/src/wifi-test-tool.h
@@ -46,6 +46,8 @@
     unsigned int rtsThreshold;
     BOOL ht_coex;
     BOOL background_radar;
+    UCHAR he_bss_color;
+    ULONG transmit_power;
 } wifi_radio_param;
 
 typedef struct {