diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2009-01-08 18:40:14 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2009-01-08 18:40:14 +0200 |
commit | 9c584c06bd896a925db36f6f0642a40fe1dd34fb (patch) | |
tree | e25ca1332db6d27a56e6b9850098b956c79f0992 /hostapd/ieee802_11.h | |
parent | bb305cbdcc95c85366b93f1809e372528b3d31a8 (diff) | |
download | external_wpa_supplicant_8_ti-9c584c06bd896a925db36f6f0642a40fe1dd34fb.zip external_wpa_supplicant_8_ti-9c584c06bd896a925db36f6f0642a40fe1dd34fb.tar.gz external_wpa_supplicant_8_ti-9c584c06bd896a925db36f6f0642a40fe1dd34fb.tar.bz2 |
Remove MLME code from build if none of the enabled drivers need it
Diffstat (limited to 'hostapd/ieee802_11.h')
-rw-r--r-- | hostapd/ieee802_11.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/hostapd/ieee802_11.h b/hostapd/ieee802_11.h index ca8ef93..91f5728 100644 --- a/hostapd/ieee802_11.h +++ b/hostapd/ieee802_11.h @@ -38,11 +38,31 @@ void ieee802_11_mgmt(struct hostapd_data *hapd, u8 *buf, size_t len, void ieee802_11_mgmt_cb(struct hostapd_data *hapd, u8 *buf, size_t len, u16 stype, int ok); void ieee802_11_print_ssid(char *buf, const u8 *ssid, u8 len); +#ifdef NEED_MLME void ieee80211_michael_mic_failure(struct hostapd_data *hapd, const u8 *addr, int local); int ieee802_11_get_mib(struct hostapd_data *hapd, char *buf, size_t buflen); int ieee802_11_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta, char *buf, size_t buflen); +#else /* NEED_MLME */ +static inline void ieee80211_michael_mic_failure(struct hostapd_data *hapd, + const u8 *addr, int local) +{ +} + +static inline int ieee802_11_get_mib(struct hostapd_data *hapd, char *buf, + size_t buflen) +{ + return 0; +} + +static inline int ieee802_11_get_mib_sta(struct hostapd_data *hapd, + struct sta_info *sta, + char *buf, size_t buflen) +{ + return 0; +} +#endif /* NEED_MLME */ u16 hostapd_own_capab_info(struct hostapd_data *hapd, struct sta_info *sta, int probe); u8 * hostapd_eid_supp_rates(struct hostapd_data *hapd, u8 *eid); |