/freebsd/tools/tools/ath/athradar/ |
H A D | athradar.c | 47 radar_opendev(struct radarhandler *radar, const char *devid) in radar_opendev() argument 51 radar->s = socket(AF_INET, SOCK_DGRAM, 0); in radar_opendev() 52 if (radar->s < 0) { in radar_opendev() 57 strncpy(radar->atd.ad_name, devid, sizeof (radar->atd.ad_name)); in radar_opendev() 60 radar->atd.ad_id = HAL_DIAG_REVS; in radar_opendev() 61 radar->atd.ad_out_data = (caddr_t) &revs; in radar_opendev() 62 radar->atd.ad_out_size = sizeof(revs); in radar_opendev() 63 if (ioctl(radar->s, SIOCGATHDIAG, &radar->atd) < 0) { in radar_opendev() 64 warn(radar->atd.ad_name); in radar_opendev() 67 radar->ah_devid = revs.ah_devid; in radar_opendev() [all …]
|
/freebsd/sys/contrib/dev/athk/ |
H A D | dfs_pattern_detector.h | 24 /* tolerated deviation of radar time stamp in usecs on both sides 47 * @rssi: rssi of radar event 59 * struct radar_detector_specs - detector specs for a radar pattern type 61 * @width_min: minimum radar pulse width in [us] 62 * @width_max: maximum radar pulse width in [us] 69 * @chirp: chirp required for the radar pattern 88 * @add_pulse(): add radar pulse to detector, returns true on detection 90 * @num_radar_types: number of different radar types 92 * @radar_detector_specs: array of radar detection specs
|
H A D | dfs_pattern_detector.c | 27 * @num_radar_types: number of radar types to follow 28 * @radar_types: radar types array 54 /* radar types as defined by ETSI EN-301-893 v1.5.1 */ 79 /* radar types released on August 14, 2014 81 * divide it to 3 groups is good enough for both of radar detection and 135 * get_dfs_domain_radar_types() - get radar types for a given DFS domain 159 * radar pulses have been reported for in the past. 303 "DFS: radar found on freq=%d: id=%d, pri=%d, " in dpd_add_pulse()
|
H A D | regd.c | 256 /* Frequency is one where radar detection is required */ 332 * These exception rules do not apply radar frequencies. 403 /* Always apply Radar/DFS rules on freq range 5500 MHz - 5700 MHz */ 420 /* We always enable radar detection/DFS on this in ath_reg_apply_radar_flags() 427 * - If AP mode does not yet support radar detection/DFS in ath_reg_apply_radar_flags()
|
/freebsd/sys/net80211/ |
H A D | ieee80211_dfs.c | 29 * IEEE 802.11 DFS/Radar support. 74 * 2 - just match on radar, don't send CAC or place channel in 139 * When radar is detected during a CAC we are woken in cac_timeout() 148 "CAC timer on channel %u (%u MHz) stopped due to radar\n", in cac_timeout() 158 "no radar detected\n", in cac_timeout() 178 * for setting up the hardware to scan for radar on the 252 ic_printf(ic, "radar on channel %u " in dfs_timeout() 275 ic_printf(ic, "radar detected on channel %u (%u MHz)\n", in announce_radar() 278 ic_printf(ic, "radar detected on channel %u (%u MHz), " in announce_radar() 285 * Handle a radar detection event on a channel. The channel is [all …]
|
H A D | ieee80211_dfs.h | 44 struct timeval lastevent; /* time of last radar event */ 46 const struct ieee80211_channel *lastchan;/* chan w/ last radar event */
|
/freebsd/sys/dev/rtwn/rtl8821a/usb/ |
H A D | r21au_dfs.c | 125 "%s: periodical radar detection task\n", __func__); in r21au_chan_check() 132 "%s: radar detection was turned off " in r21au_chan_check() 145 RTWN_DPRINTF(sc, RTWN_DEBUG_RADAR, "%s: got radar event\n", in r21au_chan_check() 185 "%s: cannot enable radar detection\n", __func__); in r21au_newstate() 191 "%s: radar detection was enabled\n", __func__); in r21au_newstate() 209 "%s: radar detection was disabled\n", __func__); in r21au_newstate() 240 "%s: radar detection was (temporarily) disabled\n", in r21au_scan_start() 260 "%s: cannot re-enable radar detection\n", in r21au_scan_end() 269 "%s: radar detection was re-enabled\n", __func__); in r21au_scan_end()
|
/freebsd/sys/dev/ath/ath_dfs/null/ |
H A D | dfs_null.c | 97 * Enable radar check. Return 1 if the driver should 98 * enable radar PHY errors, or 0 if not. 106 /* Check if the hardware supports radar reporting */ in ath_dfs_radar_enable() 112 /* Check if the current channel is radar-enabled */ in ath_dfs_radar_enable() 121 /* Enable radar PHY error reporting */ in ath_dfs_radar_enable() 124 /* Tell the hardware to enable radar reporting */ in ath_dfs_radar_enable() 149 * Explicity disable radar reporting. 182 * Process the radar events and determine whether a DFS event has occurred. 199 * have been received. It will return whether there are any radar
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | ap.c | 2099 struct dfs_event *radar) in wpas_ap_event_dfs_radar_detected() argument 2107 wpa_printf(MSG_DEBUG, "DFS radar detected on %d MHz", radar->freq); in wpas_ap_event_dfs_radar_detected() 2108 hostapd_dfs_radar_detected(iface, radar->freq, in wpas_ap_event_dfs_radar_detected() 2109 radar->ht_enabled, radar->chan_offset, in wpas_ap_event_dfs_radar_detected() 2110 radar->chan_width, in wpas_ap_event_dfs_radar_detected() 2111 radar->cf1, radar->cf2); in wpas_ap_event_dfs_radar_detected() 2116 struct dfs_event *radar) in wpas_ap_event_dfs_cac_started() argument 2124 wpa_printf(MSG_DEBUG, "DFS CAC started on %d MHz", radar->freq); in wpas_ap_event_dfs_cac_started() 2125 hostapd_dfs_start_cac(iface, radar->freq, in wpas_ap_event_dfs_cac_started() 2126 radar->ht_enabled, radar->chan_offset, in wpas_ap_event_dfs_cac_started() [all …]
|
H A D | ap.h | 114 struct dfs_event *radar); 116 struct dfs_event *radar); 118 struct dfs_event *radar); 120 struct dfs_event *radar); 122 struct dfs_event *radar);
|
/freebsd/contrib/wpa/src/ap/ |
H A D | drv_callbacks.c | 2198 struct dfs_event *radar) in hostapd_event_dfs_radar_detected() argument 2200 wpa_printf(MSG_DEBUG, "DFS radar detected on %d MHz", radar->freq); in hostapd_event_dfs_radar_detected() 2201 hostapd_dfs_radar_detected(hapd->iface, radar->freq, radar->ht_enabled, in hostapd_event_dfs_radar_detected() 2202 radar->chan_offset, radar->chan_width, in hostapd_event_dfs_radar_detected() 2203 radar->cf1, radar->cf2); in hostapd_event_dfs_radar_detected() 2208 struct dfs_event *radar) in hostapd_event_dfs_pre_cac_expired() argument 2210 wpa_printf(MSG_DEBUG, "DFS Pre-CAC expired on %d MHz", radar->freq); in hostapd_event_dfs_pre_cac_expired() 2211 hostapd_dfs_pre_cac_expired(hapd->iface, radar->freq, radar->ht_enabled, in hostapd_event_dfs_pre_cac_expired() 2212 radar->chan_offset, radar->chan_width, in hostapd_event_dfs_pre_cac_expired() 2213 radar->cf1, radar->cf2); in hostapd_event_dfs_pre_cac_expired() [all …]
|
H A D | dfs.c | 25 DFS_AVAILABLE, /* non-radar or radar-available */ 26 DFS_NO_CAC_YET, /* radar-not-yet-available */ 80 /* Select only radar channel where CAC has not been in dfs_channel_available() 91 * When radar detection happens, CSA is performed. However, there's no in dfs_channel_available() 92 * time for CAC, so radar channels must be skipped when finding a new in dfs_channel_available() 443 /* At least one channel have radar flag */ 753 /* Reported via radar event */ in dfs_are_channels_overlapped() 786 wpa_printf(MSG_DEBUG, "checking our: %d, radar: %d", in dfs_are_channels_overlapped() 866 "DFS %d channels required radar detection", in hostapd_handle_dfs() 921 /* Cache background radar parameters. */ in hostapd_handle_dfs() [all …]
|
/freebsd/sys/dev/ath/ath_hal/ar5416/ |
H A D | ar5416_radar.c | 34 * radar pulse event generation. 59 * to use when configuring radar pulse detection for in ar5416GetDfsDefaultThresh() 77 * Get the radar parameter values and return them in the pe 119 * Enable radar detection and set the radar parameters per the 221 * Extract the radar event information from the given phy error. 248 /* Check whether the given phy error is a radar event */ in ar5416ProcessRadarEvent() 360 /* No radar? */ in ar5416ProcessRadarEvent() 364 /* Radar in primary channel */ in ar5416ProcessRadarEvent() 371 /* Radar in extended channel */ in ar5416ProcessRadarEvent()
|
H A D | ar5416_spectral.c | 52 // Enable radar FFT in ar5416DisableRadar() 56 // set radar detect thresholds to max to effectively disable radar in ar5416DisableRadar() 66 // disable extension radar detect in ar5416DisableRadar()
|
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300_freebsd_inc.h | 99 u_int32_t rp_numpulses ; /* Num of pulses in radar burst */ 107 radar match */ 112 u_int32_t rp_rssithresh; /* Minimum rssi to be considered a radar pulse */ 122 u_int32_t rp_numpulses; /* Num of pulses in radar burst */ 130 radar match */ 135 u_int32_t rp_rssithresh; /* Minimum rssi to be considered a radar pulse */
|
H A D | ar9300_radar.c | 29 * Default 5413/9300 radar phy parameters 225 * Enable radar detection and set the radar parameters per the 297 /* Enable extension channel radar detection */ 300 /* HT20 mode, disable extension channel radar detect */ 322 * Get the radar parameter values and return them in the pe 422 However, this causes problem during CAC as no radar is detected 570 * radar support is enabled.
|
H A D | ar9300.h | 191 #define HAL_RADAR_EN 0x80000000 /* Radar detect is capable */ 233 u_int8_t re_rssi; /* rssi of radar event */ 234 u_int8_t re_dur; /* duration of radar pulse */ 241 struct ar9300_radar_event rq_event; /* Radar event */ 255 #define HAL_RADARQ_SIZE 1024 /* 1K radar events for buffer size */ 256 #define HAL_RADARQ_SEQSIZE 1025 /* Sequence counter wrap for radar */ 257 #define HAL_NUMRADAR_STATES 64 /* Number of radar channels we keep state for */ 272 u_int8_t rs_chan_index; /* Channel index in radar structure */ 273 u_int32_t rs_num_radar_events; /* Number of radar events */ 274 int32_t rs_firpwr; /* Thresh to check radar sig is gone */ [all …]
|
H A D | ar9300phy.h | 125 #define AR_PHY_RADAR_0 AR_CHAN_OFFSET(BB_radar_detection) /* radar detection sett… 129 #define AR_PHY_RADAR_EXT AR_CHAN_OFFSET(BB_extension_radar) /* extension channel radar s… 224 #define AR_PHY_RADAR_0_ENA 0x00000001 /* Enable radar detection */ 233 #define AR_PHY_RADAR_0_RRSSI 0x00FC0000 /* Radar rssi threshold */ 235 #define AR_PHY_RADAR_0_FIRPWR 0x7F000000 /* Radar firpwr threshold */ 238 #define AR_PHY_RADAR_1_RELPWR_ENA 0x00800000 /* enable to check radar relative power */ 244 #define AR_PHY_RADAR_1_BLOCK_CHECK 0x00008000 /* Enable to block radar check if weak OFDM 252 #define AR_PHY_RADAR_1_MAXLEN 0x000000FF /* Max length of radar pulse */ 255 #define AR_PHY_RADAR_EXT_ENA 0x00004000 /* Enable extension channel radar detection */ 1462 #define AR_PHY_BB_WD_RADAR_SM 0x000000F0 /* snapshot of radar state machine r_rdr_sm */
|
H A D | ar9300_spectral.c | 76 /* Enable radar FFT */ in ar9300_disable_radar() 80 /* set radar detect thresholds to max to effectively disable radar */ in ar9300_disable_radar() 90 /* disable extension radar detect */ in ar9300_disable_radar()
|
/freebsd/sys/dev/ath/ath_hal/ar5212/ |
H A D | ar5212phy.h | 210 #define AR_PHY_RADAR_0 0x9954 /* radar detection settings */ 211 #define AR_PHY_RADAR_0_ENA 0x00000001 /* Enable radar detection */ 218 #define AR_PHY_RADAR_0_RRSSI 0x00FC0000 /* Radar rssi threshold */ 220 #define AR_PHY_RADAR_0_FIRPWR 0x7F000000 /* Radar firpwr threshold */ 224 #define AR_PHY_RADAR_2 0x9958 /* radar detection settings */ 227 #define AR_PHY_RADAR_2_BLOCKOFDMWEAK 0x00008000 /* En block OFDM weak sig as radar */
|
/freebsd/tools/tools/net80211/scripts/ |
H A D | setup.dfs | 4 # then simulate a radar event and verify operation. 25 sleep 5; sysctl net.wlan.$unit.radar=1
|
/freebsd/sys/contrib/device-tree/Bindings/net/wireless/ |
H A D | mediatek,mt76.yaml | 110 mediatek,disable-radar-background: 113 Disable/enable radar/CAC detection running on a dedicated offchannel 115 Background radar/CAC detection allows to avoid the CAC downtime 117 radar channel.
|
/freebsd/sys/dev/ath/ath_hal/ar5211/ |
H A D | ar5211phy.h | 79 #define AR_PHY_RADAR_0 0x9954 /* PHY radar detection settings */ 80 #define AR_PHY_RADAR_0_ENA 0x00000001 /* Enable radar detection */
|
/freebsd/sys/gnu/dev/bwn/phy_n/ |
H A D | if_bwn_phy_n_regs.h | 404 #define BWN_NPHY_RADAR_BLNKCTL BWN_PHY_N(0x0EE) /* Radar blank control */ 405 #define BWN_NPHY_A0RADAR_FIFOCTL BWN_PHY_N(0x0EF) /* Antenna 0 radar FIFO control */ 406 #define BWN_NPHY_A1RADAR_FIFOCTL BWN_PHY_N(0x0F0) /* Antenna 1 radar FIFO control */ 407 #define BWN_NPHY_A0RADAR_FIFODAT BWN_PHY_N(0x0F1) /* Antenna 0 radar FIFO data */ 408 #define BWN_NPHY_A1RADAR_FIFODAT BWN_PHY_N(0x0F2) /* Antenna 1 radar FIFO data */ 409 #define BWN_NPHY_RADAR_THRES0 BWN_PHY_N(0x0F3) /* Radar threshold 0 */ 410 #define BWN_NPHY_RADAR_THRES1 BWN_PHY_N(0x0F4) /* Radar threshold 1 */ 411 #define BWN_NPHY_RADAR_THRES0R BWN_PHY_N(0x0F5) /* Radar threshold 0R */ 412 #define BWN_NPHY_RADAR_THRES1R BWN_PHY_N(0x0F6) /* Radar threshold 1R */ 524 #define BWN_NPHY_RADAR_MAL BWN_PHY_N(0x157) /* Radar MA length */ [all …]
|
/freebsd/sys/contrib/dev/athk/ath11k/ |
H A D | reg.c | 558 /* frequencies below weather radar */ in ath11k_reg_update_weather_radar_band() 578 /* weather radar frequencies */ in ath11k_reg_update_weather_radar_band() 600 /* frequencies above weather radar */ in ath11k_reg_update_weather_radar_band() 646 /* Add max additional rules to accommodate weather radar band */ in ath11k_reg_build_regd() 709 * new rule covers weather radar band. in ath11k_reg_build_regd()
|