atheros: Fix default TX key index setting for WEP
This commit is contained in:
parent
61fbd3df04
commit
7099861e4e
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue