mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 02:17:36 -04:00
wifi: cfg80211: don't allow NAN DATA on multi radio devices
The support for NAN DATA was added for single radio devices only. For example, checking the interface combinations is done for a single radio. Prevent registration with NAN DATA interface type for multi radio devices. Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20260505194607.ff87e6fcff56.If201aa58119d2a6b08223ecb63bc2869f63ff5a1@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
committed by
Johannes Berg
parent
d2ffdadd4a
commit
7b9b2dd69b
@@ -882,7 +882,7 @@ int wiphy_register(struct wiphy *wiphy)
|
||||
return -EINVAL;
|
||||
|
||||
if (WARN_ON((wiphy->interface_modes & BIT(NL80211_IFTYPE_NAN_DATA)) &&
|
||||
!wiphy->nan_capa.phy.ht.ht_supported))
|
||||
(!wiphy->nan_capa.phy.ht.ht_supported || wiphy->n_radio > 1)))
|
||||
return -EINVAL;
|
||||
|
||||
if (WARN_ON(wiphy->interface_modes & BIT(NL80211_IFTYPE_WDS)))
|
||||
|
||||
Reference in New Issue
Block a user