CONFIG_IEEE80211W define in wpa_supplicant/mlme.c (trunk)

Andriy Tkachuk andriy.tkachuk
Mon Sep 15 07:31:47 PDT 2008


Hi all,

While trying to compile wpa_supplicant with CONFIG_CLIENT_MLME=y i 
noticed following error:

mlme.c: In function 'ieee80211_rx_mgmt_action':
mlme.c:1990: warning: implicit declaration of function 'ieee80211_rx_mgmt_ping_action'
...
mlme.o(.text+0x3007): In function `ieee80211_sta_rx':
/home/ant/hostap/hostap06/hostap/wpa_supplicant/mlme.c:1990: undefined reference to `ieee80211_rx_mgmt_ping_action'
collect2: ld returned 1 exit status


Following patch helped:

diff --git a/wpa_supplicant/mlme.c b/wpa_supplicant/mlme.c
index 092ad41..6cf51aa 100644
--- a/wpa_supplicant/mlme.c
+++ b/wpa_supplicant/mlme.c
@@ -1986,10 +1986,10 @@ static void ieee80211_rx_mgmt_action(struct wpa_supplicant *wpa_s,
                 ieee80211_rx_mgmt_ft_action(wpa_s, mgmt, len, rx_status);
                 break;
  #endif /* CONFIG_IEEE80211R */
+#ifdef CONFIG_IEEE80211W
         case WLAN_ACTION_PING:
                 ieee80211_rx_mgmt_ping_action(wpa_s, mgmt, len, rx_status);
                 break;
-#ifdef CONFIG_IEEE80211W
  #endif /* CONFIG_IEEE80211W */
         default:
                 wpa_printf(MSG_DEBUG, "MLME: unknown Action Category %d",



     Andriy



More information about the Hostap mailing list