aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpas_glue.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-01-09 17:44:28 (GMT)
committerJouni Malinen <j@w1.fi>2011-01-09 17:44:28 (GMT)
commit0382097ef3530497950c53cb5bb1866cbbe82b7b (patch)
tree218c230ed7f895e265c6e4345647b8302495439b /wpa_supplicant/wpas_glue.c
parent8546ea19301f31e5faf58a0f154773c3123e6474 (diff)
downloadhostap-0382097ef3530497950c53cb5bb1866cbbe82b7b.zip
hostap-0382097ef3530497950c53cb5bb1866cbbe82b7b.tar.gz
hostap-0382097ef3530497950c53cb5bb1866cbbe82b7b.tar.bz2
Use set_key addr to distinguish default and multicast keys
Previously, both NULL and ff:ff:ff:ff:ff:ff addr were used in various places to indicate default/broadcast keys. Make this more consistent and useful by defining NULL to mean default key (i.e., used both for unicast and broadcast) and ff:ff:ff:ff:ff:ff to indicate broadcast key (i.e., used only with broadcast).
Diffstat (limited to 'wpa_supplicant/wpas_glue.c')
-rw-r--r--wpa_supplicant/wpas_glue.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/wpa_supplicant/wpas_glue.c b/wpa_supplicant/wpas_glue.c
index 607f44b..d940748 100644
--- a/wpa_supplicant/wpas_glue.c
+++ b/wpa_supplicant/wpas_glue.c
@@ -210,8 +210,7 @@ static int wpa_eapol_set_wep_key(void *ctx, int unicast, int keyidx,
wpa_s->group_cipher = cipher;
}
return wpa_drv_set_key(wpa_s, WPA_ALG_WEP,
- unicast ? wpa_s->bssid :
- (u8 *) "\xff\xff\xff\xff\xff\xff",
+ unicast ? wpa_s->bssid : NULL,
keyidx, unicast, NULL, 0, key, keylen);
}