Fix build with CONFIG_CLIENT_MLME, but without CONFIG_IEEE80211W
authorAndriy Tkachuk <andriy.tkachuk@inobject.com>
Wed, 24 Sep 2008 10:02:17 +0000 (13:02 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 24 Sep 2008 10:02:17 +0000 (13:02 +0300)
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

wpa_supplicant/mlme.c

index 092ad41..6cf51aa 100644 (file)
@@ -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",