mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 02:19:26 +01:00
ie: Add support for OCVC bit in RSNE utils
This commit is contained in:
parent
805920dc68
commit
171b2b90b8
4
src/ie.c
4
src/ie.c
@ -739,6 +739,7 @@ static int parse_ciphers(const uint8_t *data, size_t len,
|
|||||||
out_info->spp_a_msdu_required = test_bit(data + 1, 3);
|
out_info->spp_a_msdu_required = test_bit(data + 1, 3);
|
||||||
out_info->pbac = test_bit(data + 1, 4);
|
out_info->pbac = test_bit(data + 1, 4);
|
||||||
out_info->extended_key_id = test_bit(data + 1, 5);
|
out_info->extended_key_id = test_bit(data + 1, 5);
|
||||||
|
out_info->ocvc = test_bit(data + 1, 6);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* BIP-default group management cipher suite in an RSNA with
|
* BIP-default group management cipher suite in an RSNA with
|
||||||
@ -1094,6 +1095,9 @@ static int build_ciphers_common(const struct ie_rsn_info *info, uint8_t *to,
|
|||||||
if (info->extended_key_id)
|
if (info->extended_key_id)
|
||||||
to[pos] |= 0x20;
|
to[pos] |= 0x20;
|
||||||
|
|
||||||
|
if (info->ocvc)
|
||||||
|
to[pos] |= 0x40;
|
||||||
|
|
||||||
pos += 1;
|
pos += 1;
|
||||||
|
|
||||||
/* Short hand the generated RSNE if possible */
|
/* Short hand the generated RSNE if possible */
|
||||||
|
1
src/ie.h
1
src/ie.h
@ -394,6 +394,7 @@ struct ie_rsn_info {
|
|||||||
bool spp_a_msdu_required:1;
|
bool spp_a_msdu_required:1;
|
||||||
bool pbac:1;
|
bool pbac:1;
|
||||||
bool extended_key_id:1;
|
bool extended_key_id:1;
|
||||||
|
bool ocvc:1;
|
||||||
uint8_t num_pmkids;
|
uint8_t num_pmkids;
|
||||||
const uint8_t *pmkids;
|
const uint8_t *pmkids;
|
||||||
enum ie_rsn_cipher_suite group_management_cipher;
|
enum ie_rsn_cipher_suite group_management_cipher;
|
||||||
|
Loading…
Reference in New Issue
Block a user