wifi: cfg80211: validate AP phy operation before starting it
authorAditya Kumar Singh <quic_adisi@quicinc.com>
Tue, 5 Sep 2023 06:48:57 +0000 (12:18 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Sep 2023 10:18:55 +0000 (12:18 +0200)
commit5112fa502708aaaf80acb78273fc8625f221eb11
tree3825bd69de2bfc68d2d106756fc74e646756e951
parent234249d88b091d006b82f8d570343aae5f383736
wifi: cfg80211: validate AP phy operation before starting it

Many regulatories can have HE/EHT Operation as not permitted. In such
cases, AP should not be allowed to start if it is using a channel
having the no operation flag set. However, currently there is no such
check in place.

Fix this issue by validating such IEs sent during start AP against the
channel flags.

Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
Reviewed-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Link: https://lore.kernel.org/r/20230905064857.1503-1-quic_adisi@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c