mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-18 06:50:08 +00:00
nl80211: Increase maximum NL80211_ATTR_KEY_SEQ length to 16
WPI-SMS4 uses 16-octet PN field, so we need to allow longer key sequence values to be configured. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
c2e889a7f7
commit
819622678e
@ -98,7 +98,7 @@ static const struct nla_policy nl80211_policy[NL80211_ATTR_MAX+1] = {
|
|||||||
[NL80211_ATTR_KEY_IDX] = { .type = NLA_U8 },
|
[NL80211_ATTR_KEY_IDX] = { .type = NLA_U8 },
|
||||||
[NL80211_ATTR_KEY_CIPHER] = { .type = NLA_U32 },
|
[NL80211_ATTR_KEY_CIPHER] = { .type = NLA_U32 },
|
||||||
[NL80211_ATTR_KEY_DEFAULT] = { .type = NLA_FLAG },
|
[NL80211_ATTR_KEY_DEFAULT] = { .type = NLA_FLAG },
|
||||||
[NL80211_ATTR_KEY_SEQ] = { .type = NLA_BINARY, .len = 8 },
|
[NL80211_ATTR_KEY_SEQ] = { .type = NLA_BINARY, .len = 16 },
|
||||||
[NL80211_ATTR_KEY_TYPE] = { .type = NLA_U32 },
|
[NL80211_ATTR_KEY_TYPE] = { .type = NLA_U32 },
|
||||||
|
|
||||||
[NL80211_ATTR_BEACON_INTERVAL] = { .type = NLA_U32 },
|
[NL80211_ATTR_BEACON_INTERVAL] = { .type = NLA_U32 },
|
||||||
@ -203,7 +203,7 @@ static const struct nla_policy nl80211_key_policy[NL80211_KEY_MAX + 1] = {
|
|||||||
[NL80211_KEY_DATA] = { .type = NLA_BINARY, .len = WLAN_MAX_KEY_LEN },
|
[NL80211_KEY_DATA] = { .type = NLA_BINARY, .len = WLAN_MAX_KEY_LEN },
|
||||||
[NL80211_KEY_IDX] = { .type = NLA_U8 },
|
[NL80211_KEY_IDX] = { .type = NLA_U8 },
|
||||||
[NL80211_KEY_CIPHER] = { .type = NLA_U32 },
|
[NL80211_KEY_CIPHER] = { .type = NLA_U32 },
|
||||||
[NL80211_KEY_SEQ] = { .type = NLA_BINARY, .len = 8 },
|
[NL80211_KEY_SEQ] = { .type = NLA_BINARY, .len = 16 },
|
||||||
[NL80211_KEY_DEFAULT] = { .type = NLA_FLAG },
|
[NL80211_KEY_DEFAULT] = { .type = NLA_FLAG },
|
||||||
[NL80211_KEY_DEFAULT_MGMT] = { .type = NLA_FLAG },
|
[NL80211_KEY_DEFAULT_MGMT] = { .type = NLA_FLAG },
|
||||||
[NL80211_KEY_TYPE] = { .type = NLA_U32 },
|
[NL80211_KEY_TYPE] = { .type = NLA_U32 },
|
||||||
|
Loading…
Reference in New Issue
Block a user