From e617fcefcd55b1184a1626ce34ab898832208862 Mon Sep 17 00:00:00 2001 From: nbd Date: Wed, 16 Jul 2008 16:30:03 +0000 Subject: 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 --- package/madwifi/patches/364-memory_alloc.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 package/madwifi/patches/364-memory_alloc.patch (limited to 'package/madwifi/patches/364-memory_alloc.patch') diff --git a/package/madwifi/patches/364-memory_alloc.patch b/package/madwifi/patches/364-memory_alloc.patch new file mode 100644 index 000000000..d0d76a179 --- /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 -- cgit v1.2.3