From: Felix Fietkau Date: Mon, 24 Nov 2014 17:12:16 +0000 (+0100) Subject: mac80211: copy chandef from AP vif to VLANs X-Git-Tag: omap-for-v3.20/drop-legacy-3517~122^2~28^2~15^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2967e031d4d737d9cc8252d878a17924d7b704f0;p=pandora-kernel.git mac80211: copy chandef from AP vif to VLANs Instead of keeping track of all those special cases where VLAN interfaces have no bss_conf.chandef, just make sure they have the same as the AP interface they belong to. Among others, this fixes a crash getting a VLAN's channel from userspace since a NULL channel is returned as a good result (return value 0) for VLANs since the commit below. Cc: stable@vger.kernel.org [3.18 only] Fixes: c12bc4885f4b3 ("mac80211: return the vif's chandef in ieee80211_cfg_get_channel()") Signed-off-by: Felix Fietkau [rewrite commit log] Signed-off-by: Johannes Berg --- Reading git-diff-tree failed