Android: Fix compilation issues
Fix compilation errors and warnings.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
diff --git a/sta.c b/sta.c
index c8cb4a1..f7e3e27 100644
--- a/sta.c
+++ b/sta.c
@@ -384,9 +384,11 @@
static int wil6210_send_brp_rx(struct sigma_dut *dut, const char *mac,
int l_rx)
{
- struct wil_wmi_bf_trig_cmd cmd = {0};
+ struct wil_wmi_bf_trig_cmd cmd;
unsigned int cid;
+ memset(&cmd, 0, sizeof(cmd));
+
if (wil6210_get_cid(dut, mac, &cid))
return -1;
@@ -400,7 +402,9 @@
static int wil6210_send_sls(struct sigma_dut *dut, const char *mac)
{
- struct wil_wmi_bf_trig_cmd cmd = {0};
+ struct wil_wmi_bf_trig_cmd cmd;
+
+ memset(&cmd, 0, sizeof(cmd));
if (parse_mac_address(dut, mac, (unsigned char *)&cmd.dest_mac))
return -1;