qcacld-3.0: Change dot11p_mode to enumerated type

dot11p_mode is currently represented with a uint8_t type, despite an
appropriate enumerated type being available. Change the field's type to
the more restrictive 'enum dot11p_mode' instead of uint8_t.

Change-Id: I847ce0901297b0a3e4312e8ce4124a886320f174
CRs-Fixed: 2335575
This commit is contained in:
Dustin Brown
2018-10-17 16:58:50 -07:00
zatwierdzone przez nshrivas
rodzic 37ec52267e
commit 686d3030e2
4 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@@ -841,7 +841,7 @@ struct wlan_mlme_sta_cfg {
uint32_t tgt_gtx_usr_cfg;
uint32_t pmkid_modes;
uint32_t wait_cnf_timeout;
uint8_t dot11p_mode;
enum dot11p_mode dot11p_mode;
uint8_t fils_max_chan_guard_time;
uint8_t current_rssi;
bool ignore_peer_erp_info;

Wyświetl plik

@@ -616,13 +616,13 @@ ucfg_mlme_set_pmkid_modes(struct wlan_objmgr_psoc *psoc,
/**
* ucfg_mlme_get_dot11p_mode() - Get the setting about 802.11p mode
* @psoc: pointer to psoc object
* @val: Pointer to the value which will be filled for the caller
* @out_mode: Pointer to the mode which will be filled for the caller
*
* Return: QDF Status
*/
QDF_STATUS
ucfg_mlme_get_dot11p_mode(struct wlan_objmgr_psoc *psoc,
uint8_t *val);
enum dot11p_mode *out_mode);
/**
* ucfg_mlme_get_go_cts2self_for_sta() - Stop NOA and start using cts2self