diff --git a/indigo_api_callback_dut.c b/indigo_api_callback_dut.c index 6f7edae..2aefdd5 100644 --- a/indigo_api_callback_dut.c +++ b/indigo_api_callback_dut.c @@ -1415,8 +1415,10 @@ static int get_mac_addr_handler(struct packet_wrapper *req, struct packet_wrappe goto done; #endif /* End Of CONFIG_P2P */ } else { +#ifdef CONFIG_AP wlan = get_wireless_interface_info(bss_info.band, bss_info.identifier); w = wpa_ctrl_open(get_hapd_ctrl_path_by_id(wlan)); +#endif /* End Of CONFIG_AP */ } if (!w) {