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:
@@ -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 {
|
||||
|
@@ -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)
|
||||
|
Referência em uma nova issue
Block a user