|
@@ -1,6 +1,6 @@
|
|
/*
|
|
/*
|
|
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
|
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
|
- *
|
|
|
|
|
|
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
*
|
|
*
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
@@ -120,6 +120,22 @@ register_dfs_callbacks_for_freq(struct dfs_to_mlme *mlme_callback)
|
|
#endif
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+#if defined(WLAN_DFS_PARTIAL_OFFLOAD) && defined(HOST_DFS_SPOOF_TEST)
|
|
|
|
+static void register_dfs_callbacks_spoof_success_failure(
|
|
|
|
+ struct dfs_to_mlme *tmp_dfs_to_mlme)
|
|
|
|
+{
|
|
|
|
+ tmp_dfs_to_mlme->mlme_rebuild_chan_list_with_non_dfs_channels =
|
|
|
|
+ mlme_dfs_rebuild_chan_list_with_non_dfs_channels;
|
|
|
|
+ tmp_dfs_to_mlme->mlme_proc_spoof_success =
|
|
|
|
+ mlme_dfs_proc_spoof_success;
|
|
|
|
+}
|
|
|
|
+#else
|
|
|
|
+static inline void register_dfs_callbacks_spoof_success_failure(
|
|
|
|
+ struct dfs_to_mlme *tmp_dfs_to_mlme)
|
|
|
|
+{
|
|
|
|
+}
|
|
|
|
+#endif
|
|
|
|
+
|
|
#ifndef MOBILE_DFS_SUPPORT
|
|
#ifndef MOBILE_DFS_SUPPORT
|
|
void register_dfs_callbacks(void)
|
|
void register_dfs_callbacks(void)
|
|
{
|
|
{
|
|
@@ -143,8 +159,9 @@ void register_dfs_callbacks(void)
|
|
tmp_dfs_to_mlme->mlme_nol_timeout_notification =
|
|
tmp_dfs_to_mlme->mlme_nol_timeout_notification =
|
|
mlme_dfs_nol_timeout_notification;
|
|
mlme_dfs_nol_timeout_notification;
|
|
tmp_dfs_to_mlme->mlme_clist_update = mlme_dfs_clist_update;
|
|
tmp_dfs_to_mlme->mlme_clist_update = mlme_dfs_clist_update;
|
|
- tmp_dfs_to_mlme->mlme_rebuild_chan_list_with_non_dfs_channels =
|
|
|
|
- mlme_dfs_rebuild_chan_list_with_non_dfs_channels;
|
|
|
|
|
|
+
|
|
|
|
+ register_dfs_callbacks_spoof_success_failure(tmp_dfs_to_mlme);
|
|
|
|
+
|
|
tmp_dfs_to_mlme->mlme_restart_vaps_with_non_dfs_chan =
|
|
tmp_dfs_to_mlme->mlme_restart_vaps_with_non_dfs_chan =
|
|
mlme_dfs_restart_vaps_with_non_dfs_chan;
|
|
mlme_dfs_restart_vaps_with_non_dfs_chan;
|
|
tmp_dfs_to_mlme->mlme_is_opmode_sta =
|
|
tmp_dfs_to_mlme->mlme_is_opmode_sta =
|
|
@@ -166,8 +183,6 @@ void register_dfs_callbacks(void)
|
|
mlme_release_radar_mode_switch_lock;
|
|
mlme_release_radar_mode_switch_lock;
|
|
tmp_dfs_to_mlme->mlme_mark_dfs =
|
|
tmp_dfs_to_mlme->mlme_mark_dfs =
|
|
mlme_dfs_mark_dfs;
|
|
mlme_dfs_mark_dfs;
|
|
- tmp_dfs_to_mlme->mlme_proc_spoof_success =
|
|
|
|
- mlme_dfs_proc_spoof_success;
|
|
|
|
/*
|
|
/*
|
|
* Register precac auto channel switch feature related callbacks
|
|
* Register precac auto channel switch feature related callbacks
|
|
*/
|
|
*/
|