Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c658594 authored by David S. Miller's avatar David S. Miller
Browse files
parents 8ca31ce5 92cccc2c
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -795,6 +795,12 @@ int ath_open(struct ath_softc *sc, struct ath9k_channel *initial_chan)
	if (ah->ah_caps.hw_caps & ATH9K_HW_CAP_HT)
	if (ah->ah_caps.hw_caps & ATH9K_HW_CAP_HT)
		sc->sc_imask |= ATH9K_INT_CST;
		sc->sc_imask |= ATH9K_INT_CST;


	/* Note: We disable MIB interrupts for now as we don't yet
	 * handle processing ANI, otherwise you will get an interrupt
	 * storm after about 7 hours of usage making the system unusable
	 * with huge latency. Once we do have ANI processing included
	 * we can re-enable this interrupt. */
#if 0
	/*
	/*
	 * Enable MIB interrupts when there are hardware phy counters.
	 * Enable MIB interrupts when there are hardware phy counters.
	 * Note we only do this (at the moment) for station mode.
	 * Note we only do this (at the moment) for station mode.
@@ -802,6 +808,7 @@ int ath_open(struct ath_softc *sc, struct ath9k_channel *initial_chan)
	if (ath9k_hw_phycounters(ah) &&
	if (ath9k_hw_phycounters(ah) &&
	    ((sc->sc_opmode == ATH9K_M_STA) || (sc->sc_opmode == ATH9K_M_IBSS)))
	    ((sc->sc_opmode == ATH9K_M_STA) || (sc->sc_opmode == ATH9K_M_IBSS)))
		sc->sc_imask |= ATH9K_INT_MIB;
		sc->sc_imask |= ATH9K_INT_MIB;
#endif
	/*
	/*
	 * Some hardware processes the TIM IE and fires an
	 * Some hardware processes the TIM IE and fires an
	 * interrupt when the TIM bit is set.  For hardware
	 * interrupt when the TIM bit is set.  For hardware