aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpas_glue.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-01-09 10:09:04 (GMT)
committerJouni Malinen <j@w1.fi>2011-01-09 10:09:04 (GMT)
commitda64c266e73805516afb9e99bf90ea2581a55ad3 (patch)
tree2804496186080a645b71b91a08b688a068cbe551 /wpa_supplicant/wpas_glue.c
parent0a9ddd92cd85f47bba0520c4d87414066b43955c (diff)
downloadhostap-da64c266e73805516afb9e99bf90ea2581a55ad3.zip
hostap-da64c266e73805516afb9e99bf90ea2581a55ad3.tar.gz
hostap-da64c266e73805516afb9e99bf90ea2581a55ad3.tar.bz2
Use more consistent set_key seq value when nothing is being set
Use NULL instead of (u8 *) "" as the seq value and make sure the driver wrapper implementations can handle NULL value. This was previously already done in number of places, but not everywhere.
Diffstat (limited to 'wpa_supplicant/wpas_glue.c')
-rw-r--r--wpa_supplicant/wpas_glue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/wpas_glue.c b/wpa_supplicant/wpas_glue.c
index 4af0cd0..607f44b 100644
--- a/wpa_supplicant/wpas_glue.c
+++ b/wpa_supplicant/wpas_glue.c
@@ -212,7 +212,7 @@ static int wpa_eapol_set_wep_key(void *ctx, int unicast, int keyidx,
return wpa_drv_set_key(wpa_s, WPA_ALG_WEP,
unicast ? wpa_s->bssid :
(u8 *) "\xff\xff\xff\xff\xff\xff",
- keyidx, unicast, (u8 *) "", 0, key, keylen);
+ keyidx, unicast, NULL, 0, key, keylen);
}