Ticket #1442: madwifi-rxantenna.patch

File madwifi-rxantenna.patch, 0.8 kB (added by espy@pepper.com, 5 years ago)

rxantenna resume patch

  • ath/if_ath.c

    old new  
    18331833        struct ath_hal *ah = sc->sc_ah; 
    18341834        HAL_STATUS status; 
    18351835        int error = 0; 
     1836        u_int antenna; 
    18361837 
    18371838        ATH_LOCK(sc); 
    18381839 
     
    18931894        ath_update_txpow(sc); 
    18941895 
    18951896        /* 
     1897         * If the rxantenna was changed by the 'reset',  
     1898         * set if back to the saved value. 
     1899         */ 
     1900        antenna = ath_hal_getdefantenna(ah); 
     1901        if (sc->sc_defant != antenna) { 
     1902                printk(KERN_INFO "%s: resetting rxantenna to %d\n", 
     1903                       dev->name, 
     1904                       sc->sc_defant); 
     1905 
     1906                ath_setdefantenna(sc, sc->sc_defant); 
     1907        } 
     1908 
     1909        /* 
    18961910         * Setup the hardware after reset: the key cache 
    18971911         * is filled as needed and the receive engine is 
    18981912         * set going.  Frame transmit is handled entirely