]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Do not disconnect on invalid operating class
authorIlan Peer <ilan.peer@intel.com>
Mon, 19 Feb 2018 12:48:42 +0000 (14:48 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 19 Feb 2018 13:53:14 +0000 (14:53 +0100)
commitd59720f061c61facb9ef02305339541b4c1ef056
tree28f17b9811f92d9e2a785cc5a87a16d873942d5e
parenteb882ba88e778ccf7d71267e6c1a67b481656663
mac80211: Do not disconnect on invalid operating class

Some APs include a non global operating class in their extended channel
switch information element. In such a case, as the operating class is not
known, mac80211 would decide to disconnect.

However the specification states that the operating class needs to be
taken from Annex E, but it does not specify from which table it should be
taken, so it is valid for an AP to use a non global operating class.

To avoid possibly unneeded disconnection, in such a case ignore the
operating class and assume that the current band is used, and if the
resulting channel and band configuration is invalid disconnect.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/spectmgmt.c