From: Johannes Berg Date: Wed, 24 Oct 2012 08:04:58 +0000 (+0200) Subject: nl80211: move "can set channel" check X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~17^2^2~98 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71fe96bf9db8b117d28de6f9ced606cae2ad9661;p=pandora-kernel.git nl80211: move "can set channel" check Setting the wdev to NULL when the channel can't be set for that interface type (to treat the channel setting for the wiphy/monitor) currently works, but is confusing in the code if netdev/wdev aren't both set/unset in the same way. Move the check whether the channel can be set to where it's needed so that wdev and netdev are always both assigned or NULL. Signed-off-by: Johannes Berg --- Reading git-diff-tree failed