Home | History | Annotate | Download | only in drivers

Lines Matching defs:freq

321 	int freq;
345 freq = drv->remain_on_channel_freq;
347 freq = drv->current_freq;
348 wpa_printf(MSG_DEBUG, "test_driver(%s): MLME TX on freq %d MHz",
349 dbss->ifname, freq);
350 os_snprintf(cmd, sizeof(cmd), "MLME freq=%d ", freq);
756 int freq = 0, own_freq;
761 if (datalen > 6 && os_memcmp(data, "freq=", 5) == 0) {
768 freq = atoi((const char *) &data[5]);
770 "freq %d MHz", bss->ifname, freq);
782 if (freq && own_freq && freq != own_freq) {
785 bss->ifname, freq, own_freq);
1324 bss->freq, bss->level,
1543 wpa_printf(MSG_DEBUG, "%s: priv=%p freq=%d pairwise_suite=%d "
1545 __func__, priv, params->freq, params->pairwise_suite,
1838 res->freq = 2407 + ds_params[2] * 5;
1908 int freq = 0, own_freq;
1915 if (data_len > 6 && os_memcmp(data, "freq=", 5) == 0) {
1922 freq = atoi((const char *) &data[5]);
1924 "freq %d MHz", bss->ifname, freq);
1936 if (freq && own_freq && freq != own_freq) {
1939 bss->ifname, freq, own_freq);
1946 event.mlme_rx.freq = freq;
1984 data_len - hdr_len, freq);
2586 modes[0].channels[i].freq = 2412 + 5 * i;
2612 modes[1].channels[i].freq = 2412 + 5 * i;
2628 modes[2].channels[0].freq = 5300;
2654 struct hostapd_freq_params *freq)
2658 wpa_printf(MSG_DEBUG, "test: set_freq %u MHz", freq->freq);
2659 drv->current_freq = freq->freq;
2664 static int wpa_driver_test_send_action(void *priv, unsigned int freq,
2680 freq != drv->remain_on_channel_freq) ||
2682 freq != (unsigned int) drv->current_freq)) {
2684 "unexpected channel: freq=%u MHz (current_freq=%u "
2685 "MHz, remain-on-channel freq=%u MHz)",
2686 freq, drv->current_freq,
2718 "waiting for another freq=%u",
2743 data.remain_on_channel.freq = drv->remain_on_channel_freq;
2755 static int wpa_driver_test_remain_on_channel(void *priv, unsigned int freq,
2762 wpa_printf(MSG_DEBUG, "%s(freq=%u, duration=%u)",
2763 __func__, freq, duration);
2765 drv->remain_on_channel_freq != freq) {
2771 drv->remain_on_channel_freq = freq;
2778 data.remain_on_channel.freq = freq;
2913 static int test_p2p_scan(void *ctx, enum p2p_scan_type type, int freq,
2924 wpa_printf(MSG_DEBUG, "%s(type=%d freq=%d)",
2925 __func__, type, freq);
2965 social_channels[0] = freq;
2970 social_channels[3] = freq;
2984 static int test_send_action(void *ctx, unsigned int freq, const u8 *dst,
2990 wpa_printf(MSG_DEBUG, "%s(freq=%u dst=" MACSTR " src=" MACSTR
2992 __func__, freq, MAC2STR(dst), MAC2STR(src), MAC2STR(bssid),
2994 if (freq <= 0) {
3012 drv->pending_action_freq = freq;
3015 if (drv->off_channel_freq == freq) {
3026 if (wpa_driver_test_remain_on_channel(drv, freq, wait_time) < 0) {
3029 "Frame TX", freq);
3094 static int test_start_listen(void *ctx, unsigned int freq,
3100 wpa_printf(MSG_DEBUG, "%s(freq=%u duration=%u)",
3101 __func__, freq, duration);
3106 drv->pending_listen_freq = freq;
3109 if (wpa_driver_test_remain_on_channel(drv, freq, duration) < 0) {
3174 static void test_sd_request(void *ctx, int freq, const u8 *sa, u8 dialog_token,