]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wlantest: Fix compiler warnings
authorJouni Malinen <jouni.malinen@atheros.com>
Mon, 24 Jan 2011 14:57:36 +0000 (16:57 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 24 Jan 2011 14:57:36 +0000 (16:57 +0200)
wlantest/rx_data.c

index 9e0432192961e67b2925316c7a2b957becd92946..57f871ccd51dbc2d0850bcd8422f36f2ccc60187 100644 (file)
@@ -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;