Ticket #1442: madwifi-rxantenna.patch
| File madwifi-rxantenna.patch, 0.8 kB (added by espy@pepper.com, 5 years ago) |
|---|
-
ath/if_ath.c
old new 1833 1833 struct ath_hal *ah = sc->sc_ah; 1834 1834 HAL_STATUS status; 1835 1835 int error = 0; 1836 u_int antenna; 1836 1837 1837 1838 ATH_LOCK(sc); 1838 1839 … … 1893 1894 ath_update_txpow(sc); 1894 1895 1895 1896 /* 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 /* 1896 1910 * Setup the hardware after reset: the key cache 1897 1911 * is filled as needed and the receive engine is 1898 1912 * set going. Frame transmit is handled entirely
