[rdkb][common][app][Fix txpower and bss_color not set]

[Description]
Fix txpower and bss_color not set.
Prevent for bss_color of txpower set to 0.

[Release-log]
N/A

Change-Id: Ica28beffb8352658f71ab47b85adfc4539192e1f
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 43478fa..9c3ef6e 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
@@ -430,7 +430,8 @@
     operationParam.obssCoex = radio_parameter.ht_coex;
 
     // transmit_power
-    operationParam.transmitPower = radio_parameter.transmit_power;
+    if (radio_parameter.transmit_power > 0)
+        operationParam.transmitPower = radio_parameter.transmit_power;
 
     // apply setting
     ret = wifi_setRadioOperatingParameters(radio_parameter.radio_index, &operationParam);
@@ -470,10 +471,12 @@
     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");
+    if (radio_parameter.he_bss_color > 0 && radio_parameter.he_bss_color < 64) {
+        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;