cfg80211: Enable regulatory enforcement checks for drivers supporting mesh iface
authorSriram R <quic_srirrama@quicinc.com>
Thu, 2 Dec 2021 01:38:40 +0000 (07:08 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 20 Dec 2021 10:18:30 +0000 (11:18 +0100)
commit701fdfe348f7e5c9fe71caa3558d63dbb4bc4b81
tree0feca13b311bf5de94d820bb8322529758bc0066
parent5bc9a9dd75351023793d8aa4116ead005d659729
cfg80211: Enable regulatory enforcement checks for drivers supporting mesh iface

Currently cfg80211 checks for invalid channels whenever there is a
regulatory update and stops the active interfaces if it is operating on
an unsupported channel in the new regulatory domain.

This is done based on a regulatory flag REGULATORY_IGNORE_STALE_KICKOFF
set during wiphy registration which disables this enforcement when
unsupported interface modes are supported by driver.

Add support to enable this enforcement when Mesh Point interface type
is advertised by drivers.

Signed-off-by: Sriram R <quic_srirrama@quicinc.com>
Link: https://lore.kernel.org/r/1638409120-28997-1-git-send-email-quic_srirrama@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c
net/wireless/reg.c