From: Felix Fietkau Date: Tue, 20 Apr 2010 21:25:59 +0000 (+0000) Subject: [backfire] merge hostapd fix from r21065 X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=784e768bf9fd70f325496314341972cc099fee99 [backfire] merge hostapd fix from r21065 SVN-Revision: 21066 --- 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 &&