Extend novap_reset() to allow both disable and enable
This makes novap_reset() more useful by allowing parameter value 0 to be
used depending on requirement.
Signed-off-by: Priyadharshini Gowthaman <pgowtham@codeaurora.org>
diff --git a/sta.c b/sta.c
index 3e57e08..1a8c071 100644
--- a/sta.c
+++ b/sta.c
@@ -5551,7 +5551,7 @@
}
break;
case DRIVER_ATHEROS:
- novap_reset(dut, intf);
+ novap_reset(dut, intf, 1);
ath_config_dyn_bw_sig(dut, intf, val);
break;
default:
@@ -5563,7 +5563,7 @@
val = get_param(cmd, "RTS_FORCE");
if (val) {
- novap_reset(dut, intf);
+ novap_reset(dut, intf, 1);
if (strcasecmp(val, "Enable") == 0) {
if (sta_set_rts(dut, intf, 64) != 0) {
sigma_dut_print(dut, DUT_MSG_ERROR,
@@ -7853,7 +7853,7 @@
} else if (!mcs32 && rate) {
switch (get_driver_type()) {
case DRIVER_ATHEROS:
- novap_reset(dut, intf);
+ novap_reset(dut, intf, 1);
ath_sta_set_11nrates(dut, intf, rate);
break;
default:
@@ -11151,7 +11151,7 @@
const char *val;
char *token = NULL, *result;
- novap_reset(dut, intf);
+ novap_reset(dut, intf, 1);
val = get_param(cmd, "nss_mcs_opt");
if (val) {