qcacmn: Add blacklist manager related files
Add interface API to send reject ap list to FW, also add the blacklist manager UMAC, and QDF component for the same. Change-Id: I826e537683441762043003d71dc2b79ceebebbcb CRs-Fixed: 2460770
This commit is contained in:

committed by
nshrivas

parent
8482a0c0fc
commit
9f525cbddc
@@ -5310,6 +5310,7 @@ typedef enum {
|
||||
wmi_service_wpa3_ft_suite_b_support,
|
||||
wmi_service_ft_fils,
|
||||
wmi_service_adaptive_11r_support,
|
||||
wmi_service_data_stall_recovery_support,
|
||||
wmi_service_tx_compl_tsf64,
|
||||
wmi_services_max,
|
||||
} wmi_conv_service_ids;
|
||||
|
@@ -352,6 +352,12 @@ QDF_STATUS (*send_d0wow_disable_cmd)(wmi_unified_t wmi_handle,
|
||||
uint8_t mac_id);
|
||||
#endif
|
||||
|
||||
#ifdef FEATURE_BLACKLIST_MGR
|
||||
QDF_STATUS
|
||||
(*send_reject_ap_list_cmd)(struct wmi_unified *wmi_handle,
|
||||
struct reject_ap_params *reject_params);
|
||||
#endif
|
||||
|
||||
QDF_STATUS (*send_wow_enable_cmd)(wmi_unified_t wmi_handle,
|
||||
struct wow_cmd_params *param,
|
||||
uint8_t mac_id);
|
||||
@@ -2322,6 +2328,15 @@ void wmi_policy_mgr_attach_tlv(struct wmi_unified *wmi_handle)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef FEATURE_BLACKLIST_MGR
|
||||
void wmi_blacklist_mgr_attach_tlv(struct wmi_unified *wmi_handle);
|
||||
#else
|
||||
static inline
|
||||
void wmi_blacklist_mgr_attach_tlv(struct wmi_unified *wmi_handle)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef WMI_STA_SUPPORT
|
||||
void wmi_sta_attach_tlv(struct wmi_unified *wmi_handle);
|
||||
#else
|
||||
|
@@ -23,6 +23,8 @@
|
||||
#ifndef _WMI_UNIFIED_ROAM_PARAM_H_
|
||||
#define _WMI_UNIFIED_ROAM_PARAM_H_
|
||||
|
||||
#include <wlan_blm_public_struct.h>
|
||||
|
||||
/**
|
||||
* struct gateway_update_req_param - gateway parameter update request
|
||||
* @request_id: request id
|
||||
@@ -168,19 +170,6 @@ struct wmi_mawc_roam_params {
|
||||
#define MAX_SSID_ALLOWED_LIST 4
|
||||
#define MAX_BSSID_AVOID_LIST 16
|
||||
#define MAX_BSSID_FAVORED 16
|
||||
#define MAX_RSSI_AVOID_BSSID_LIST 10
|
||||
|
||||
/**
|
||||
* struct rssi_disallow_bssid - Structure holding Rssi based avoid candidate
|
||||
* @bssid: BSSID of the AP
|
||||
* @remaining_duration: remaining disallow duration in ms
|
||||
* @expected_rssi: RSSI at which STA can initate in dBm
|
||||
*/
|
||||
struct rssi_disallow_bssid {
|
||||
struct qdf_mac_addr bssid;
|
||||
uint32_t remaining_duration;
|
||||
int8_t expected_rssi;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct roam_scan_filter_params - Structure holding roaming scan
|
||||
@@ -228,7 +217,8 @@ struct roam_scan_filter_params {
|
||||
uint32_t rssi_channel_penalization;
|
||||
uint32_t num_disallowed_aps;
|
||||
uint32_t num_rssi_rejection_ap;
|
||||
struct rssi_disallow_bssid rssi_rejection_ap[MAX_RSSI_AVOID_BSSID_LIST];
|
||||
struct reject_ap_config_params
|
||||
rssi_rejection_ap[MAX_RSSI_AVOID_BSSID_LIST];
|
||||
};
|
||||
|
||||
#define WMI_CFG_VALID_CHANNEL_LIST_LEN 100
|
||||
@@ -534,6 +524,7 @@ struct ap_profile_params {
|
||||
* @frame_len: frame length, includs mac header, fixed params and ies
|
||||
* @frame_buf: buffer contaning probe response or beacon
|
||||
* @is_same_bssid: flag to indicate if roaming is requested for same bssid
|
||||
* @forced_roaming: Roam to any bssid in any ch (here bssid & ch is not given)
|
||||
*/
|
||||
struct wmi_roam_invoke_cmd {
|
||||
uint32_t vdev_id;
|
||||
@@ -542,6 +533,7 @@ struct wmi_roam_invoke_cmd {
|
||||
uint32_t frame_len;
|
||||
uint8_t *frame_buf;
|
||||
uint8_t is_same_bssid;
|
||||
bool forced_roaming;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@@ -96,6 +96,20 @@ QDF_STATUS wmi_extract_encrypt_decrypt_resp_params(void *wmi_hdl,
|
||||
struct disa_encrypt_decrypt_resp_params *resp);
|
||||
#endif /* WLAN_FEATURE_DISA */
|
||||
|
||||
#ifdef FEATURE_BLACKLIST_MGR
|
||||
/**
|
||||
* wmi_unified_send_reject_ap_list() - send the reject ap list maintained by
|
||||
* BLM to FW for roaming cases.
|
||||
* @wmi_handle: wmi handle
|
||||
* @reject_params: This contains the reject ap list, and the num of BSSIDs.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS for success or error code
|
||||
*/
|
||||
QDF_STATUS
|
||||
wmi_unified_send_reject_ap_list(struct wmi_unified *wmi_handle,
|
||||
struct reject_ap_params *reject_params);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* wmi_unified_process_dhcp_ind() - process dhcp indication from SME
|
||||
* @wmi_handle: wmi handle
|
||||
|
Reference in New Issue
Block a user