summaryrefslogtreecommitdiff
path: root/package/hostapd/patches
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-04-20 21:25:14 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-04-20 21:25:14 +0000
commit09eb5bc27fb023dce65f79e3cb1e274bc9d4db51 (patch)
treecaa2aa91642a8a44a80ef847cc1eb08196d428da /package/hostapd/patches
parent1ffbdd6858a4623eecafa28acde4356141ff62f2 (diff)
hostapd: fix segmentation fault on non-mac80211 drivers (#7202)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21065 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostapd/patches')
-rw-r--r--package/hostapd/patches/370-basic_rates.patch12
1 files changed, 7 insertions, 5 deletions
diff --git a/package/hostapd/patches/370-basic_rates.patch b/package/hostapd/patches/370-basic_rates.patch
index 674e232f54..ef4691bbd6 100644
--- a/package/hostapd/patches/370-basic_rates.patch
+++ b/package/hostapd/patches/370-basic_rates.patch
@@ -1,15 +1,17 @@
--- a/src/ap/hostapd.c
+++ b/src/ap/hostapd.c
-@@ -707,6 +707,14 @@ int hostapd_setup_interface_complete(str
+@@ -707,6 +707,16 @@ int hostapd_setup_interface_complete(str
}
}
-+ if (hostapd_prepare_rates(hapd, iface->current_mode)) {
-+ wpa_printf(MSG_ERROR, "Failed to prepare rates table.");
-+ hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211,
++ if (iface->current_mode) {
++ if (hostapd_prepare_rates(hapd, iface->current_mode)) {
++ wpa_printf(MSG_ERROR, "Failed to prepare rates table.");
++ hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211,
+ HOSTAPD_LEVEL_WARNING,
+ "Failed to prepare rates table.");
-+ return -1;
++ return -1;
++ }
+ }
+
if (hapd->iconf->rts_threshold > -1 &&