|
@@ -2580,7 +2580,7 @@ sme_process_twt_notify_event(struct mac_context *mac,
|
|
|
static void sme_link_lost_ind(struct mac_context *mac,
|
|
|
struct sir_lost_link_info *ind)
|
|
|
{
|
|
|
- struct cm_roam_values_copy src_cfg;
|
|
|
+ struct cm_roam_values_copy src_cfg = {};
|
|
|
|
|
|
if (ind) {
|
|
|
src_cfg.int_value = ind->rssi;
|
|
@@ -5888,7 +5888,7 @@ QDF_STATUS sme_update_roam_scan_n_probes(mac_handle_t mac_handle,
|
|
|
const uint8_t probes)
|
|
|
{
|
|
|
struct mac_context *mac = MAC_CONTEXT(mac_handle);
|
|
|
- struct cm_roam_values_copy src_config;
|
|
|
+ struct cm_roam_values_copy src_config = {};
|
|
|
|
|
|
src_config.uint_value = probes;
|
|
|
return wlan_cm_roam_cfg_set_value(mac->psoc, vdev_id,
|
|
@@ -5902,7 +5902,7 @@ sme_update_roam_scan_home_away_time(mac_handle_t mac_handle, uint8_t vdev_id,
|
|
|
const bool send_offload_cmd)
|
|
|
{
|
|
|
struct mac_context *mac = MAC_CONTEXT(mac_handle);
|
|
|
- struct cm_roam_values_copy src_config;
|
|
|
+ struct cm_roam_values_copy src_config = {};
|
|
|
|
|
|
src_config.bool_value = send_offload_cmd;
|
|
|
src_config.uint_value = roam_scan_home_away_time;
|
|
@@ -5996,7 +5996,7 @@ QDF_STATUS sme_update_roam_rssi_diff(mac_handle_t mac_handle, uint8_t vdev_id,
|
|
|
uint8_t roam_rssi_diff)
|
|
|
{
|
|
|
struct mac_context *mac = MAC_CONTEXT(mac_handle);
|
|
|
- struct cm_roam_values_copy src_config;
|
|
|
+ struct cm_roam_values_copy src_config = {};
|
|
|
|
|
|
src_config.uint_value = roam_rssi_diff;
|
|
|
return wlan_cm_roam_cfg_set_value(mac->psoc, vdev_id,
|
|
@@ -6622,7 +6622,7 @@ QDF_STATUS sme_set_neighbor_scan_refresh_period(mac_handle_t mac_handle,
|
|
|
uint8_t sessionId, uint16_t neighborScanResultsRefreshPeriod)
|
|
|
{
|
|
|
struct mac_context *mac = MAC_CONTEXT(mac_handle);
|
|
|
- struct cm_roam_values_copy src_config;
|
|
|
+ struct cm_roam_values_copy src_config = {};
|
|
|
|
|
|
src_config.uint_value = neighborScanResultsRefreshPeriod;
|
|
|
return wlan_cm_roam_cfg_set_value(mac->psoc, sessionId,
|
|
@@ -6685,7 +6685,7 @@ QDF_STATUS sme_update_empty_scan_refresh_period(mac_handle_t mac_handle,
|
|
|
empty_scan_refresh_period)
|
|
|
{
|
|
|
struct mac_context *mac = MAC_CONTEXT(mac_handle);
|
|
|
- struct cm_roam_values_copy src_config;
|
|
|
+ struct cm_roam_values_copy src_config = {};
|
|
|
|
|
|
src_config.uint_value = empty_scan_refresh_period;
|
|
|
return wlan_cm_roam_cfg_set_value(mac->psoc, sessionId,
|
|
@@ -6698,7 +6698,7 @@ QDF_STATUS sme_update_full_roam_scan_period(mac_handle_t mac_handle,
|
|
|
uint32_t full_roam_scan_period)
|
|
|
{
|
|
|
struct mac_context *mac = MAC_CONTEXT(mac_handle);
|
|
|
- struct cm_roam_values_copy src_config;
|
|
|
+ struct cm_roam_values_copy src_config = {};
|
|
|
|
|
|
src_config.uint_value = full_roam_scan_period;
|
|
|
return wlan_cm_roam_cfg_set_value(mac->psoc, vdev_id,
|
|
@@ -6711,7 +6711,7 @@ sme_modify_roam_cand_sel_criteria(mac_handle_t mac_handle,
|
|
|
bool enable_scoring_for_roam)
|
|
|
{
|
|
|
struct mac_context *mac = MAC_CONTEXT(mac_handle);
|
|
|
- struct cm_roam_values_copy src_config;
|
|
|
+ struct cm_roam_values_copy src_config = {};
|
|
|
|
|
|
src_config.bool_value = enable_scoring_for_roam;
|
|
|
return wlan_cm_roam_cfg_set_value(mac->psoc, vdev_id,
|
|
@@ -6750,7 +6750,7 @@ QDF_STATUS sme_set_neighbor_scan_min_chan_time(mac_handle_t mac_handle,
|
|
|
uint8_t sessionId)
|
|
|
{
|
|
|
struct mac_context *mac = MAC_CONTEXT(mac_handle);
|
|
|
- struct cm_roam_values_copy src_config;
|
|
|
+ struct cm_roam_values_copy src_config = {};
|
|
|
|
|
|
src_config.uint_value = nNeighborScanMinChanTime;
|
|
|
return wlan_cm_roam_cfg_set_value(mac->psoc, sessionId,
|
|
@@ -6776,7 +6776,7 @@ QDF_STATUS sme_set_neighbor_scan_max_chan_time(mac_handle_t mac_handle,
|
|
|
nNeighborScanMaxChanTime)
|
|
|
{
|
|
|
struct mac_context *mac = MAC_CONTEXT(mac_handle);
|
|
|
- struct cm_roam_values_copy src_config;
|
|
|
+ struct cm_roam_values_copy src_config = {};
|
|
|
|
|
|
src_config.uint_value = nNeighborScanMaxChanTime;
|
|
|
return wlan_cm_roam_cfg_set_value(mac->psoc, sessionId,
|
|
@@ -6949,7 +6949,7 @@ QDF_STATUS sme_set_neighbor_scan_period(mac_handle_t mac_handle,
|
|
|
const uint16_t nNeighborScanPeriod)
|
|
|
{
|
|
|
struct mac_context *mac = MAC_CONTEXT(mac_handle);
|
|
|
- struct cm_roam_values_copy src_config;
|
|
|
+ struct cm_roam_values_copy src_config = {};
|
|
|
|
|
|
src_config.uint_value = nNeighborScanPeriod;
|
|
|
return wlan_cm_roam_cfg_set_value(mac->psoc, sessionId,
|
|
@@ -7029,7 +7029,7 @@ sme_update_roam_scan_freq_list(mac_handle_t mac_handle, uint8_t vdev_id,
|
|
|
uint32_t freq_list_type)
|
|
|
{
|
|
|
struct mac_context *mac = MAC_CONTEXT(mac_handle);
|
|
|
- struct cm_roam_values_copy src_config;
|
|
|
+ struct cm_roam_values_copy src_config = {};
|
|
|
|
|
|
if (!sme_validate_freq_list(mac_handle, freq_list, num_chan)) {
|
|
|
sme_err("List contains invalid channel(s)");
|
|
@@ -15670,7 +15670,7 @@ QDF_STATUS sme_set_roam_config_enable(mac_handle_t mac_handle,
|
|
|
uint8_t roam_control_enable)
|
|
|
{
|
|
|
struct mac_context *mac = MAC_CONTEXT(mac_handle);
|
|
|
- struct cm_roam_values_copy src_config;
|
|
|
+ struct cm_roam_values_copy src_config = {};
|
|
|
|
|
|
if (!mac->mlme_cfg->lfr.roam_scan_offload_enabled)
|
|
|
return QDF_STATUS_E_INVAL;
|