From f541148257421de2a523e43eaa75486232350563 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 1 May 2017 17:29:06 +0300 Subject: [PATCH] Fix GAS server ifdef block use Commit 941caed98009104484ca894dd49f87bf23cff091 ('MBO: Add MBO ANQP-element processing on AP') changed the design by using the rx_anqp_vendor_specific() function to process all ANQP vendor specific elements. However, the caller for this was within ifdef CONFIG_HS20 block. Fix this by calling the function even in CONFIG_HS20=y is not included in the build. This fixes CONFIG_MBO=y builds without CONFIG_HS20=y. Signed-off-by: Jouni Malinen --- src/ap/gas_serv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ap/gas_serv.c b/src/ap/gas_serv.c index da00bdcec..155728d4e 100644 --- a/src/ap/gas_serv.c +++ b/src/ap/gas_serv.c @@ -1492,11 +1492,9 @@ static void gas_serv_rx_gas_initial_req(struct hostapd_data *hapd, case ANQP_QUERY_LIST: rx_anqp_query_list(hapd, pos, pos + elen, &qi); break; -#ifdef CONFIG_HS20 case ANQP_VENDOR_SPECIFIC: rx_anqp_vendor_specific(hapd, pos, pos + elen, &qi); break; -#endif /* CONFIG_HS20 */ default: wpa_printf(MSG_DEBUG, "ANQP: Unsupported Query " "Request element %u", info_id);