diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index 7ef119ff7..3dc144fb1 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -967,6 +967,7 @@ endif ifdef CONFIG_IEEE80211R CFLAGS += -DCONFIG_IEEE80211R OBJS += ../src/rsn_supp/wpa_ft.o +NEED_80211_COMMON=y endif ifndef CONFIG_NO_WPA @@ -1042,8 +1043,13 @@ CFLAGS += -DCONFIG_SME endif ifdef CONFIG_CLIENT_MLME -OBJS += mlme.o ../src/common/ieee802_11_common.o +OBJS += mlme.o CFLAGS += -DCONFIG_CLIENT_MLME +NEED_80211_COMMON=y +endif + +ifdef NEED_80211_COMMON +OBJS += ../src/common/ieee802_11_common.o endif ifndef CONFIG_MAIN