diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2011-01-24 16:57:36 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2011-01-24 16:57:36 +0200 |
commit | 9559a7f882b26d822e263b078e426a5854d52a3a (patch) | |
tree | c950b7fe490c2df81e677ecb35fe1128cfba7583 /wlantest | |
parent | 44a0486607082dbbed54a253e1177995bee88656 (diff) | |
download | external_wpa_supplicant_8_ti-9559a7f882b26d822e263b078e426a5854d52a3a.zip external_wpa_supplicant_8_ti-9559a7f882b26d822e263b078e426a5854d52a3a.tar.gz external_wpa_supplicant_8_ti-9559a7f882b26d822e263b078e426a5854d52a3a.tar.bz2 |
wlantest: Fix compiler warnings
Diffstat (limited to 'wlantest')
-rw-r--r-- | wlantest/rx_data.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/wlantest/rx_data.c b/wlantest/rx_data.c index 9e04321..57f871c 100644 --- a/wlantest/rx_data.c +++ b/wlantest/rx_data.c @@ -339,7 +339,7 @@ skip_replay_det: decrypted = ccmp_decrypt(sta->ptk.tk1, hdr, data, len, &dlen); if (decrypted) { u16 fc = le_to_host16(hdr->frame_control); - u8 *peer_addr = NULL; + const u8 *peer_addr = NULL; if (!(fc & (WLAN_FC_FROMDS | WLAN_FC_TODS))) peer_addr = hdr->addr1; rx_data_process(wt, bss->bssid, sta->addr, dst, src, decrypted, @@ -380,7 +380,6 @@ static void rx_data_bss(struct wlantest *wt, const struct ieee80211_hdr *hdr, rx_data_bss_prot(wt, hdr, qos, dst, src, data, len); else { const u8 *bssid, *sta_addr, *peer_addr; - int direct_link = !(fc & (WLAN_FC_FROMDS | WLAN_FC_TODS)); if (fc & WLAN_FC_TODS) { bssid = hdr->addr1; sta_addr = hdr->addr2; |