wlan: Ini Support for SAP Authentication Offload
Support SAP Auth Offload, create INI parameter to
enable/disable this feature. Enable/disable command
will be sent to target firmware when SAP start/end or unload
host driver.
Change-Id: I2fd622e1f32ce278d45bca6bde6392ea8747349c
CRs-Fixed: 753731
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 9207636..f356ded 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -9154,6 +9154,10 @@
vos_flush_delayed_work(&pAdapter->roc_work);
}
+#ifdef SAP_AUTH_OFFLOAD
+ if (pHddCtx->cfg_ini->enable_sap_auth_offload)
+ hdd_set_sap_auth_offload(pAdapter, FALSE);
+#endif
mutex_lock(&pHddCtx->sap_lock);
if (test_bit(SOFTAP_BSS_STARTED, &pAdapter->event_flags))
{
@@ -12238,6 +12242,13 @@
#endif
+#ifdef SAP_AUTH_OFFLOAD
+ if (!sme_IsFeatureSupportedByFW(SAP_OFFLOADS))
+ {
+ hddLog(VOS_TRACE_LEVEL_INFO, FL(" SAP AUTH OFFLOAD not supp by FW"));
+ pHddCtx->cfg_ini->enable_sap_auth_offload = 0;
+ }
+#endif
if (vos_is_multicast_logging())
wlan_logging_set_log_level();