qcacmn: Fix key_mgmt datatype

key_mgmt was using uint16 datatype and used
to hold more than it's size.
increased its data size to uint32 address this
issue.

Change-Id: I88a4550bff2e0543700ba1470df3340e7020b7f0
CR-Fixed: 2254883
Esse commit está contido em:
Ashok Ponnaiah
2018-06-11 09:46:36 +05:30
commit de nshrivas
commit 09ec6f98d0
2 arquivos alterados com 3 adições e 3 exclusões

Ver arquivo

@@ -191,8 +191,8 @@ struct wlan_crypto_params {
uint32_t mcastcipherset;
uint32_t mgmtcipherset;
uint32_t cipher_caps;
uint32_t key_mgmt;
uint16_t rsn_caps;
uint16_t key_mgmt;
};
typedef enum wlan_crypto_param_type {

Ver arquivo

@@ -369,8 +369,8 @@ static inline void wlan_crypto_put_be64(u8 *a, u64 val)
#define RESET_KEY_MGMT(_param) ((_param)->key_mgmt = \
(1 << WLAN_CRYPTO_KEY_MGMT_NONE))
#define SET_KEY_MGMT(_param, _c) ((_param)->key_mgmt |= (1 << (_c + 1)))
#define HAS_KEY_MGMT(_param, _c) ((_param)->key_mgmt & (1 << (_c + 1)))
#define SET_KEY_MGMT(_param, _c) ((_param)->key_mgmt |= (1 << (_c)))
#define HAS_KEY_MGMT(_param, _c) ((_param)->key_mgmt & (1 << (_c)))
#define UCAST_CIPHER_MATCH(_param1, _param2) \
(((_param1)->ucastcipherset & (_param2)->ucastcipherset) != 0)