qcacld-3.0: Correct camelcase in roam data structure
Componentized code should be adhering to the coding standard. However struct roam_offload_synch_ind has a large number of camelcase members. To fix this replace camel case members with snake_case. Change-Id: If866379d8f01cc0e932ea391d586575de4af9163 CRs-Fixed: 3383579
Este commit está contenido en:

cometido por
Madan Koyyalamudi

padre
0a3ca6be7c
commit
33989948e3
@@ -289,11 +289,11 @@ cm_populate_connect_ies(struct roam_offload_synch_ind *roam_synch_data,
|
||||
connect_ies = &rsp->connect_rsp.connect_ies;
|
||||
|
||||
/* Beacon/Probe Rsp frame */
|
||||
if (roam_synch_data->beaconProbeRespLength) {
|
||||
if (roam_synch_data->beacon_probe_resp_length) {
|
||||
connect_ies->bcn_probe_rsp.len =
|
||||
roam_synch_data->beaconProbeRespLength;
|
||||
roam_synch_data->beacon_probe_resp_length;
|
||||
bcn_probe_rsp_ptr = (uint8_t *)roam_synch_data +
|
||||
roam_synch_data->beaconProbeRespOffset;
|
||||
roam_synch_data->beacon_probe_resp_offset;
|
||||
|
||||
connect_ies->bcn_probe_rsp.ptr =
|
||||
qdf_mem_malloc(connect_ies->bcn_probe_rsp.len);
|
||||
@@ -320,13 +320,13 @@ cm_populate_connect_ies(struct roam_offload_synch_ind *roam_synch_data,
|
||||
}
|
||||
|
||||
/* ReAssoc Rsp IE data */
|
||||
if (roam_synch_data->reassocRespLength >
|
||||
if (roam_synch_data->reassoc_resp_length >
|
||||
sizeof(struct wlan_frame_hdr)) {
|
||||
connect_ies->assoc_rsp.len =
|
||||
roam_synch_data->reassocRespLength -
|
||||
roam_synch_data->reassoc_resp_length -
|
||||
sizeof(struct wlan_frame_hdr);
|
||||
reassoc_rsp_ptr = (uint8_t *)roam_synch_data +
|
||||
roam_synch_data->reassocRespOffset +
|
||||
roam_synch_data->reassoc_resp_offset +
|
||||
sizeof(struct wlan_frame_hdr);
|
||||
connect_ies->assoc_rsp.ptr =
|
||||
qdf_mem_malloc(connect_ies->assoc_rsp.len);
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -530,7 +530,7 @@ QDF_STATUS cm_roam_sync_event_handler_cb(struct wlan_objmgr_vdev *vdev,
|
||||
mlme_err("LFR3: MLO: Invalid link Beacon Length");
|
||||
goto err;
|
||||
}
|
||||
} else if (sync_ind->beaconProbeRespLength >
|
||||
} else if (sync_ind->beacon_probe_resp_length >
|
||||
(QDF_IEEE80211_3ADDR_HDR_LEN + MAC_B_PR_SSID_OFFSET)) {
|
||||
/*
|
||||
* When STA roams to an MLO AP, non-assoc link might be superior
|
||||
@@ -549,7 +549,7 @@ QDF_STATUS cm_roam_sync_event_handler_cb(struct wlan_objmgr_vdev *vdev,
|
||||
ie_len = MAX_MGMT_MPDU_LEN -
|
||||
(QDF_IEEE80211_3ADDR_HDR_LEN + MAC_B_PR_SSID_OFFSET);
|
||||
else
|
||||
ie_len = sync_ind->beaconProbeRespLength -
|
||||
ie_len = sync_ind->beacon_probe_resp_length -
|
||||
(QDF_IEEE80211_3ADDR_HDR_LEN + MAC_B_PR_SSID_OFFSET);
|
||||
|
||||
} else {
|
||||
|
@@ -359,9 +359,9 @@ struct wlan_chan_list {
|
||||
qdf_freq_t freq_list[CFG_VALID_CHANNEL_LIST_LEN];
|
||||
};
|
||||
|
||||
/*
|
||||
* roam_fail_params: different types of params to set or get roam fail states
|
||||
* for the vdev
|
||||
/**
|
||||
* enum roam_fail_params: different types of params to set or get
|
||||
* roam fail states for the vdev
|
||||
* @ROAM_TRIGGER_REASON: Roam trigger reason(enum WMI_ROAM_TRIGGER_REASON_ID)
|
||||
* @ROAM_INVOKE_FAIL_REASON: One of WMI_ROAM_FAIL_REASON_ID for roam failure
|
||||
* in case of forced roam
|
||||
@@ -483,7 +483,8 @@ struct roam_synch_frame_ind {
|
||||
uint8_t vdev_id;
|
||||
};
|
||||
|
||||
/* struct owe_transition_mode_info - structure containing owe transition mode
|
||||
/**
|
||||
* struct owe_transition_mode_info - structure containing owe transition mode
|
||||
* element info
|
||||
* @is_owe_transition_conn: Current connection is in owe transition mode or not
|
||||
* @ssid: ssid
|
||||
@@ -1900,7 +1901,7 @@ enum roam_rt_stats_params {
|
||||
ROAM_RT_STATS_SUSPEND_MODE_ENABLE,
|
||||
};
|
||||
|
||||
/*
|
||||
/**
|
||||
* struct wlan_roam_mlo_config - Roam MLO config parameters
|
||||
* @vdev_id: VDEV id
|
||||
* @partner_link_addr: Assigned link address which can be used as self
|
||||
@@ -2351,7 +2352,7 @@ struct roam_denylist_timeout {
|
||||
enum dlm_reject_ap_source source;
|
||||
};
|
||||
|
||||
/*
|
||||
/**
|
||||
* struct roam_denylist_event - Denylist event entries destination structure
|
||||
* @vdev_id: vdev id
|
||||
* @num_entries: total entries sent over the event
|
||||
@@ -2363,7 +2364,7 @@ struct roam_denylist_event {
|
||||
struct roam_denylist_timeout roam_denylist[];
|
||||
};
|
||||
|
||||
/*
|
||||
/**
|
||||
* enum cm_vdev_disconnect_reason - Roam disconnect reason
|
||||
* @CM_DISCONNECT_REASON_CSA_SA_QUERY_TIMEOUT: Disconnect due to SA query
|
||||
* timeout after moving to new channel due to CSA in OCV enabled case.
|
||||
@@ -2375,7 +2376,7 @@ enum cm_vdev_disconnect_reason {
|
||||
CM_DISCONNECT_REASON_MOVE_TO_CELLULAR,
|
||||
};
|
||||
|
||||
/*
|
||||
/**
|
||||
* struct vdev_disconnect_event_data - Roam disconnect event data
|
||||
* @vdev_id: vdev id
|
||||
* @psoc: psoc object
|
||||
@@ -2482,7 +2483,7 @@ struct roam_stats_event {
|
||||
struct roam_event_rt_info roam_event_param;
|
||||
};
|
||||
|
||||
/*
|
||||
/**
|
||||
* struct auth_offload_event - offload data carried by roam event
|
||||
* @vdev_id: vdev id
|
||||
* @ap_bssid: SAE authentication offload AP MAC Address
|
||||
@@ -2496,7 +2497,7 @@ struct auth_offload_event {
|
||||
uint32_t akm;
|
||||
};
|
||||
|
||||
/*
|
||||
/**
|
||||
* struct roam_pmkid_req_event - Pmkid event with entries destination structure
|
||||
* @vdev_id: VDEV id
|
||||
* @psoc: psoc object
|
||||
@@ -2725,7 +2726,7 @@ struct cm_hw_mode_trans_ind {
|
||||
/* If link is disabled, during roam sync */
|
||||
#define CM_ROAM_LINK_FLAG_DISABLE 0x1
|
||||
|
||||
/*
|
||||
/**
|
||||
* struct ml_setup_link_param - MLO setup link param
|
||||
* @vdev_id: vdev id of the link
|
||||
* @link_id: link id of the link
|
||||
@@ -2741,7 +2742,7 @@ struct ml_setup_link_param {
|
||||
struct qdf_mac_addr link_addr;
|
||||
};
|
||||
|
||||
/*
|
||||
/**
|
||||
* struct ml_key_material_param - MLO key material param
|
||||
* @link_id: key is for which link, when link_id is 0xf,
|
||||
* means the key is used for all links, like PTK
|
||||
@@ -2759,18 +2760,18 @@ struct ml_key_material_param {
|
||||
};
|
||||
|
||||
struct roam_offload_synch_ind {
|
||||
uint16_t beaconProbeRespOffset;
|
||||
uint16_t beaconProbeRespLength;
|
||||
uint16_t reassocRespOffset;
|
||||
uint16_t reassocRespLength;
|
||||
uint16_t beacon_probe_resp_offset;
|
||||
uint16_t beacon_probe_resp_length;
|
||||
uint16_t reassoc_resp_offset;
|
||||
uint16_t reassoc_resp_length;
|
||||
uint16_t reassoc_req_offset;
|
||||
uint16_t reassoc_req_length;
|
||||
uint8_t isBeacon;
|
||||
uint8_t is_beacon;
|
||||
uint8_t roamed_vdev_id;
|
||||
struct qdf_mac_addr bssid;
|
||||
struct wlan_ssid ssid;
|
||||
struct qdf_mac_addr self_mac;
|
||||
int8_t txMgmtPower;
|
||||
int8_t tx_mgmt_power;
|
||||
uint32_t auth_status;
|
||||
uint8_t rssi;
|
||||
uint8_t roam_reason;
|
||||
@@ -2816,11 +2817,11 @@ struct roam_offload_synch_ind {
|
||||
#endif
|
||||
};
|
||||
|
||||
/*
|
||||
/**
|
||||
* struct roam_scan_candidate_frame Roam candidate scan entry
|
||||
* vdev_id : vdev id
|
||||
* frame_len : Length of the beacon/probe rsp frame
|
||||
* frame : Pointer to the frame
|
||||
* @vdev_id : vdev id
|
||||
* @frame_length : Length of the beacon/probe rsp frame
|
||||
* @frame : Pointer to the frame
|
||||
*/
|
||||
struct roam_scan_candidate_frame {
|
||||
uint8_t vdev_id;
|
||||
|
Referencia en una nueva incidencia
Block a user