diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-07-16 16:30:03 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-07-16 16:30:03 +0000 |
commit | e617fcefcd55b1184a1626ce34ab898832208862 (patch) | |
tree | bd7f6ab4d4da324d05a00a8f7017a3a5300e6ab6 /package/madwifi/patches/364-memory_alloc.patch | |
parent | cb95ce1434055cb99b5106434485581b5647d641 (diff) |
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.patch | 13 |
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 |