From: Luciano Coelho Date: Mon, 10 Nov 2014 09:10:07 +0000 (+0200) Subject: iwlwifi: mvm: only save csa_vif in AP/GO mode X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~28^2~58^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b20d774370952790e5cebd8a297251bc1ac2df3;p=pandora-kernel.git iwlwifi: mvm: only save csa_vif in AP/GO mode 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: Luciano Coelho --- Reading git-diff-tree failed