qcacld-3.0: Set secure NAN feature to kernel

Currently, there is no provision to identify that the driver supports
NAN pairing protocol. So, new kernel will start exchanging PASN frames
without realization that old driver is loaded and thus, frames will be
drops in driver.

So, to resolve the backward compatibility issue, kernel introduces new
feature flag "NL80211_EXT_FEATURE_SECURE_NAN".
Firmware send "max_pairing_session" parameter in NAN capabilities and
host driver extracts the parameter and set the feature flag to kernel
when max pairing session has non-zero value.

Change-Id: I3b83a771c99bf2e91a4ed1a14acafe584d6e17ec
CRs-Fixed: 3493345
This commit is contained in:
Rahul Gusain
2023-05-03 14:13:35 +05:30
committed by Madan Koyyalamudi
vanhempi 48328ed929
commit bba075a057
4 muutettua tiedostoa jossa 62 lisäystä ja 0 poistoa

6
Kbuild
Näytä tiedosto

@@ -3298,6 +3298,12 @@ ifeq ($(findstring yes, $(found)), yes)
ccflags-y += -DCFG80211_EXTERNAL_AUTH_MLO_SUPPORT
endif
found = $(shell if grep -qF "NL80211_EXT_FEATURE_SECURE_NAN" $(srctree)/include/uapi/linux/nl80211.h; then echo "yes"; else echo "no"; fi;)
ifeq ($(findstring yes, $(found)), yes)
ccflags-y += -DCFG80211_EXT_FEATURE_SECURE_NAN
endif
ifeq (qca_cld3, $(WLAN_WEAR_CHIPSET))
ccflags-y += -DWLAN_WEAR_CHIPSET
endif