]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: TDLS: always downgrade invalid chandefs
authorArik Nemtsov <arik@wizery.com>
Wed, 2 Mar 2016 21:28:31 +0000 (23:28 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 5 Apr 2016 08:50:32 +0000 (10:50 +0200)
commitc4d627dbe13fe5fe60e1c5515883236be424cec9
tree75e410079c8b0c7265f20965e7533a0f92b28fe2
parentfe65f911bd65e2bb5778a75213fbbfbb00323c3c
mac80211: TDLS: always downgrade invalid chandefs

Even if the current chandef width is equal to the station's max-BW, it
doesn't mean it's a valid width for TDLS. Make sure to always check
regulatory constraints in these cases.

Fixes: 25bdbef12e45 ("mac80211: upgrade BW of TDLS peers when possible")
Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tdls.c