nl80211: Add a missing key_flag for WEP shared key authentication

Signed-off-by: Alexander Wetzel <alexander@wetzel-home.de>
This commit is contained in:
Alexander Wetzel 2020-03-04 18:16:51 +01:00 committed by Jouni Malinen
parent 82eaa3e688
commit 5eb1632569

View File

@ -3556,6 +3556,9 @@ retry:
p.set_tx = i == params->wep_tx_keyidx; p.set_tx = i == params->wep_tx_keyidx;
p.key = params->wep_key[i]; p.key = params->wep_key[i];
p.key_len = params->wep_key_len[i]; p.key_len = params->wep_key_len[i];
p.key_flag = i == params->wep_tx_keyidx ?
KEY_FLAG_GROUP_RX_TX_DEFAULT :
KEY_FLAG_GROUP_RX_TX;
wpa_driver_nl80211_set_key(bss, &p); wpa_driver_nl80211_set_key(bss, &p);
if (params->wep_tx_keyidx != i) if (params->wep_tx_keyidx != i)
continue; continue;