Lines Matching refs:ard
201 struct ath_radar_data *ard, in ath9k_postprocess_radar_event() argument
211 ard->pulse_bw_info &= 0x03; in ath9k_postprocess_radar_event()
213 switch (ard->pulse_bw_info) { in ath9k_postprocess_radar_event()
216 dur = ard->pulse_length_pri; in ath9k_postprocess_radar_event()
222 rssi = (ard->ext_rssi >= (ard->rssi + 3)) ? 0 : ard->rssi; in ath9k_postprocess_radar_event()
226 dur = ard->pulse_length_ext; in ath9k_postprocess_radar_event()
232 rssi = (ard->rssi >= (ard->ext_rssi + 12)) ? 0 : ard->ext_rssi; in ath9k_postprocess_radar_event()
242 if (ard->pulse_length_ext >= ard->pulse_length_pri) in ath9k_postprocess_radar_event()
243 dur = ard->pulse_length_ext; in ath9k_postprocess_radar_event()
245 dur = ard->pulse_length_pri; in ath9k_postprocess_radar_event()
249 rssi = max(ard->rssi, ard->ext_rssi); in ath9k_postprocess_radar_event()
292 struct ath_radar_data ard; in ath9k_dfs_process_phyerr() local
315 ard.rssi = rs->rs_rssi_ctl[0]; in ath9k_dfs_process_phyerr()
316 ard.ext_rssi = rs->rs_rssi_ext[0]; in ath9k_dfs_process_phyerr()
322 if (ard.rssi & 0x80) in ath9k_dfs_process_phyerr()
323 ard.rssi = 0; in ath9k_dfs_process_phyerr()
324 if (ard.ext_rssi & 0x80) in ath9k_dfs_process_phyerr()
325 ard.ext_rssi = 0; in ath9k_dfs_process_phyerr()
328 ard.pulse_bw_info = vdata_end[-1]; in ath9k_dfs_process_phyerr()
329 ard.pulse_length_ext = vdata_end[-2]; in ath9k_dfs_process_phyerr()
330 ard.pulse_length_pri = vdata_end[-3]; in ath9k_dfs_process_phyerr()
333 if (!ath9k_postprocess_radar_event(sc, &ard, &pe)) in ath9k_dfs_process_phyerr()
338 bool is_ctl = !!(ard.pulse_bw_info & PRI_CH_RADAR_FOUND); in ath9k_dfs_process_phyerr()
339 bool is_ext = !!(ard.pulse_bw_info & EXT_CH_RADAR_FOUND); in ath9k_dfs_process_phyerr()
349 ard.pulse_bw_info, pe.freq, pe.ts, pe.width, pe.rssi, in ath9k_dfs_process_phyerr()
352 if (ard.pulse_bw_info & PRI_CH_RADAR_FOUND) in ath9k_dfs_process_phyerr()
355 ard.pulse_bw_info & EXT_CH_RADAR_FOUND) { in ath9k_dfs_process_phyerr()