diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-07-16 16:30:03 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-07-16 16:30:03 +0000 |
commit | 0fb8aa363f2972009439cee7351d1e2289652cdb (patch) | |
tree | 1bb03ad2ecc44f24459076e115630a010ca7c65a /package/madwifi/patches/364-memory_alloc.patch | |
parent | 7ac73f836285ad39ea7831ef8c04dcf645b4a8cd (diff) | |
download | mtk-20170518-0fb8aa363f2972009439cee7351d1e2289652cdb.zip mtk-20170518-0fb8aa363f2972009439cee7351d1e2289652cdb.tar.gz mtk-20170518-0fb8aa363f2972009439cee7351d1e2289652cdb.tar.bz2 |
add some madwifi fixes and enhancements by Sven-Ola, refresh patches
SVN-Revision: 11848
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 0000000..d0d76a1 --- /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 |