HE: Add support for enabling BCC coding in sta_set_wireless
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
diff --git a/sta.c b/sta.c
index 06e5c74..4f1078b 100644
--- a/sta.c
+++ b/sta.c
@@ -5638,6 +5638,20 @@
}
}
+ val = get_param(cmd, "BCC");
+ if (val) {
+ int bcc;
+
+ bcc = strcmp(val, "1") == 0 || strcasecmp(val, "Enable") == 0;
+ /* use LDPC iwpriv itself to set bcc coding, bcc coding
+ * is mutually exclusive to bcc */
+ snprintf(buf, sizeof(buf), "iwpriv %s ldpc %d", intf, !bcc);
+ if (system(buf) != 0) {
+ sigma_dut_print(dut, DUT_MSG_ERROR,
+ "Enabling/Disabling of BCC failed");
+ }
+ }
+
val = get_param(cmd, "opt_md_notif_ie");
if (val) {
char *result = NULL;