From a8ea28ad9064395bf635ecd5d957796e2f0163c4 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 11 Nov 2009 00:34:42 +0000 Subject: hostapd: update to latest git, remove openssl dependency for hostapd-full, it works with internal crypto now SVN-Revision: 18360 --- package/hostapd/patches/100-madwifi_fix.patch | 8 ++++---- package/hostapd/patches/110-countrycode.patch | 14 ++++++++++++++ package/hostapd/patches/120-countrycode.patch | 14 -------------- package/hostapd/patches/120-nl80211_ap_fix.patch | 16 ++++++++++++++++ package/hostapd/patches/130-libnl_update.patch | 18 ------------------ 5 files changed, 34 insertions(+), 36 deletions(-) create mode 100644 package/hostapd/patches/110-countrycode.patch delete mode 100644 package/hostapd/patches/120-countrycode.patch create mode 100644 package/hostapd/patches/120-nl80211_ap_fix.patch delete mode 100644 package/hostapd/patches/130-libnl_update.patch (limited to 'package/hostapd/patches') diff --git a/package/hostapd/patches/100-madwifi_fix.patch b/package/hostapd/patches/100-madwifi_fix.patch index 8f8be442b9..915b86a641 100644 --- a/package/hostapd/patches/100-madwifi_fix.patch +++ b/package/hostapd/patches/100-madwifi_fix.patch @@ -1,6 +1,6 @@ ---- a/hostapd/driver_madwifi.c -+++ b/hostapd/driver_madwifi.c -@@ -312,6 +312,7 @@ madwifi_set_iface_flags(void *priv, int +--- a/src/drivers/driver_madwifi.c ++++ b/src/drivers/driver_madwifi.c +@@ -318,6 +318,7 @@ madwifi_set_iface_flags(void *priv, int { struct madwifi_driver_data *drv = priv; struct ifreq ifr; @@ -8,7 +8,7 @@ wpa_printf(MSG_DEBUG, "%s: dev_up=%d", __func__, dev_up); -@@ -326,10 +327,14 @@ madwifi_set_iface_flags(void *priv, int +@@ -332,10 +333,14 @@ madwifi_set_iface_flags(void *priv, int return -1; } diff --git a/package/hostapd/patches/110-countrycode.patch b/package/hostapd/patches/110-countrycode.patch new file mode 100644 index 0000000000..7c9d0219d9 --- /dev/null +++ b/package/hostapd/patches/110-countrycode.patch @@ -0,0 +1,14 @@ +--- a/hostapd/hostapd.c ++++ b/hostapd/hostapd.c +@@ -1344,10 +1344,8 @@ static int setup_interface(struct hostap + if (hapd->iconf->country[0] && hapd->iconf->country[1]) { + os_memcpy(country, hapd->iconf->country, 3); + country[3] = '\0'; +- if (hostapd_set_country(hapd, country) < 0) { ++ if (hostapd_set_country(hapd, country) < 0) + wpa_printf(MSG_ERROR, "Failed to set country code"); +- return -1; +- } + } + + if (hapd->iconf->bridge_packets != INTERNAL_BRIDGE_DO_NOT_CONTROL && diff --git a/package/hostapd/patches/120-countrycode.patch b/package/hostapd/patches/120-countrycode.patch deleted file mode 100644 index 8ffc65ca21..0000000000 --- a/package/hostapd/patches/120-countrycode.patch +++ /dev/null @@ -1,14 +0,0 @@ ---- a/hostapd/hostapd.c -+++ b/hostapd/hostapd.c -@@ -1546,10 +1546,8 @@ static int setup_interface(struct hostap - if (hapd->iconf->country[0] && hapd->iconf->country[1]) { - os_memcpy(country, hapd->iconf->country, 3); - country[3] = '\0'; -- if (hostapd_set_country(hapd, country) < 0) { -+ if (hostapd_set_country(hapd, country) < 0) - wpa_printf(MSG_ERROR, "Failed to set country code"); -- return -1; -- } - } - - if (hapd->iconf->ieee80211d && diff --git a/package/hostapd/patches/120-nl80211_ap_fix.patch b/package/hostapd/patches/120-nl80211_ap_fix.patch new file mode 100644 index 0000000000..78475e87d5 --- /dev/null +++ b/package/hostapd/patches/120-nl80211_ap_fix.patch @@ -0,0 +1,16 @@ +--- a/src/drivers/driver_nl80211.c ++++ b/src/drivers/driver_nl80211.c +@@ -4418,10 +4418,10 @@ static void *i802_init(struct hostapd_da + /* start listening for EAPOL on the default AP interface */ + add_ifidx(drv, drv->ifindex); + +- if (params->bssid) { +- if (hostapd_set_iface_flags(drv, drv->ifname, 0)) +- goto failed; ++ if (hostapd_set_iface_flags(drv, drv->ifname, 0)) ++ goto failed; + ++ if (params->bssid) { + if (set_ifhwaddr(drv, drv->ifname, params->bssid)) + goto failed; + } diff --git a/package/hostapd/patches/130-libnl_update.patch b/package/hostapd/patches/130-libnl_update.patch deleted file mode 100644 index 51bc58a08a..0000000000 --- a/package/hostapd/patches/130-libnl_update.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- a/hostapd/driver_nl80211.c -+++ b/hostapd/driver_nl80211.c -@@ -29,6 +29,7 @@ - #include "wireless_copy.h" - #include - #include -+#include - - #include "hostapd.h" - #include "driver.h" -@@ -45,6 +46,7 @@ - /* libnl 2.0 compatibility code */ - #define nl_handle_alloc_cb nl_socket_alloc_cb - #define nl_handle_destroy nl_socket_free -+#define nl_handle nl_sock - #endif /* CONFIG_LIBNL20 */ - - enum ieee80211_msg_type { -- cgit v1.2.3