]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: move "can set channel" check
authorJohannes Berg <johannes.berg@intel.com>
Wed, 24 Oct 2012 08:04:58 +0000 (10:04 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 30 Oct 2012 08:11:33 +0000 (09:11 +0100)
commit9bf84e76148c6a03f75a4e655191b801c9d06faa
treed764bfd5d36c488190a87f50b6abb0ee579710c0
parentb260a2d35c2976d01a32ab6a305c3078cc4864b7
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>
net/wireless/nl80211.c