diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-10-24 10:04:58 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-10-30 09:11:33 +0100 |
commit | 71fe96bf9db8b117d28de6f9ced606cae2ad9661 (patch) | |
tree | d764bfd5d36c488190a87f50b6abb0ee579710c0 /net/wireless/rdev-ops.h | |
parent | mac80211_hwsim: allow using channel contexts (diff) | |
download | linux-71fe96bf9db8b117d28de6f9ced606cae2ad9661.tar.xz linux-71fe96bf9db8b117d28de6f9ced606cae2ad9661.zip |
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 <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/rdev-ops.h')
0 files changed, 0 insertions, 0 deletions