]> git.proxmox.com Git - mirror_ubuntu-artful-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)
commit8eca1fb692cc9557f386eddce75c300a3855d11a
tree88c9b3fa62c0dc38c947cb023ca6a3eb3fe44c99
parentea077c1cea36a6b5ded1256dcd56c72ff2a22c62
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