rendered paste bodyFrom 3dd3b9ece8b2a48f94fd6a480a6ba0b662c522d3 Mon Sep 17 00:00:00 2001
From: Russell Senior <russell@personaltelco.net>
Date: Sat, 23 Apr 2011 20:34:40 -0700
Subject: [PATCH] fix patch for non-80211N
---
.../hostapd/patches/800-dynamic_20_40_mhz.patch | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/package/hostapd/patches/800-dynamic_20_40_mhz.patch b/package/hostapd/patches/800-dynamic_20_40_mhz.patch
index 4fc677e..8aa33f6 100644
--- a/package/hostapd/patches/800-dynamic_20_40_mhz.patch
+++ b/package/hostapd/patches/800-dynamic_20_40_mhz.patch
@@ -23,11 +23,13 @@
--- a/src/ap/hostapd.c
+++ b/src/ap/hostapd.c
-@@ -285,6 +285,7 @@ static void hostapd_cleanup_iface_pre(st
+@@ -285,6 +285,9 @@ static void hostapd_cleanup_iface_pre(st
*/
static void hostapd_cleanup_iface(struct hostapd_iface *iface)
{
++#ifdef CONFIG_IEEE80211N
+ hostapd_deinit_ht(iface);
++#endif
hostapd_free_hw_features(iface->hw_features, iface->num_hw_features);
iface->hw_features = NULL;
os_free(iface->current_rates);
--
1.7.4.4