Mark STA authorized if IEEE 802.1X and WPA is not used
[wpasupplicant] / hostapd / beacon.h
index 18e0da2..afca98b 100644 (file)
 #ifndef BEACON_H
 #define BEACON_H
 
+struct ieee80211_mgmt;
+
 void handle_probe_req(struct hostapd_data *hapd, struct ieee80211_mgmt *mgmt,
                      size_t len);
+#ifdef NEED_MLME
 void ieee802_11_set_beacon(struct hostapd_data *hapd);
 void ieee802_11_set_beacons(struct hostapd_iface *iface);
+#else /* NEED_MLME */
+static inline void ieee802_11_set_beacon(struct hostapd_data *hapd)
+{
+}
+
+static inline void ieee802_11_set_beacons(struct hostapd_iface *iface)
+{
+}
+#endif /* NEED_MLME */
 
 #endif /* BEACON_H */