qcacld-3.0: Cleanup the scan blacklist path
Currently with the support of Blacklist manager component, all the blacklist, avoid list, RSSI-REJECT list is maintained by the BLM, hence the filter logic of the blacklist APs in the scan component is not required. Cleanup the blacklist BSSID APIs, and related functionality. Change-Id: I4c8283d2c5e4ca66c24a25d31a74026510bb452c CRs-Fixed: 2464188
Цей коміт міститься в:

зафіксовано
nshrivas

джерело
7f70e38aec
коміт
ac8504a703
@@ -219,7 +219,7 @@ blm_update_bssid_connect_params(struct wlan_objmgr_pdev *pdev,
|
||||
enum blm_connection_state con_state);
|
||||
|
||||
/**
|
||||
* blm_delete_reject_ap_list() - Clear away BSSID and destroy the reject ap list
|
||||
* blm_flush_reject_ap_list() - Clear away BSSID and destroy the reject ap list
|
||||
* @blm_ctx: blacklist manager pdev priv object
|
||||
*
|
||||
* This API will clear the BSSID info in the reject AP list maintained by the
|
||||
@@ -228,7 +228,7 @@ blm_update_bssid_connect_params(struct wlan_objmgr_pdev *pdev,
|
||||
* Return: None
|
||||
*/
|
||||
void
|
||||
blm_delete_reject_ap_list(struct blm_pdev_priv_obj *blm_ctx);
|
||||
blm_flush_reject_ap_list(struct blm_pdev_priv_obj *blm_ctx);
|
||||
|
||||
/**
|
||||
* blm_get_bssid_reject_list() - Get the BSSIDs in reject list from BLM
|
||||
|
@@ -847,7 +847,7 @@ blm_add_userspace_black_list(struct wlan_objmgr_pdev *pdev,
|
||||
}
|
||||
|
||||
void
|
||||
blm_delete_reject_ap_list(struct blm_pdev_priv_obj *blm_ctx)
|
||||
blm_flush_reject_ap_list(struct blm_pdev_priv_obj *blm_ctx)
|
||||
{
|
||||
struct blm_reject_ap *blm_entry = NULL;
|
||||
QDF_STATUS status;
|
||||
@@ -873,7 +873,7 @@ blm_delete_reject_ap_list(struct blm_pdev_priv_obj *blm_ctx)
|
||||
next_node = NULL;
|
||||
}
|
||||
|
||||
qdf_list_destroy(&blm_ctx->reject_ap_list);
|
||||
blm_debug("BLM reject ap list flushed");
|
||||
qdf_mutex_release(&blm_ctx->reject_ap_list_lock);
|
||||
}
|
||||
|
||||
|
@@ -101,7 +101,8 @@ blm_pdev_object_destroyed_notification(struct wlan_objmgr_pdev *pdev,
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
/* Clear away the memory allocated for the bad BSSIDs */
|
||||
blm_delete_reject_ap_list(blm_ctx);
|
||||
blm_flush_reject_ap_list(blm_ctx);
|
||||
qdf_list_destroy(&blm_ctx->reject_ap_list);
|
||||
qdf_mutex_destroy(&blm_ctx->reject_ap_list_lock);
|
||||
|
||||
wlan_objmgr_pdev_component_obj_detach(pdev,
|
||||
|
@@ -116,6 +116,18 @@ QDF_STATUS
|
||||
ucfg_blm_add_bssid_to_reject_list(struct wlan_objmgr_pdev *pdev,
|
||||
struct reject_ap_info *ap_info);
|
||||
|
||||
/**
|
||||
* ucfg_blm_flush_reject_ap_list() - Flush the reject ap entries stored in BLM.
|
||||
* @blm_ctx: blacklist manager pdev priv object
|
||||
*
|
||||
* This API will clear the BSSID info in the reject AP list maintained by the
|
||||
* blacklist manager, and will destroy the list as well.
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
void
|
||||
ucfg_blm_flush_reject_ap_list(struct wlan_objmgr_pdev *pdev);
|
||||
|
||||
#else
|
||||
static inline
|
||||
QDF_STATUS ucfg_blm_init(void)
|
||||
@@ -164,5 +176,10 @@ ucfg_blm_update_bssid_connect_params(struct wlan_objmgr_pdev *pdev,
|
||||
{
|
||||
}
|
||||
|
||||
static inline
|
||||
void ucfg_blm_flush_reject_ap_list(struct wlan_objmgr_pdev *pdev)
|
||||
{
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif /* _WLAN_BLM_UCFG_H_ */
|
||||
|
@@ -138,3 +138,17 @@ ucfg_blm_update_bssid_connect_params(struct wlan_objmgr_pdev *pdev,
|
||||
{
|
||||
blm_update_bssid_connect_params(pdev, bssid, con_state);
|
||||
}
|
||||
|
||||
void
|
||||
ucfg_blm_flush_reject_ap_list(struct wlan_objmgr_pdev *pdev)
|
||||
{
|
||||
struct blm_pdev_priv_obj *blm_ctx;
|
||||
|
||||
blm_ctx = blm_get_pdev_obj(pdev);
|
||||
if (!blm_ctx) {
|
||||
blm_err("blm_ctx is NULL");
|
||||
return;
|
||||
}
|
||||
|
||||
blm_flush_reject_ap_list(blm_ctx);
|
||||
}
|
||||
|
Посилання в новій задачі
Заблокувати користувача