|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
- * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
|
|
|
+ * Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
|
|
|
* Copyright (c) 2002-2010, Atheros Communications Inc.
|
|
|
*
|
|
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -143,7 +143,7 @@ int dfs_process_phyerr_owl(struct wlan_dfs *dfs,
|
|
|
}
|
|
|
|
|
|
/* Fill out dfs_phy_err with the information we have at hand. */
|
|
|
- qdf_mem_set(e, sizeof(*e), 0);
|
|
|
+ qdf_mem_zero(e, sizeof(*e));
|
|
|
e->rssi = rssi;
|
|
|
e->dur = dur;
|
|
|
e->is_pri = 1;
|
|
@@ -281,7 +281,7 @@ int dfs_process_phyerr_sowl(struct wlan_dfs *dfs,
|
|
|
rssi = ext_rssi;
|
|
|
|
|
|
/* Fill out the rssi/duration fields from above. */
|
|
|
- qdf_mem_set(e, sizeof(*e), 0);
|
|
|
+ qdf_mem_zero(e, sizeof(*e));
|
|
|
e->rssi = rssi;
|
|
|
e->dur = dur;
|
|
|
e->is_pri = pri_found;
|
|
@@ -591,7 +591,7 @@ void dfs_process_phyerr(struct wlan_dfs *dfs, void *buf, uint16_t datalen,
|
|
|
if (r_ext_rssi & 0x80)
|
|
|
r_ext_rssi = 0;
|
|
|
|
|
|
- qdf_mem_set(&e, sizeof(e), 0);
|
|
|
+ qdf_mem_zero(&e, sizeof(e));
|
|
|
|
|
|
/*
|
|
|
* This is a bit evil - instead of just passing in the chip version, the
|