]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix GAS server ifdef block use
authorJouni Malinen <j@w1.fi>
Mon, 1 May 2017 14:29:06 +0000 (17:29 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 1 May 2017 14:39:14 +0000 (17:39 +0300)
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 <j@w1.fi>
src/ap/gas_serv.c

index da00bdcec2efdd22f6c8207e12cffc9dfb17223d..155728d4efa2f5503ab0eb9975d012481f85964f 100644 (file)
@@ -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);