aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-12-17 08:22:07 +0200
committerJouni Malinen <j@w1.fi>2010-12-17 08:22:07 +0200
commit30e09b0d75660e55d47f755ba9db95e466c42a9d (patch)
tree09127c15f842cbfad04eda8a02fe3b2ff941ad8e /wlantest
parentcb384549e2f69f8f7b1afede7d9a2274fd7235ac (diff)
downloadexternal_wpa_supplicant_8_ti-30e09b0d75660e55d47f755ba9db95e466c42a9d.zip
external_wpa_supplicant_8_ti-30e09b0d75660e55d47f755ba9db95e466c42a9d.tar.gz
external_wpa_supplicant_8_ti-30e09b0d75660e55d47f755ba9db95e466c42a9d.tar.bz2
wlantest: Avoid aliasing a function parameter by renaming local variable
Diffstat (limited to 'wlantest')
-rw-r--r--wlantest/rx_eapol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wlantest/rx_eapol.c b/wlantest/rx_eapol.c
index 9d920e3..c7851b8 100644
--- a/wlantest/rx_eapol.c
+++ b/wlantest/rx_eapol.c
@@ -676,8 +676,8 @@ static void rx_data_eapol_key_1_of_2(struct wlantest *wt, const u8 *dst,
if (sta->proto & WPA_PROTO_RSN)
learn_kde_keys(bss, decrypted, decrypted_len, hdr->key_rsc);
else {
- int len = bss->group_cipher == WPA_CIPHER_TKIP ? 32 : 16;
- if (decrypted_len == len) {
+ int klen = bss->group_cipher == WPA_CIPHER_TKIP ? 32 : 16;
+ if (decrypted_len == klen) {
const u8 *rsc = hdr->key_rsc;
int id;
id = (key_info & WPA_KEY_INFO_KEY_INDEX_MASK) >>