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)

cumulative diff to merge changes in HEAD up to r2115 into madwifi-ng-refcount

  • b/ath/if_ath.c

    old new  
    11531153        } 
    11541154        if (sc->sc_hastsfadd) 
    11551155                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)); 
    11571157        /* complete setup */ 
    11581158        (void) ieee80211_vap_attach(vap, 
    11591159                ieee80211_media_change, ieee80211_media_status); 
     
    13261326        ath_init(dev); 
    13271327} 
    13281328 
    1329 void 
    1330 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  
    13381329static void 
    13391330ath_uapsd_processtriggers(struct ath_softc *sc) 
    13401331{ 
  • b/ath/if_athvar.h

    old new  
    110110#define SET_NETDEV_DEV(ndev, pdev) 
    111111#endif 
    112112 
     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 
    113119#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,23) 
    114120static inline struct net_device *_alloc_netdev(int sizeof_priv, const char *mask, 
    115121                                               void (*setup)(struct net_device *)) 
     
    725731int ath_detach(struct net_device *); 
    726732void ath_resume(struct net_device *); 
    727733void ath_suspend(struct net_device *); 
    728 void ath_shutdown(struct net_device *); 
    729734#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) 
    730735irqreturn_t ath_intr(int, void *); 
    731736#else 
  • b/include/compat.h

    old new  
    7878#define isset(a,i)      ((a)[(i)/NBBY] & (1<<((i)%NBBY))) 
    7979#define isclr(a,i)      (((a)[(i)/NBBY] & (1<<((i)%NBBY))) == 0) 
    8080 
     81#ifndef __packed 
    8182#define __packed        __attribute__((__packed__)) 
     83#endif 
     84 
    8285#define __printflike(_a,_b) \ 
    8386        __attribute__ ((__format__ (__printf__, _a, _b))) 
    8487#define __offsetof(t,m) offsetof(t,m) 
  • b/net80211/ieee80211.c

    old new  
    504504        vap->iv_dtim_period = IEEE80211_DTIM_DEFAULT; 
    505505        vap->iv_des_chan = IEEE80211_CHAN_ANYC; /* any channel is ok */ 
    506506 
     507        vap->iv_monitor_crc_errors = 0; 
     508        vap->iv_monitor_phy_errors = 0; 
     509 
    507510        IEEE80211_ADDR_COPY(vap->iv_myaddr, ic->ic_myaddr); 
    508511        /* NB: defer setting dev_addr so driver can override */ 
    509512 
  • b/net80211/ieee80211_crypto_ccmp.c

    old new  
    5757 
    5858#define AES_BLOCK_LEN 16 
    5959 
     60#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) 
     61#define crypto_cipher_cast(c) (c) 
     62#endif 
     63 
    6064struct ccmp_ctx { 
    6165        struct ieee80211vap *cc_vap;    /* for diagnostics + statistics */ 
    6266        struct ieee80211com *cc_ic; 
     
    145149                        return 0; 
    146150                } 
    147151                 
    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); 
    149154        } 
    150155        return 1; 
    151156} 
     
    300305rijndael_encrypt(struct crypto_tfm *tfm, const void *src, void *dst) 
    301306{ 
    302307#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); 
    304309#else 
    305310        struct scatterlist sg_src; 
    306311        struct scatterlist sg_dst; 
  • b/net80211/ieee80211_wireless.c

    old new  
    20192019                        vap->iv_xrvap = ic->ic_vap_create(ic, name, vap->iv_unit, 
    20202020                                IEEE80211_M_HOSTAP,IEEE80211_VAP_XR | 
    20212021                                IEEE80211_CLONE_BSSID, dev); 
     2022                        if (!vap->iv_xrvap) 
     2023                                return; 
    20222024                        vap->iv_xrvap->iv_fragthreshold = IEEE80211_XR_FRAG_THRESHOLD; 
    20232025                        copy_des_ssid(vap->iv_xrvap, vap); 
    20242026                        vap->iv_xrvap->iv_des_mode = vap->iv_des_mode; 
  • b/THANKS

    old new  
    119119(listed in alphabetic order) who supported us with donations: 
    120120 
    121121* Compex Systems Pte Ltd, Singapore - http://www.compex.com.sg 
    122   3 MiniPCI cards 
     122  two donations with a total of 7 MiniPCI cards 
    123123 
    124124* Linux-Consulting, USA - http://www.linux-consulting.com 
    125125  madwifi.org domain name, DNS server maintenance