]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix compiler warning when CONFIG_IEEE80211R is not included
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 13 Mar 2013 10:38:26 +0000 (12:38 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 13 Mar 2013 10:40:57 +0000 (12:40 +0200)
Commit 6a1ce39599c857e6e612d8dd81e892ec5ca36c7c moved the bssid
variable declaration to be outside CONFIG_IEEE80211R block and
triggered a compiler warning about unused variable.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

wpa_supplicant/events.c

index 186db8aa281a43d0cb2fb88543164b21142552bc..d91dd314206ab85bc833e03fb613d51d68d9ad37 100644 (file)
@@ -1438,7 +1438,9 @@ static int wpa_supplicant_event_associnfo(struct wpa_supplicant *wpa_s,
 {
        int l, len, found = 0, wpa_found, rsn_found;
        const u8 *p;
+#ifdef CONFIG_IEEE80211R
        u8 bssid[ETH_ALEN];
+#endif /* CONFIG_IEEE80211R */
 
        wpa_dbg(wpa_s, MSG_DEBUG, "Association info event");
        if (data->assoc_info.req_ies)