mac80211: check whether HE connection is allowed by the reg domain
authorHaim Dreyfuss <haim.dreyfuss@intel.com>
Fri, 31 Jan 2020 11:12:44 +0000 (13:12 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 7 Feb 2020 11:39:27 +0000 (12:39 +0100)
commitb5db1acab19b99da5b30042133734b01f65b5900
treee07e2fcbc53bd6e20ac3514b764af721648d2037
parente4d005b80deeb053526ca089510bf2e20473ef62
mac80211: check whether HE connection is allowed by the reg domain

The wireless device might be capable to connect HE
as well as the AP. However, the regulatory domain might
forbid it. Check whether the regulatory domain allows HE connection
when considering if HE IE should be added.
Also, add it when setting our peer capability.

Signed-off-by: Haim Dreyfuss <haim.dreyfuss@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/20200131111300.891737-8-luca@coelho.fi
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c