On 11/02/2011 02:19 PM, Felix Fietkau wrote: > On 2011-11-02 1:10 PM, Zefir Kurtisi wrote: >> RX filter flags previously set for DFS radar detection were not >> preserved after "ath9k: disable unnecessary PHY error reporting". >> >> This patch ensures that the flags required for DFS support are >> kept set. >> >> Signed-off-by: Zefir Kurtisi<zefir.kurtisi@xxxxxxxxxxx> > I think preserving the existing register values is a bit fragile wrt. hardware resets, register clobbering, etc. > How about just adding an internal flag or bool in the softc? > > - Felix Hm, need to dig deeper. Ideally, the DFS rx filter flags are set at reset along with the channel setup and remain untouched until the chip is stopped (and set-up again). In fact, currently ath9k_hw_setrxfilter() is called only when the chip is stopped (clearing all flags in ath_stoprecv()) and from ath_opmode_init() and ieee80211_configure_filter() with the flags returned by ath_calcrxfilter(). Since ath_calcrxfilter() provides static initial filter settings for the current opmode, all rx filter flags set internally are reset each time ieee80211_configure_filter() is called. With your proposal, we need to mirror each rx filter bit set in softc to be reset in ath_calcrxfilter(), right?. My thinking is, if it is assured that the chip is always reset after a stop, we can ignore potential register clobbering and preserve those bits set in ath_calcrxfilter(). Thanks Zefir -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html