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
committed by nshrivas
parent 37ec52267e
commit 686d3030e2
4 changed files with 7 additions and 7 deletions

View File

@@ -176,18 +176,18 @@ ucfg_mlme_set_pmkid_modes(struct wlan_objmgr_psoc *psoc,
QDF_STATUS
ucfg_mlme_get_dot11p_mode(struct wlan_objmgr_psoc *psoc,
uint8_t *val)
enum dot11p_mode *out_mode)
{
struct wlan_mlme_psoc_obj *mlme_obj;
mlme_obj = mlme_get_psoc_obj(psoc);
if (!mlme_obj) {
*val = cfg_default(CFG_DOT11P_MODE);
*out_mode = cfg_default(CFG_DOT11P_MODE);
mlme_err("mlme obj null");
return QDF_STATUS_E_INVAL;
}
*val = mlme_obj->cfg.sta.dot11p_mode;
*out_mode = mlme_obj->cfg.sta.dot11p_mode;
return QDF_STATUS_SUCCESS;
}