aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/patches/364-memory_alloc.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-07-16 16:30:03 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-07-16 16:30:03 +0000
commit9e7b521696118aa6f925810155c632420396ce0a (patch)
treebd7f6ab4d4da324d05a00a8f7017a3a5300e6ab6 /package/madwifi/patches/364-memory_alloc.patch
parent08351b44893b1092c3865326ff7c03506c75c3dc (diff)
downloadupstream-9e7b521696118aa6f925810155c632420396ce0a.tar.gz
upstream-9e7b521696118aa6f925810155c632420396ce0a.tar.bz2
upstream-9e7b521696118aa6f925810155c632420396ce0a.zip
add some madwifi fixes and enhancements by Sven-Ola, refresh patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11848 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/patches/364-memory_alloc.patch')
-rw-r--r--package/madwifi/patches/364-memory_alloc.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/madwifi/patches/364-memory_alloc.patch b/package/madwifi/patches/364-memory_alloc.patch
new file mode 100644
index 0000000000..d0d76a1792
--- /dev/null
+++ b/package/madwifi/patches/364-memory_alloc.patch
@@ -0,0 +1,13 @@
+--- a/ath/if_ath.c
++++ b/ath/if_ath.c
+@@ -539,8 +539,8 @@
+
+ /* Allocate space for dynamically determined maximum VAP count */
+ sc->sc_bslot =
+- kmalloc(ath_maxvaps * sizeof(struct ieee80211vap), GFP_KERNEL);
+- memset(sc->sc_bslot, 0, ath_maxvaps * sizeof(struct ieee80211vap));
++ kmalloc(ath_maxvaps * sizeof(struct ieee80211vap*), GFP_KERNEL);
++ memset(sc->sc_bslot, 0, ath_maxvaps * sizeof(struct ieee80211vap*));
+
+ /*
+ * Cache line size is used to size and align various