]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix CONFIG_INTERWORKING=y build without CONFIG_HS20=y
authorJouni Malinen <j@w1.fi>
Mon, 1 May 2017 14:24:18 +0000 (17:24 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 1 May 2017 14:39:14 +0000 (17:39 +0300)
Commit 34f28519027d2504168e109519112c1b12d1fdf6 ('MBO: Parse MBO
ANQP-element on STA') started using the type variable outside
CONFIG_HS20 block, but forgot to remove the ifdef from the variable
declaration.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/interworking.c

index 1965a3e8c592ffab6e086207b5850837a603d88d..225f950eef1d91339d22e518c51fa14df46d2cf4 100644 (file)
@@ -2807,9 +2807,7 @@ static void interworking_parse_rx_anqp_resp(struct wpa_supplicant *wpa_s,
 {
        const u8 *pos = data;
        struct wpa_bss_anqp *anqp = NULL;
-#ifdef CONFIG_HS20
        u8 type;
-#endif /* CONFIG_HS20 */
 
        if (bss)
                anqp = bss->anqp;