hostapd: fix wpad-mini compile error (#16700)
authorFelix Fietkau <nbd@openwrt.org>
Thu, 5 Jun 2014 21:14:02 +0000 (21:14 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 5 Jun 2014 21:14:02 +0000 (21:14 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41023

package/network/services/hostapd/patches/130-no_eapol_fix.patch [new file with mode: 0644]
package/network/services/hostapd/patches/200-multicall.patch
package/network/services/hostapd/patches/310-rescan_immediately.patch
package/network/services/hostapd/patches/370-ap_sta_support.patch
package/network/services/hostapd/patches/500-wpa_supplicant-add-new-config-params-to-be-used-with.patch
package/network/services/hostapd/patches/502-wpa_s-support-htmode-param.patch

diff --git a/package/network/services/hostapd/patches/130-no_eapol_fix.patch b/package/network/services/hostapd/patches/130-no_eapol_fix.patch
new file mode 100644 (file)
index 0000000..3c19cb3
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/wpa_supplicant/wpa_supplicant.c
++++ b/wpa_supplicant/wpa_supplicant.c
+@@ -247,9 +247,10 @@ void wpa_supplicant_cancel_auth_timeout(
+  */
+ void wpa_supplicant_initiate_eapol(struct wpa_supplicant *wpa_s)
+ {
++      struct wpa_ssid *ssid = wpa_s->current_ssid;
++
+ #ifdef IEEE8021X_EAPOL
+       struct eapol_config eapol_conf;
+-      struct wpa_ssid *ssid = wpa_s->current_ssid;
+ #ifdef CONFIG_IBSS_RSN
+       if (ssid->mode == WPAS_MODE_IBSS &&
index e8bbe450f925438ed88da95a0bdc9c97b842ca04..efe151c3a3cc44fa6cd729047b29b7127d2db826 100644 (file)
  
 --- a/wpa_supplicant/wpa_supplicant.c
 +++ b/wpa_supplicant/wpa_supplicant.c
-@@ -3810,6 +3810,9 @@ static void wpa_supplicant_deinit_iface(
+@@ -3811,6 +3811,9 @@ static void wpa_supplicant_deinit_iface(
        os_free(wpa_s);
  }
  
  
  /**
   * wpa_supplicant_add_iface - Add a new network interface
-@@ -4001,6 +4004,7 @@ struct wpa_global * wpa_supplicant_init(
+@@ -4002,6 +4005,7 @@ struct wpa_global * wpa_supplicant_init(
        wpa_msg_register_ifname_cb(wpa_supplicant_msg_ifname_cb);
  #endif /* CONFIG_NO_WPA_MSG */
  
index 3b1f4937706b1928039524ed3a125175a71ec365..dac0f6e4e6c5b37a6590065f680958b6c481085f 100644 (file)
@@ -1,6 +1,6 @@
 --- a/wpa_supplicant/wpa_supplicant.c
 +++ b/wpa_supplicant/wpa_supplicant.c
-@@ -2751,7 +2751,7 @@ static struct wpa_supplicant * wpa_suppl
+@@ -2752,7 +2752,7 @@ static struct wpa_supplicant * wpa_suppl
        if (wpa_s == NULL)
                return NULL;
        wpa_s->scan_req = INITIAL_SCAN_REQ;
index 3a623c45bffae6a0ccea29f9bf84d1fb89dfdd56..8a92ead99e784bc6923909b5c719f473aab3d228 100644 (file)
  /* Configure default/group WEP keys for static WEP */
  int wpa_set_wep_keys(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
  {
-@@ -710,8 +759,12 @@ void wpa_supplicant_set_state(struct wpa
+@@ -711,8 +760,12 @@ void wpa_supplicant_set_state(struct wpa
  #endif /* CONFIG_P2P */
  
                sme_sched_obss_scan(wpa_s, 1);
                wpa_s->new_connection = 1;
                wpa_drv_set_operstate(wpa_s, 0);
  #ifndef IEEE8021X_EAPOL
-@@ -3594,6 +3647,20 @@ static int wpa_supplicant_init_iface(str
+@@ -3595,6 +3648,20 @@ static int wpa_supplicant_init_iface(str
                           sizeof(wpa_s->bridge_ifname));
        }
  
        /* RSNA Supplicant Key Management - INITIALIZE */
        eapol_sm_notify_portEnabled(wpa_s->eapol, FALSE);
        eapol_sm_notify_portValid(wpa_s->eapol, FALSE);
-@@ -3797,6 +3864,11 @@ static void wpa_supplicant_deinit_iface(
+@@ -3798,6 +3865,11 @@ static void wpa_supplicant_deinit_iface(
        if (terminate)
                wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_TERMINATING);
  
index 74793ef3e180e837fc33960d73cbb6661fbc9a6f..9f4a5f5ec00b0eff4225acdbf7ced964522ccab6 100644 (file)
@@ -175,7 +175,7 @@ Signed-hostap: Antonio Quartulli <ordex@autistici.org>
         * macsec_policy - Determines the policy for MACsec secure session
 --- a/wpa_supplicant/wpa_supplicant.c
 +++ b/wpa_supplicant/wpa_supplicant.c
-@@ -1805,6 +1805,13 @@ static void wpas_start_assoc_cb(struct w
+@@ -1806,6 +1806,13 @@ static void wpas_start_assoc_cb(struct w
                        params.beacon_int = ssid->beacon_int;
                else
                        params.beacon_int = wpa_s->conf->beacon_int;
index 45088ad1713c6b2689b66f55818bc58ada101b59..b4c403453acdfe12b497130815847b22e546e3d3 100644 (file)
@@ -145,7 +145,7 @@ Signed-off-by: Antonio Quartulli <ordex@autistici.org>
        /**
 --- a/wpa_supplicant/wpa_supplicant.c
 +++ b/wpa_supplicant/wpa_supplicant.c
-@@ -1812,6 +1812,8 @@ static void wpas_start_assoc_cb(struct w
+@@ -1813,6 +1813,8 @@ static void wpas_start_assoc_cb(struct w
                        i++;
                }
                params.mcast_rate = ssid->mcast_rate;