diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2011-11-02 17:36:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-09 16:01:01 -0500 |
commit | 819622678ed7011b4d785ca174de5d4bf179bf83 (patch) | |
tree | 299b5ae38ff8e6b8dc7ebc072bd54b8925de2465 | |
parent | c2e889a7f7947bc346e0a341e793fd5cb471d884 (diff) |
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>
-rw-r--r-- | net/wireless/nl80211.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index e97827ba8a58..2bcaa579cebf 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -98,7 +98,7 @@ static const struct nla_policy nl80211_policy[NL80211_ATTR_MAX+1] = { | |||
98 | [NL80211_ATTR_KEY_IDX] = { .type = NLA_U8 }, | 98 | [NL80211_ATTR_KEY_IDX] = { .type = NLA_U8 }, |
99 | [NL80211_ATTR_KEY_CIPHER] = { .type = NLA_U32 }, | 99 | [NL80211_ATTR_KEY_CIPHER] = { .type = NLA_U32 }, |
100 | [NL80211_ATTR_KEY_DEFAULT] = { .type = NLA_FLAG }, | 100 | [NL80211_ATTR_KEY_DEFAULT] = { .type = NLA_FLAG }, |
101 | [NL80211_ATTR_KEY_SEQ] = { .type = NLA_BINARY, .len = 8 }, | 101 | [NL80211_ATTR_KEY_SEQ] = { .type = NLA_BINARY, .len = 16 }, |
102 | [NL80211_ATTR_KEY_TYPE] = { .type = NLA_U32 }, | 102 | [NL80211_ATTR_KEY_TYPE] = { .type = NLA_U32 }, |
103 | 103 | ||
104 | [NL80211_ATTR_BEACON_INTERVAL] = { .type = NLA_U32 }, | 104 | [NL80211_ATTR_BEACON_INTERVAL] = { .type = NLA_U32 }, |
@@ -203,7 +203,7 @@ static const struct nla_policy nl80211_key_policy[NL80211_KEY_MAX + 1] = { | |||
203 | [NL80211_KEY_DATA] = { .type = NLA_BINARY, .len = WLAN_MAX_KEY_LEN }, | 203 | [NL80211_KEY_DATA] = { .type = NLA_BINARY, .len = WLAN_MAX_KEY_LEN }, |
204 | [NL80211_KEY_IDX] = { .type = NLA_U8 }, | 204 | [NL80211_KEY_IDX] = { .type = NLA_U8 }, |
205 | [NL80211_KEY_CIPHER] = { .type = NLA_U32 }, | 205 | [NL80211_KEY_CIPHER] = { .type = NLA_U32 }, |
206 | [NL80211_KEY_SEQ] = { .type = NLA_BINARY, .len = 8 }, | 206 | [NL80211_KEY_SEQ] = { .type = NLA_BINARY, .len = 16 }, |
207 | [NL80211_KEY_DEFAULT] = { .type = NLA_FLAG }, | 207 | [NL80211_KEY_DEFAULT] = { .type = NLA_FLAG }, |
208 | [NL80211_KEY_DEFAULT_MGMT] = { .type = NLA_FLAG }, | 208 | [NL80211_KEY_DEFAULT_MGMT] = { .type = NLA_FLAG }, |
209 | [NL80211_KEY_TYPE] = { .type = NLA_U32 }, | 209 | [NL80211_KEY_TYPE] = { .type = NLA_U32 }, |