iw: add patch for setting coverage class / distance
[openwrt.git] / package / madwifi / patches / 364-memory_alloc.patch
1 --- a/ath/if_ath.c
2 +++ b/ath/if_ath.c
3 @@ -539,8 +539,8 @@ ath_attach(u_int16_t devid, struct net_d
4
5 /* Allocate space for dynamically determined maximum VAP count */
6 sc->sc_bslot =
7 - kmalloc(ath_maxvaps * sizeof(struct ieee80211vap), GFP_KERNEL);
8 - memset(sc->sc_bslot, 0, ath_maxvaps * sizeof(struct ieee80211vap));
9 + kmalloc(ath_maxvaps * sizeof(struct ieee80211vap*), GFP_KERNEL);
10 + memset(sc->sc_bslot, 0, ath_maxvaps * sizeof(struct ieee80211vap*));
11
12 /*
13 * Cache line size is used to size and align various
This page took 0.038845 seconds and 5 git commands to generate.