• M
    rt2x00: Only configure hardware when radio is enabled · 2575c11d
    Mattias Nissler 提交于
    Some hardware configuration registers such as antenna and channel configuration
    can only be written when the radio is enabled. Previously, we didn't consider
    this, so some configuration items could be set inconsistently after reenabling
    the radio. This patch changes the config() handler to only reprogram the
    hardware when the radio is enabled. Configuration changes that are made while
    the radio is off are postponed until the radio is switched back on. We also
    leave the radio turned off during initialization and only enable it when
    requested by mac80211. This allows us to get rid of the DIRTY_CONFIG flag,
    because the device is now guaranteed to be completely initialized when brought
    up by mac80211.
    Signed-off-by: NMattias Nissler <mattias.nissler@gmx.de>
    Signed-off-by: NIvo van Doorn <IvDoorn@gmail.com>
    Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
    2575c11d
rt2x00.h 26.1 KB