Ticket #907: madwifi-refcnt-push-r2115.diff
| File madwifi-refcnt-push-r2115.diff, 5.2 kB (added by mike.taylor@apprion.com, 5 years ago) |
|---|
-
b/ath/if_ath.c
old new 1153 1153 } 1154 1154 if (sc->sc_hastsfadd) 1155 1155 ath_hal_settsfadjust(sc->sc_ah, sc->sc_stagbeacons); 1156 SET_NETDEV_DEV(dev, mdev->class_dev.dev);1156 SET_NETDEV_DEV(dev, ATH_GET_NETDEV_DEV(mdev)); 1157 1157 /* complete setup */ 1158 1158 (void) ieee80211_vap_attach(vap, 1159 1159 ieee80211_media_change, ieee80211_media_status); … … 1326 1326 ath_init(dev); 1327 1327 } 1328 1328 1329 void1330 ath_shutdown(struct net_device *dev)1331 {1332 struct ath_softc *sc = dev->priv;1333 1334 DPRINTF(sc, ATH_DEBUG_ANY, "%s: flags %x\n", __func__, dev->flags);1335 ath_stop(dev);1336 }1337 1338 1329 static void 1339 1330 ath_uapsd_processtriggers(struct ath_softc *sc) 1340 1331 { -
b/ath/if_athvar.h
old new 110 110 #define SET_NETDEV_DEV(ndev, pdev) 111 111 #endif 112 112 113 #ifdef to_net_dev 114 #define ATH_GET_NETDEV_DEV(ndev) ((ndev)->dev.parent) 115 #else 116 #define ATH_GET_NETDEV_DEV(ndev) ((ndev)->class_dev.dev) 117 #endif 118 113 119 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,23) 114 120 static inline struct net_device *_alloc_netdev(int sizeof_priv, const char *mask, 115 121 void (*setup)(struct net_device *)) … … 725 731 int ath_detach(struct net_device *); 726 732 void ath_resume(struct net_device *); 727 733 void ath_suspend(struct net_device *); 728 void ath_shutdown(struct net_device *);729 734 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) 730 735 irqreturn_t ath_intr(int, void *); 731 736 #else -
b/include/compat.h
old new 78 78 #define isset(a,i) ((a)[(i)/NBBY] & (1<<((i)%NBBY))) 79 79 #define isclr(a,i) (((a)[(i)/NBBY] & (1<<((i)%NBBY))) == 0) 80 80 81 #ifndef __packed 81 82 #define __packed __attribute__((__packed__)) 83 #endif 84 82 85 #define __printflike(_a,_b) \ 83 86 __attribute__ ((__format__ (__printf__, _a, _b))) 84 87 #define __offsetof(t,m) offsetof(t,m) -
b/net80211/ieee80211.c
old new 504 504 vap->iv_dtim_period = IEEE80211_DTIM_DEFAULT; 505 505 vap->iv_des_chan = IEEE80211_CHAN_ANYC; /* any channel is ok */ 506 506 507 vap->iv_monitor_crc_errors = 0; 508 vap->iv_monitor_phy_errors = 0; 509 507 510 IEEE80211_ADDR_COPY(vap->iv_myaddr, ic->ic_myaddr); 508 511 /* NB: defer setting dev_addr so driver can override */ 509 512 -
b/net80211/ieee80211_crypto_ccmp.c
old new 57 57 58 58 #define AES_BLOCK_LEN 16 59 59 60 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) 61 #define crypto_cipher_cast(c) (c) 62 #endif 63 60 64 struct ccmp_ctx { 61 65 struct ieee80211vap *cc_vap; /* for diagnostics + statistics */ 62 66 struct ieee80211com *cc_ic; … … 145 149 return 0; 146 150 } 147 151 148 crypto_cipher_setkey(ctx->cc_tfm, k->wk_key, k->wk_keylen); 152 crypto_cipher_setkey(crypto_cipher_cast(ctx->cc_tfm), 153 k->wk_key, k->wk_keylen); 149 154 } 150 155 return 1; 151 156 } … … 300 305 rijndael_encrypt(struct crypto_tfm *tfm, const void *src, void *dst) 301 306 { 302 307 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) 303 crypto_cipher_encrypt_one( tfm, dst, src);308 crypto_cipher_encrypt_one(crypto_cipher_cast(tfm), dst, src); 304 309 #else 305 310 struct scatterlist sg_src; 306 311 struct scatterlist sg_dst; -
b/net80211/ieee80211_wireless.c
old new 2019 2019 vap->iv_xrvap = ic->ic_vap_create(ic, name, vap->iv_unit, 2020 2020 IEEE80211_M_HOSTAP,IEEE80211_VAP_XR | 2021 2021 IEEE80211_CLONE_BSSID, dev); 2022 if (!vap->iv_xrvap) 2023 return; 2022 2024 vap->iv_xrvap->iv_fragthreshold = IEEE80211_XR_FRAG_THRESHOLD; 2023 2025 copy_des_ssid(vap->iv_xrvap, vap); 2024 2026 vap->iv_xrvap->iv_des_mode = vap->iv_des_mode; -
b/THANKS
old new 119 119 (listed in alphabetic order) who supported us with donations: 120 120 121 121 * Compex Systems Pte Ltd, Singapore - http://www.compex.com.sg 122 3MiniPCI cards122 two donations with a total of 7 MiniPCI cards 123 123 124 124 * Linux-Consulting, USA - http://www.linux-consulting.com 125 125 madwifi.org domain name, DNS server maintenance
