aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_atheros.c
diff options
context:
space:
mode:
authorKen Zhu <Ken.Zhu@Atheros.com>2011-03-11 15:55:43 (GMT)
committerJouni Malinen <j@w1.fi>2011-03-11 15:55:43 (GMT)
commit7099861e4e16f6565ec918a5fcba09543ce72899 (patch)
tree50038aad36d6ecf471c50cffdaff70380a75f60a /src/drivers/driver_atheros.c
parent61fbd3df04d78189c32520b6999efefe711bdd48 (diff)
downloadhostap-7099861e4e16f6565ec918a5fcba09543ce72899.zip
hostap-7099861e4e16f6565ec918a5fcba09543ce72899.tar.gz
hostap-7099861e4e16f6565ec918a5fcba09543ce72899.tar.bz2
atheros: Fix default TX key index setting for WEP
Diffstat (limited to 'src/drivers/driver_atheros.c')
-rw-r--r--src/drivers/driver_atheros.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/driver_atheros.c b/src/drivers/driver_atheros.c
index a0521c3..56eac5b 100644
--- a/src/drivers/driver_atheros.c
+++ b/src/drivers/driver_atheros.c
@@ -484,7 +484,8 @@ 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;
- wk.ik_flags |= IEEE80211_KEY_DEFAULT;
+ if (set_tx)
+ wk.ik_flags |= IEEE80211_KEY_DEFAULT;
} else {
memcpy(wk.ik_macaddr, addr, IEEE80211_ADDR_LEN);
wk.ik_keyix = IEEE80211_KEYIX_NONE;