qcacld-3.0: Add ini to disable beacon protection

Some legacy STA doesn't recognize the EXT CAP IE with
length greater than 8bytes. Therefore, these STA cannot
associate with hotspot broadcasting newer capabilities
in the extended IE.

To fix this, add an ini which would override the beacon
protection config in host driver.

Based on this ini, the beacon protection would be disabled
only for non-6 GHz and non-11be SAP profiles, as beacon
protection is mandatory in 6 GHz and 11be cases.

Change-Id: I672b707f6955fa31938aebba5e25461dd40cee4e
CRs-Fixed: 3378974
此提交包含在:
Surya Prakash Sivaraj
2023-01-20 18:32:19 +05:30
提交者 Madan Koyyalamudi
父節點 e51f225258
當前提交 d6df82c2b6
共有 10 個檔案被更改,包括 110 行新增8 行删除

查看文件

@@ -1,6 +1,6 @@
/*
* Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -746,6 +746,28 @@
0, \
"disable mcs13 support")
/*
* <ini>
* disable_sap_bcn_prot - Disable beacon protection for SAP
* @Min: 0
* @Max: 1
* @Default: 0
*
* This ini is used to disable beacon protection in SAP only
* for non-6 GHz or non-11be cases where BP is not mandatory.
*
* Related: None
*
* Supported Feature: SAP
*
* Usage: External
*
* </ini>
*/
#define CFG_DISABLE_SAP_BCN_PROT CFG_INI_BOOL(\
"disable_sap_bcn_prot", \
"0", \
"Disable beacon protection for SAP")
#define CFG_SAP_ALL \
CFG_SAP_SAE \
CFG(CFG_AP_ENABLE_RANDOM_BSSID) \
@@ -780,6 +802,7 @@
CFG(CFG_GO_11AC_OVERRIDE) \
CFG(CFG_IS_SAP_BCAST_DEAUTH_ENABLED) \
CFG(CFG_6G_SAP_FILS_DISCOVERY_ENABLED) \
CFG(CFG_DISABLE_MCS13_SUPPORT)
CFG(CFG_DISABLE_MCS13_SUPPORT) \
CFG(CFG_DISABLE_SAP_BCN_PROT)
#endif /* __CFG_MLME_SAP_H */

查看文件

@@ -4173,4 +4173,14 @@ QDF_STATUS
wlan_mlme_stats_get_periodic_display_time(struct wlan_objmgr_psoc *psoc,
uint32_t *periodic_display_time);
/**
* wlan_mlme_is_bcn_prot_disabled_for_sap() - Is beacon protection config
* disabled for SAP interface
*
* @psoc: pointer to psoc object
*
* Return: is beacon protection disabled
*/
bool
wlan_mlme_is_bcn_prot_disabled_for_sap(struct wlan_objmgr_psoc *psoc);
#endif /* _WLAN_MLME_API_H_ */

查看文件

@@ -742,6 +742,7 @@ struct wlan_mlme_wps_params {
* @sap_sae_enabled: enable sae in sap mode
* @is_sap_bcast_deauth_enabled: enable bcast deauth for sap
* @is_6g_sap_fd_enabled: enable fils discovery on sap
* @disable_bcn_prot: disable beacon protection for sap
*/
struct wlan_mlme_cfg_sap {
uint16_t beacon_interval;
@@ -777,6 +778,7 @@ struct wlan_mlme_cfg_sap {
bool sap_sae_enabled;
bool is_sap_bcast_deauth_enabled;
bool is_6g_sap_fd_enabled;
bool disable_bcn_prot;
};
/**