Skip to content

Commit 89389b4

Browse files
committed
Merge tag 'mac80211-for-davem-2017-02-06' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211
Johannes Berg says: ==================== A few simple fixes: * fix FILS AEAD cipher usage to use the correct AAD vectors and to use synchronous algorithms * fix using mesh HT operation data from userspace * fix adding mesh vendor elements to beacons & plink frames ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents ebf6c9c + fd551ba commit 89389b4

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

net/mac80211/fils_aead.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static int aes_siv_encrypt(const u8 *key, size_t key_len,
124124

125125
/* CTR */
126126

127-
tfm2 = crypto_alloc_skcipher("ctr(aes)", 0, 0);
127+
tfm2 = crypto_alloc_skcipher("ctr(aes)", 0, CRYPTO_ALG_ASYNC);
128128
if (IS_ERR(tfm2)) {
129129
kfree(tmp);
130130
return PTR_ERR(tfm2);
@@ -183,7 +183,7 @@ static int aes_siv_decrypt(const u8 *key, size_t key_len,
183183

184184
/* CTR */
185185

186-
tfm2 = crypto_alloc_skcipher("ctr(aes)", 0, 0);
186+
tfm2 = crypto_alloc_skcipher("ctr(aes)", 0, CRYPTO_ALG_ASYNC);
187187
if (IS_ERR(tfm2))
188188
return PTR_ERR(tfm2);
189189
/* K2 for CTR */
@@ -272,7 +272,7 @@ int fils_encrypt_assoc_req(struct sk_buff *skb,
272272
crypt_len = skb->data + skb->len - encr;
273273
skb_put(skb, AES_BLOCK_SIZE);
274274
return aes_siv_encrypt(assoc_data->fils_kek, assoc_data->fils_kek_len,
275-
encr, crypt_len, 1, addr, len, encr);
275+
encr, crypt_len, 5, addr, len, encr);
276276
}
277277

278278
int fils_decrypt_assoc_resp(struct ieee80211_sub_if_data *sdata,

net/mac80211/mesh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ int mesh_add_vendor_ies(struct ieee80211_sub_if_data *sdata,
339339
/* fast-forward to vendor IEs */
340340
offset = ieee80211_ie_split_vendor(ifmsh->ie, ifmsh->ie_len, 0);
341341

342-
if (offset) {
342+
if (offset < ifmsh->ie_len) {
343343
len = ifmsh->ie_len - offset;
344344
data = ifmsh->ie + offset;
345345
if (skb_tailroom(skb) < len)

net/wireless/nl80211.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5916,6 +5916,7 @@ do { \
59165916
break;
59175917
}
59185918
cfg->ht_opmode = ht_opmode;
5919+
mask |= (1 << (NL80211_MESHCONF_HT_OPMODE - 1));
59195920
}
59205921
FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshHWMPactivePathToRootTimeout,
59215922
1, 65535, mask,

0 commit comments

Comments
 (0)