Remove overly complex hostapd setup sequence with n+1 callbacks
[libeap.git] / hostapd / hostapd.h
index 6f4832e..87b18cd 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * hostapd / Initialization and configuration
  * Host AP kernel driver
- * Copyright (c) 2002-2007, Jouni Malinen <j@w1.fi>
+ * Copyright (c) 2002-2008, Jouni Malinen <j@w1.fi>
  * Copyright (c) 2007-2008, Intel Corporation
  *
  * This program is free software; you can redistribute it and/or modify
@@ -173,24 +173,12 @@ struct hostapd_data {
 
 
 /**
- * hostapd_iface_cb - Generic callback type for per-iface asynchronous requests
- * @iface: the interface the event occured on.
- * @status: 0 if the request succeeded; -1 if the request failed.
- */
-typedef void (*hostapd_iface_cb)(struct hostapd_iface *iface, int status);
-
-
-struct hostapd_config_change;
-
-/**
  * struct hostapd_iface - hostapd per-interface data structure
  */
 struct hostapd_iface {
        char *config_fname;
        struct hostapd_config *conf;
 
-       hostapd_iface_cb setup_cb;
-
        size_t num_bss;
        struct hostapd_data **bss;
 
@@ -206,7 +194,6 @@ struct hostapd_iface {
         * current_mode->channels */
        int num_rates;
        struct hostapd_rate_data *current_rates;
-       hostapd_iface_cb hw_mode_sel_cb;
 
        u16 hw_flags;
 
@@ -234,17 +221,6 @@ struct hostapd_iface {
        /* Overlapping BSS information */
        int olbc_ht;
 
-       int dfs_enable;
-       u8 pwr_const;
-       unsigned int tx_power;
-       unsigned int sta_max_power;
-
-       unsigned int channel_switch;
-
-       struct hostapd_config_change *change;
-       hostapd_iface_cb reload_iface_cb;
-       hostapd_iface_cb config_reload_cb;
-
 #ifdef CONFIG_IEEE80211N
        u16 ht_op_mode;
 #endif /* CONFIG_IEEE80211N */