]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: Use 5MHz bandwidth by default when checking usable channels
authorRostislav Lisovy <lisovy@gmail.com>
Tue, 15 Apr 2014 12:37:56 +0000 (14:37 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 25 Apr 2014 15:39:32 +0000 (17:39 +0200)
commit69ceb6a22667e107c28c3b9318cd6ed32a17562e
tree88c9b3fa62c0dc38c947cb023ca6a3eb3fe44c99
parent01eb0bd004344666fb2d3fc1e1e7eec832524b70
cfg80211: Use 5MHz bandwidth by default when checking usable channels

Current code checks if the 20MHz bandwidth is allowed for
particular channel -- if it is not, the channel is disabled.
Since we need to use 5/10 MHz channels, this code is modified in
the way that the default bandwidth to check is 5MHz. If the
maximum bandwidth allowed by the channel is smaller than 5MHz,
the channel is disabled. Otherwise the channel is used and the
flags are set according to the bandwidth allowed by the channel.

Signed-off-by: Rostislav Lisovy <rostislav.lisovy@fel.cvut.cz>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c