atheros: Fix default TX key index setting for WEP

This commit is contained in:
Ken Zhu 2011-03-11 17:55:43 +02:00 committed by Jouni Malinen
parent 61fbd3df04
commit 7099861e4e

View file

@ -484,6 +484,7 @@ atheros_set_key(const char *ifname, void *priv, enum wpa_alg alg,
if (addr == NULL || is_broadcast_ether_addr(addr)) {
memset(wk.ik_macaddr, 0xff, IEEE80211_ADDR_LEN);
wk.ik_keyix = key_idx;
if (set_tx)
wk.ik_flags |= IEEE80211_KEY_DEFAULT;
} else {
memcpy(wk.ik_macaddr, addr, IEEE80211_ADDR_LEN);