• Luciano Coelho's avatar
    iwlwifi: mvm: only save csa_vif in AP/GO mode · 6b20d774
    Luciano Coelho authored
    We only need the csa_vif in AP/GO modes, and assigning for other
    interfaces may cause problems, because csa_vif is never cleared.  To
    prevent this, only assign the value if the iftype is
    NL80211_IFTYPE_AP.  Use a switch to do this, even though, for now,
    only the AP interface type is handled, because soon other interface
    types will be added as well.
    
    Additionally, convert the WARN() in the error case when a
    channel-switch is already running to WARN_ONCE().
    Signed-off-by: default avatarLuciano Coelho <luciano.coelho@intel.com>
    6b20d774
mac80211.c 87.7 KB