From c0f4c0f1b1968734a28770a99883ef39123a77c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20G=C3=B6rner?= <5477952+MaxG87@users.noreply.github.com> Date: Tue, 19 Oct 2021 21:02:30 +0200 Subject: [PATCH] Fix compilation failure when specific option is not set If the option CONFIG_LAYER2_ROAMING is unset, at the changed location a closing brace without correct counterpart is inserted. This would break the compilation. Now that brace is guarded by a preprocessor directive. --- core/rtw_mlme.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/rtw_mlme.c b/core/rtw_mlme.c index 3bd19c3..bbc53c6 100644 --- a/core/rtw_mlme.c +++ b/core/rtw_mlme.c @@ -3455,7 +3455,9 @@ void rtw_drv_scan_by_self(_adapter *padapter, u8 reason) #endif RTW_INFO(FUNC_ADPT_FMT" exit BusyTraffic\n", FUNC_ADPT_ARG(padapter)); goto exit; + #ifdef CONFIG_LAYER2_ROAMING } + #endif } else if (ssc_chk != SS_ALLOW) goto exit;