Lines Matching refs:dfs
81 #define dfs_log(dfs, sm, level, args...) do { \ argument
82 if (((dfs) == NULL) || \
84 ((sm) & ((DC(dfs))->dfs_debug_mask))) { \
89 #define dfs_logfl(dfs, level, sm, format, args...) \ argument
90 dfs_log(dfs, sm, level, FLSM(format, sm), ## args)
92 #define dfs_alert(dfs, sm, format, args...) \ argument
93 dfs_logfl(dfs, QDF_TRACE_LEVEL_FATAL, sm, format, ## args)
95 #define dfs_err(dfs, sm, format, args...) \ argument
96 dfs_logfl(dfs, QDF_TRACE_LEVEL_ERROR, sm, format, ## args)
98 #define dfs_warn(dfs, sm, format, args...) \ argument
99 dfs_logfl(dfs, QDF_TRACE_LEVEL_WARN, sm, format, ## args)
101 #define dfs_info(dfs, sm, format, args...) \ argument
102 dfs_logfl(dfs, QDF_TRACE_LEVEL_INFO, sm, format, ## args)
104 #define dfs_debug(dfs, sm, format, args...) \ argument
105 dfs_logfl(dfs, QDF_TRACE_LEVEL_DEBUG, sm, format, ## args)
335 #define DFS_NOL_ADD_CHAN_LOCKED(dfs, freq, timeout) \ argument
337 WLAN_DFSNOL_LOCK(dfs); \
338 dfs_nol_addchan(dfs, freq, timeout); \
339 WLAN_DFSNOL_UNLOCK(dfs); \
347 #define DFS_NOL_DELETE_CHAN_LOCKED(dfs, freq, chwidth) \ argument
349 WLAN_DFSNOL_LOCK(dfs); \
350 dfs_nol_delete(dfs, freq, chwidth); \
351 qdf_sched_work(NULL, &dfs->dfs_nol_elem_free_work); \
352 WLAN_DFSNOL_UNLOCK(dfs); \
355 #define DFS_GET_NOL_LOCKED(dfs, dfs_nol, nchan) \ argument
357 WLAN_DFSNOL_LOCK(dfs); \
358 dfs_get_nol(dfs, dfs_nol, nchan); \
359 WLAN_DFSNOL_UNLOCK(dfs); \
362 #define DFS_PRINT_NOL_LOCKED(dfs) \ argument
364 WLAN_DFSNOL_LOCK(dfs); \
365 dfs_print_nol(dfs); \
366 WLAN_DFSNOL_UNLOCK(dfs); \
369 #define DFS_NOL_FREE_LIST_LOCKED(dfs) \ argument
371 WLAN_DFSNOL_LOCK(dfs); \
372 dfs_nol_free_list(dfs); \
373 WLAN_DFSNOL_UNLOCK(dfs); \
1067 struct wlan_dfs *dfs; member
1463 struct wlan_dfs *dfs; member
1744 void dfs_process_radarevent(struct wlan_dfs *dfs,
1753 void dfs_nol_addchan(struct wlan_dfs *dfs,
1763 void dfs_get_nol(struct wlan_dfs *dfs,
1773 void dfs_set_nol(struct wlan_dfs *dfs,
1784 void dfs_nol_update(struct wlan_dfs *dfs);
1792 void dfs_nol_timer_cleanup(struct wlan_dfs *dfs);
1798 void dfs_nol_timer_detach(struct wlan_dfs *dfs);
1806 void dfs_nol_workqueue_cleanup(struct wlan_dfs *dfs);
1814 uint8_t dfs_retain_bin5_burst_pattern(struct wlan_dfs *dfs,
1830 int dfs_bin5_check_pulse(struct wlan_dfs *dfs,
1841 int dfs_bin5_addpulse(struct wlan_dfs *dfs,
1853 int dfs_bin5_check(struct wlan_dfs *dfs);
1868 int dfs_check_chirping(struct wlan_dfs *dfs,
1892 int dfs_get_random_bin5_dur(struct wlan_dfs *dfs,
1901 void dfs_print_delayline(struct wlan_dfs *dfs,
1905 void dfs_print_delayline(struct wlan_dfs *dfs, struct dfs_delayline *dl) in dfs_print_delayline() argument
1914 void dfs_print_nol(struct wlan_dfs *dfs);
1921 void dfs_print_filter(struct wlan_dfs *dfs,
1930 struct dfs_state *dfs_getchanstate(struct wlan_dfs *dfs, uint8_t *index,
1946 void dfs_reset_alldelaylines(struct wlan_dfs *dfs);
1948 static inline void dfs_reset_alldelaylines(struct wlan_dfs *dfs) in dfs_reset_alldelaylines() argument
1970 void dfs_reset_radarq(struct wlan_dfs *dfs);
1972 static inline void dfs_reset_radarq(struct wlan_dfs *dfs) in dfs_reset_radarq() argument
1985 void dfs_add_pulse(struct wlan_dfs *dfs,
1999 int dfs_bin_check(struct wlan_dfs *dfs,
2016 int dfs_bin_pri_check(struct wlan_dfs *dfs,
2034 int dfs_staggered_check(struct wlan_dfs *dfs,
2052 int dfs_get_pri_margin(struct wlan_dfs *dfs,
2057 int dfs_get_pri_margin(struct wlan_dfs *dfs, in dfs_get_pri_margin() argument
2077 int dfs_get_filter_threshold(struct wlan_dfs *dfs,
2087 static inline void dfs_process_ar_event(struct wlan_dfs *dfs, in dfs_process_ar_event() argument
2096 static inline void dfs_reset_ar(struct wlan_dfs *dfs) in dfs_reset_ar() argument
2104 static inline void dfs_reset_arq(struct wlan_dfs *dfs) in dfs_reset_arq() argument
2109 void dfs_process_ar_event(struct wlan_dfs *dfs,
2112 void dfs_reset_ar(struct wlan_dfs *dfs);
2113 void dfs_reset_arq(struct wlan_dfs *dfs);
2122 void dfs_is_radar_enabled(struct wlan_dfs *dfs,
2125 static inline void dfs_is_radar_enabled(struct wlan_dfs *dfs, in dfs_is_radar_enabled() argument
2145 int dfs_process_phyerr_bb_tlv(struct wlan_dfs *dfs,
2158 void dfs_reset(struct wlan_dfs *dfs);
2167 void dfs_radar_enable(struct wlan_dfs *dfs,
2170 static inline void dfs_radar_enable(struct wlan_dfs *dfs, in dfs_radar_enable() argument
2187 void dfs_process_phyerr(struct wlan_dfs *dfs,
2195 static inline void dfs_process_phyerr(struct wlan_dfs *dfs, in dfs_process_phyerr() argument
2214 bool dfs_switch_to_postnol_chan_if_nol_expired(struct wlan_dfs *dfs);
2217 dfs_switch_to_postnol_chan_if_nol_expired(struct wlan_dfs *dfs) in dfs_switch_to_postnol_chan_if_nol_expired() argument
2232 void dfs_process_phyerr_filter_offload(struct wlan_dfs *dfs,
2236 struct wlan_dfs *dfs, in dfs_process_phyerr_filter_offload() argument
2248 void dfs_get_radars(struct wlan_dfs *dfs);
2250 static inline void dfs_get_radars(struct wlan_dfs *dfs) in dfs_get_radars() argument
2259 int dfs_attach(struct wlan_dfs *dfs);
2266 int dfs_create_object(struct wlan_dfs **dfs);
2272 void dfs_destroy_object(struct wlan_dfs *dfs);
2278 void dfs_detach(struct wlan_dfs *dfs);
2285 void dfs_stacac_stop(struct wlan_dfs *dfs);
2300 bool dfs_is_cac_required(struct wlan_dfs *dfs,
2319 dfs_update_cac_elements(struct wlan_dfs *dfs, uint16_t *freq_list,
2324 dfs_update_cac_elements(struct wlan_dfs *dfs, uint16_t *freq_list, in dfs_update_cac_elements() argument
2338 void dfs_send_dfs_events_for_chan(struct wlan_dfs *dfs,
2346 void dfs_cac_stop(struct wlan_dfs *dfs);
2352 void dfs_cancel_cac_timer(struct wlan_dfs *dfs);
2358 void dfs_start_cac_timer(struct wlan_dfs *dfs);
2367 void dfs_cac_valid_reset_for_freq(struct wlan_dfs *dfs,
2377 int dfs_get_override_cac_timeout(struct wlan_dfs *dfs,
2385 int dfs_override_cac_timeout(struct wlan_dfs *dfs,
2392 int dfs_is_ap_cac_timer_running(struct wlan_dfs *dfs);
2398 void dfs_cac_timer_attach(struct wlan_dfs *dfs);
2404 void dfs_cac_timer_reset(struct wlan_dfs *dfs);
2410 void dfs_cac_timer_detach(struct wlan_dfs *dfs);
2417 void dfs_puncture_cac_timer_detach(struct wlan_dfs *dfs);
2420 void dfs_puncture_cac_timer_detach(struct wlan_dfs *dfs) in dfs_puncture_cac_timer_detach() argument
2433 void dfs_deliver_cac_state_events(struct wlan_dfs *dfs);
2436 void dfs_deliver_cac_state_events(struct wlan_dfs *dfs) in dfs_deliver_cac_state_events() argument
2442 void dfs_stacac_stop(struct wlan_dfs *dfs) in dfs_stacac_stop() argument
2447 dfs_update_cac_elements(struct wlan_dfs *dfs, uint16_t *freq_list, in dfs_update_cac_elements() argument
2455 bool dfs_is_cac_required(struct wlan_dfs *dfs, in dfs_is_cac_required() argument
2465 void dfs_cac_stop(struct wlan_dfs *dfs) in dfs_cac_stop() argument
2470 void dfs_send_dfs_events_for_chan(struct wlan_dfs *dfs, in dfs_send_dfs_events_for_chan() argument
2477 void dfs_cancel_cac_timer(struct wlan_dfs *dfs) in dfs_cancel_cac_timer() argument
2482 void dfs_start_cac_timer(struct wlan_dfs *dfs) in dfs_start_cac_timer() argument
2488 void dfs_cac_valid_reset_for_freq(struct wlan_dfs *dfs, in dfs_cac_valid_reset_for_freq() argument
2496 int dfs_get_override_cac_timeout(struct wlan_dfs *dfs, in dfs_get_override_cac_timeout() argument
2503 int dfs_override_cac_timeout(struct wlan_dfs *dfs, in dfs_override_cac_timeout() argument
2510 int dfs_is_ap_cac_timer_running(struct wlan_dfs *dfs) in dfs_is_ap_cac_timer_running() argument
2516 void dfs_cac_timer_attach(struct wlan_dfs *dfs) in dfs_cac_timer_attach() argument
2521 void dfs_cac_timer_reset(struct wlan_dfs *dfs) in dfs_cac_timer_reset() argument
2526 void dfs_cac_timer_detach(struct wlan_dfs *dfs) in dfs_cac_timer_detach() argument
2531 void dfs_deliver_cac_state_events(struct wlan_dfs *dfs) in dfs_deliver_cac_state_events() argument
2536 void dfs_puncture_cac_timer_detach(struct wlan_dfs *dfs) in dfs_puncture_cac_timer_detach() argument
2546 void dfs_set_update_nol_flag(struct wlan_dfs *dfs,
2553 bool dfs_get_update_nol_flag(struct wlan_dfs *dfs);
2559 int dfs_get_use_nol(struct wlan_dfs *dfs);
2565 int dfs_get_nol_timeout(struct wlan_dfs *dfs);
2576 int dfs_control(struct wlan_dfs *dfs,
2588 void dfs_getnol(struct wlan_dfs *dfs,
2597 void dfs_clear_nolhistory(struct wlan_dfs *dfs);
2600 dfs_clear_nolhistory(struct wlan_dfs *dfs) in dfs_clear_nolhistory() argument
2618 void ol_if_dfs_configure(struct wlan_dfs *dfs);
2625 int dfs_init_radar_filters(struct wlan_dfs *dfs,
2632 void dfs_print_filters(struct wlan_dfs *dfs);
2638 void dfs_clear_stats(struct wlan_dfs *dfs);
2645 int dfs_radar_disable(struct wlan_dfs *dfs);
2647 static inline int dfs_radar_disable(struct wlan_dfs *dfs) in dfs_radar_disable() argument
2658 int dfs_get_debug_info(struct wlan_dfs *dfs,
2666 void dfs_nol_timer_init(struct wlan_dfs *dfs);
2672 void dfs_nol_attach(struct wlan_dfs *dfs);
2678 void dfs_nol_detach(struct wlan_dfs *dfs);
2684 void dfs_print_nolhistory(struct wlan_dfs *dfs);
2692 void dfs_find_precac_secondary_vht80_chan(struct wlan_dfs *dfs,
2704 void dfs_precac_csa(struct wlan_dfs *dfs);
2721 int dfs_get_thresholds(struct wlan_dfs *dfs,
2724 static inline int dfs_get_thresholds(struct wlan_dfs *dfs, in dfs_get_thresholds() argument
2738 int dfs_set_thresholds(struct wlan_dfs *dfs,
2742 static inline int dfs_set_thresholds(struct wlan_dfs *dfs, in dfs_set_thresholds() argument
2800 bool dfs_is_en302_502_applicable(struct wlan_dfs *dfs);
2802 static inline bool dfs_is_en302_502_applicable(struct wlan_dfs *dfs) in dfs_is_en302_502_applicable() argument
2824 void dfs_set_current_channel_for_freq(struct wlan_dfs *dfs,
2859 void bin5_rules_check_internal(struct wlan_dfs *dfs,
2872 void dfs_main_task_testtimer_init(struct wlan_dfs *dfs);
2878 void dfs_stop(struct wlan_dfs *dfs);
2886 void dfs_update_cur_chan_flags(struct wlan_dfs *dfs,
2903 void dfs_nol_free_list(struct wlan_dfs *dfs);
2914 int dfs_second_segment_radar_disable(struct wlan_dfs *dfs);
2925 void dfs_fetch_nol_ie_info(struct wlan_dfs *dfs, uint8_t *nol_ie_bandwidth,
2929 void dfs_fetch_nol_ie_info(struct wlan_dfs *dfs, uint8_t *nol_ie_bandwidth, in dfs_fetch_nol_ie_info() argument
2946 void dfs_set_rcsa_flags(struct wlan_dfs *dfs, bool is_rcsa_ie_sent,
2950 void dfs_set_rcsa_flags(struct wlan_dfs *dfs, bool is_rcsa_ie_sent, in dfs_set_rcsa_flags() argument
2970 dfs_get_radar_bitmap_from_nolie(struct wlan_dfs *dfs,
2976 dfs_get_radar_bitmap_from_nolie(struct wlan_dfs *dfs, enum wlan_phymode phymode, in dfs_get_radar_bitmap_from_nolie() argument
2992 void dfs_get_rcsa_flags(struct wlan_dfs *dfs, bool *is_rcsa_ie_sent,
2996 void dfs_get_rcsa_flags(struct wlan_dfs *dfs, bool *is_rcsa_ie_sent, in dfs_get_rcsa_flags() argument
3015 bool dfs_process_nol_ie_bitmap(struct wlan_dfs *dfs, uint8_t nol_ie_bandwidth,
3020 bool dfs_process_nol_ie_bitmap(struct wlan_dfs *dfs, uint8_t nol_ie_bandwidth, in dfs_process_nol_ie_bitmap() argument
3032 void dfs_task_testtimer_reset(struct wlan_dfs *dfs);
3043 bool dfs_is_freq_in_nol(struct wlan_dfs *dfs, uint32_t freq);
3049 void dfs_task_testtimer_detach(struct wlan_dfs *dfs);
3055 void dfs_timer_detach(struct wlan_dfs *dfs);
3064 int dfs_is_disable_radar_marking_set(struct wlan_dfs *dfs,
3067 static inline int dfs_is_disable_radar_marking_set(struct wlan_dfs *dfs, in dfs_is_disable_radar_marking_set() argument
3078 bool dfs_get_disable_radar_marking(struct wlan_dfs *dfs);
3080 static inline bool dfs_get_disable_radar_marking(struct wlan_dfs *dfs) in dfs_get_disable_radar_marking() argument
3098 int dfs_reinit_timers(struct wlan_dfs *dfs);
3106 void dfs_reset_dfs_prevchan(struct wlan_dfs *dfs);
3115 void dfs_init_tmp_psoc_nol(struct wlan_dfs *dfs, uint8_t num_radios);
3123 void dfs_deinit_tmp_psoc_nol(struct wlan_dfs *dfs);
3135 void dfs_save_dfs_nol_in_psoc(struct wlan_dfs *dfs, uint8_t pdev_id);
3147 void dfs_reinit_nol_from_psoc_copy(struct wlan_dfs *dfs,
3159 bool dfs_is_hw_mode_switch_in_progress(struct wlan_dfs *dfs);
3162 bool dfs_is_hw_mode_switch_in_progress(struct wlan_dfs *dfs) in dfs_is_hw_mode_switch_in_progress() argument
3174 void dfs_start_mode_switch_defer_timer(struct wlan_dfs *dfs);
3183 void dfs_complete_deferred_tasks(struct wlan_dfs *dfs);
3191 void dfs_process_cac_completion(struct wlan_dfs *dfs);
3200 bool dfs_is_true_160mhz_supported(struct wlan_dfs *dfs);
3209 bool dfs_is_restricted_80p80mhz_supported(struct wlan_dfs *dfs);
3211 static inline bool dfs_is_true_160mhz_supported(struct wlan_dfs *dfs) in dfs_is_true_160mhz_supported() argument
3216 static inline bool dfs_is_restricted_80p80mhz_supported(struct wlan_dfs *dfs) in dfs_is_restricted_80p80mhz_supported() argument
3229 uint8_t dfs_get_agile_detector_id(struct wlan_dfs *dfs);
3231 static inline uint8_t dfs_get_agile_detector_id(struct wlan_dfs *dfs) in dfs_get_agile_detector_id() argument
3246 bool dfs_is_new_chan_subset_of_old_chan(struct wlan_dfs *dfs,
3259 uint8_t dfs_find_dfs_sub_channels_for_freq(struct wlan_dfs *dfs,
3267 void dfs_clear_cac_started_chan(struct wlan_dfs *dfs);
3277 int dfs_bang_radar(struct wlan_dfs *dfs, void *indata, uint32_t insize);
3280 dfs_bang_radar(struct wlan_dfs *dfs, void *indata, uint32_t insize) in dfs_bang_radar() argument
3287 void dfs_postnol_attach(struct wlan_dfs *dfs);
3289 static inline void dfs_postnol_attach(struct wlan_dfs *dfs) in dfs_postnol_attach() argument
3302 bool wlan_is_chan_radar(struct wlan_dfs *dfs, struct dfs_channel *chan);
3312 bool wlan_is_chan_history_radar(struct wlan_dfs *dfs, struct dfs_channel *chan);
3315 wlan_is_chan_radar(struct wlan_dfs *dfs, struct dfs_channel *chan) in wlan_is_chan_radar() argument
3321 wlan_is_chan_history_radar(struct wlan_dfs *dfs, struct dfs_channel *chan) in wlan_is_chan_history_radar() argument
3338 bool dfs_restart_rcac_on_nol_expiry(struct wlan_dfs *dfs);
3341 dfs_restart_rcac_on_nol_expiry(struct wlan_dfs *dfs) in dfs_restart_rcac_on_nol_expiry() argument