Lines Matching full:freq
35 unsigned int freq);
40 unsigned int freq, const u8 *dst,
48 unsigned int freq, const u8 *dst,
89 " freq=%u type=%d", in wpas_dpp_qr_code()
204 " freq=%u type=%d", in wpas_dpp_auth_resp_retry_timeout()
273 unsigned int freq, in wpas_dpp_stop_listen_for_tx() argument
289 if (wpa_s->dpp_listen_freq == freq && remaining > wait_time) in wpas_dpp_stop_listen_for_tx()
294 wpa_s->dpp_listen_freq, remaining, freq, wait_time); in wpas_dpp_stop_listen_for_tx()
424 DPP_EVENT_TX "dst=" MACSTR " freq=%u type=%d", in wpas_dpp_send_conn_status_result()
502 unsigned int freq, const u8 *dst, in wpas_dpp_tx_status() argument
513 wpa_printf(MSG_DEBUG, "DPP: TX status: freq=%u dst=" MACSTR in wpas_dpp_tx_status()
514 " result=%s", freq, MAC2STR(dst), res_txt); in wpas_dpp_tx_status()
516 " freq=%u result=%s", MAC2STR(dst), freq, res_txt); in wpas_dpp_tx_status()
630 unsigned int freq; in wpas_dpp_reply_wait_timeout() local
678 freq = auth->curr_freq; in wpas_dpp_reply_wait_timeout()
680 freq = auth->neg_freq; in wpas_dpp_reply_wait_timeout()
683 freq, wait_time); in wpas_dpp_reply_wait_timeout()
685 wpas_dpp_listen_start(wpa_s, freq); in wpas_dpp_reply_wait_timeout()
743 unsigned int wait_time, max_wait_time, freq, max_tries, used; in wpas_dpp_auth_init_next() local
793 freq = auth->freq[auth->freq_idx++]; in wpas_dpp_auth_init_next()
794 auth->curr_freq = freq; in wpas_dpp_auth_init_next()
814 if (auth->neg_freq > 0 && freq != auth->neg_freq) { in wpas_dpp_auth_init_next()
817 freq, auth->neg_freq); in wpas_dpp_auth_init_next()
819 wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_TX "dst=" MACSTR " freq=%u type=%d", in wpas_dpp_auth_init_next()
820 MAC2STR(dst), freq, DPP_PA_AUTHENTICATION_REQ); in wpas_dpp_auth_init_next()
823 return offchannel_send_action(wpa_s, freq, dst, in wpas_dpp_auth_init_next()
987 unsigned int freq; member
1031 wpa_s->dpp_pending_listen_freq = lwork->freq; in dpp_start_listen_cb()
1033 if (wpa_drv_remain_on_channel(wpa_s, lwork->freq, in dpp_start_listen_cb()
1037 lwork->freq); in dpp_start_listen_cb()
1044 wpa_s->roc_waiting_drv_freq = lwork->freq; in dpp_start_listen_cb()
1052 unsigned int freq) in wpas_dpp_listen_start() argument
1064 wpa_s->dpp_listen_freq = freq; in wpas_dpp_listen_start()
1069 lwork->freq = freq; in wpas_dpp_listen_start()
1071 if (radio_add_work(wpa_s, freq, "dpp-listen", 0, dpp_start_listen_cb, in wpas_dpp_listen_start()
1083 int freq; in wpas_dpp_listen() local
1085 freq = atoi(cmd); in wpas_dpp_listen()
1086 if (freq <= 0) in wpas_dpp_listen()
1103 if (wpa_s->dpp_listen_freq == (unsigned int) freq) { in wpas_dpp_listen()
1105 freq); in wpas_dpp_listen()
1109 return wpas_dpp_listen_start(wpa_s, freq); in wpas_dpp_listen()
1130 unsigned int freq, unsigned int duration) in wpas_dpp_remain_on_channel_cb() argument
1132 if (wpa_s->dpp_listen_freq != freq) in wpas_dpp_remain_on_channel_cb()
1137 freq, duration); in wpas_dpp_remain_on_channel_cb()
1154 wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_TX "dst=" MACSTR " freq=%u type=%d", in wpas_dpp_tx_auth_resp()
1183 unsigned int freq) in wpas_dpp_cancel_remain_on_channel_cb() argument
1185 wpa_printf(MSG_DEBUG, "DPP: Remain on channel cancel for %u MHz", freq); in wpas_dpp_cancel_remain_on_channel_cb()
1223 unsigned int freq) in wpas_dpp_rx_auth_req() argument
1297 peer_bi, own_bi, freq, hdr, buf, len); in wpas_dpp_rx_auth_req()
1333 int freq; in wpas_dpp_tx_wait_expire() local
1358 freq = auth->neg_freq > 0 ? auth->neg_freq : auth->curr_freq; in wpas_dpp_tx_wait_expire()
1359 if (wpa_s->dpp_listen_work || (int) wpa_s->dpp_listen_freq == freq) in wpas_dpp_tx_wait_expire()
1362 wpa_printf(MSG_DEBUG, "DPP: Start listen on %u MHz for GAS", freq); in wpas_dpp_tx_wait_expire()
1364 wpas_dpp_listen_start(wpa_s, freq); in wpas_dpp_tx_wait_expire()
1949 DPP_EVENT_TX "dst=" MACSTR " freq=%u type=%d", in wpas_dpp_gas_resp_cb()
2017 wpa_printf(MSG_DEBUG, "DPP: GAS request to " MACSTR " (freq %u MHz)", in wpas_dpp_start_gas_client()
2068 unsigned int freq) in wpas_dpp_rx_auth_resp() argument
2074 " (freq %u MHz)", MAC2STR(src), freq); in wpas_dpp_rx_auth_resp()
2091 if (auth->curr_freq != freq && auth->neg_freq == freq) { in wpas_dpp_rx_auth_resp()
2094 auth->curr_freq = freq; in wpas_dpp_rx_auth_resp()
2112 wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_TX "dst=" MACSTR " freq=%u type=%d", in wpas_dpp_rx_auth_resp()
2264 int freq; in wpas_dpp_rx_conf_result() local
2279 freq = auth->neg_freq ? auth->neg_freq : auth->curr_freq; in wpas_dpp_rx_conf_result()
2281 (int) wpa_s->dpp_listen_freq != freq) in wpas_dpp_rx_conf_result()
2282 wpas_dpp_listen_start(wpa_s, freq); in wpas_dpp_rx_conf_result()
2406 unsigned int freq) in wpas_dpp_rx_presence_announcement() argument
2437 freq, r_bootstrap); in wpas_dpp_rx_presence_announcement()
2448 DPP_CAPAB_CONFIGURATOR, freq, NULL, 0); in wpas_dpp_rx_presence_announcement()
2457 auth->neg_freq = freq; in wpas_dpp_rx_presence_announcement()
2468 wpas_dpp_stop_listen_for_tx(wpa_s, freq, wait_time); in wpas_dpp_rx_presence_announcement()
2498 unsigned int freq) in wpas_dpp_rx_reconfig_announcement() argument
2548 auth = dpp_reconfig_init(wpa_s->dpp, wpa_s, conf, freq, group, in wpas_dpp_rx_reconfig_announcement()
2574 wpas_dpp_stop_listen_for_tx(wpa_s, freq, wait_time); in wpas_dpp_rx_reconfig_announcement()
2576 wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_TX "dst=" MACSTR " freq=%u type=%d", in wpas_dpp_rx_reconfig_announcement()
2577 MAC2STR(src), freq, DPP_PA_RECONFIG_AUTH_REQ); in wpas_dpp_rx_reconfig_announcement()
2578 if (offchannel_send_action(wpa_s, freq, src, wpa_s->own_addr, broadcast, in wpas_dpp_rx_reconfig_announcement()
2591 unsigned int freq) in wpas_dpp_rx_reconfig_auth_req() argument
2627 freq, hdr, buf, len); in wpas_dpp_rx_reconfig_auth_req()
2635 wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_TX "dst=" MACSTR " freq=%u type=%d", in wpas_dpp_rx_reconfig_auth_req()
2636 MAC2STR(src), freq, DPP_PA_RECONFIG_AUTH_RESP); in wpas_dpp_rx_reconfig_auth_req()
2637 if (offchannel_send_action(wpa_s, freq, src, wpa_s->own_addr, broadcast, in wpas_dpp_rx_reconfig_auth_req()
2650 unsigned int freq) in wpas_dpp_rx_reconfig_auth_resp() argument
2676 wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_TX "dst=" MACSTR " freq=%u type=%d", in wpas_dpp_rx_reconfig_auth_resp()
2677 MAC2STR(src), freq, DPP_PA_RECONFIG_AUTH_CONF); in wpas_dpp_rx_reconfig_auth_resp()
2678 if (offchannel_send_action(wpa_s, freq, src, wpa_s->own_addr, broadcast, in wpas_dpp_rx_reconfig_auth_resp()
2695 unsigned int freq) in wpas_dpp_rx_reconfig_auth_conf() argument
2881 static int wpas_dpp_allow_ir(struct wpa_supplicant *wpa_s, unsigned int freq) in wpas_dpp_allow_ir() argument
2894 if (chan->freq != (int) freq) in wpas_dpp_allow_ir()
2908 freq); in wpas_dpp_allow_ir()
2917 if (pkex->freq == 2437) in wpas_dpp_pkex_next_channel()
2918 pkex->freq = 5745; in wpas_dpp_pkex_next_channel()
2919 else if (pkex->freq == 5745) in wpas_dpp_pkex_next_channel()
2920 pkex->freq = 5220; in wpas_dpp_pkex_next_channel()
2921 else if (pkex->freq == 5220) in wpas_dpp_pkex_next_channel()
2922 pkex->freq = 60480; in wpas_dpp_pkex_next_channel()
2926 if (wpas_dpp_allow_ir(wpa_s, pkex->freq) == 1) { in wpas_dpp_pkex_next_channel()
2928 pkex->freq); in wpas_dpp_pkex_next_channel()
3061 pkex->freq = 2437; in wpas_dpp_pkex_init()
3063 " freq=%u type=%d", in wpas_dpp_pkex_init()
3064 MAC2STR(broadcast), pkex->freq, in wpas_dpp_pkex_init()
3067 offchannel_send_action(wpa_s, pkex->freq, broadcast, in wpas_dpp_pkex_init()
3110 wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_TX "dst=" MACSTR " freq=%u type=%d", in wpas_dpp_pkex_retry_timeout()
3111 MAC2STR(broadcast), pkex->freq, in wpas_dpp_pkex_retry_timeout()
3114 offchannel_send_action(wpa_s, pkex->freq, broadcast, in wpas_dpp_pkex_retry_timeout()
3125 unsigned int freq, const u8 *dst, in wpas_dpp_tx_pkex_status() argument
3136 wpa_printf(MSG_DEBUG, "DPP: TX status: freq=%u dst=" MACSTR in wpas_dpp_tx_pkex_status()
3138 freq, MAC2STR(dst), res_txt); in wpas_dpp_tx_pkex_status()
3140 " freq=%u result=%s", MAC2STR(dst), freq, res_txt); in wpas_dpp_tx_pkex_status()
3172 const u8 *buf, size_t len, unsigned int freq, in wpas_dpp_rx_pkex_exchange_req() argument
3241 wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_TX "dst=" MACSTR " freq=%u type=%d", in wpas_dpp_rx_pkex_exchange_req()
3242 MAC2STR(src), freq, DPP_PA_PKEX_EXCHANGE_RESP); in wpas_dpp_rx_pkex_exchange_req()
3243 offchannel_send_action(wpa_s, freq, src, wpa_s->own_addr, in wpas_dpp_rx_pkex_exchange_req()
3252 const u8 *buf, size_t len, unsigned int freq) in wpas_dpp_rx_pkex_exchange_resp() argument
3284 wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_TX "dst=" MACSTR " freq=%u type=%d", in wpas_dpp_rx_pkex_exchange_resp()
3285 MAC2STR(src), freq, DPP_PA_PKEX_COMMIT_REVEAL_REQ); in wpas_dpp_rx_pkex_exchange_resp()
3286 offchannel_send_action(wpa_s, freq, src, wpa_s->own_addr, in wpas_dpp_rx_pkex_exchange_resp()
3296 unsigned int freq) in wpas_dpp_pkex_finish() argument
3301 bi = dpp_pkex_finish(wpa_s->dpp, wpa_s->dpp_pkex, peer, freq); in wpas_dpp_pkex_finish()
3336 unsigned int freq) in wpas_dpp_rx_pkex_commit_reveal_req() argument
3369 wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_TX "dst=" MACSTR " freq=%u type=%d", in wpas_dpp_rx_pkex_commit_reveal_req()
3370 MAC2STR(src), freq, DPP_PA_PKEX_COMMIT_REVEAL_RESP); in wpas_dpp_rx_pkex_commit_reveal_req()
3371 offchannel_send_action(wpa_s, freq, src, wpa_s->own_addr, in wpas_dpp_rx_pkex_commit_reveal_req()
3377 wpas_dpp_pkex_finish(wpa_s, src, freq); in wpas_dpp_rx_pkex_commit_reveal_req()
3385 unsigned int freq) in wpas_dpp_rx_pkex_commit_reveal_resp() argument
3406 bi = wpas_dpp_pkex_finish(wpa_s, src, freq); in wpas_dpp_rx_pkex_commit_reveal_resp()
3450 unsigned int freq, const u8 *src, in wpas_dpp_pb_pkex_init() argument
3466 offchannel_send_action(wpa_s, freq, src, in wpas_dpp_pb_pkex_init()
3494 pkex->freq = freq; in wpas_dpp_pb_pkex_init()
3499 " freq=%u type=%d", MAC2STR(src), freq, in wpas_dpp_pb_pkex_init()
3504 offchannel_send_action(wpa_s, pkex->freq, src, in wpas_dpp_pb_pkex_init()
3527 unsigned int freq) in wpas_dpp_rx_pb_presence_announcement() argument
3656 wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_TX "dst=" MACSTR " freq=%u type=%d", in wpas_dpp_rx_pb_presence_announcement()
3657 MAC2STR(src), freq, DPP_PA_PB_PRESENCE_ANNOUNCEMENT_RESP); in wpas_dpp_rx_pb_presence_announcement()
3658 offchannel_send_action(wpa_s, freq, src, wpa_s->own_addr, broadcast, in wpas_dpp_rx_pb_presence_announcement()
3664 wpas_dpp_pb_pkex_init(wpa_s, freq, src, r_hash); in wpas_dpp_rx_pb_presence_announcement()
3672 unsigned int freq) in wpas_dpp_rx_pb_presence_announcement_resp() argument
3747 wpa_s->dpp_pb_resp_freq = freq; in wpas_dpp_rx_pb_presence_announcement_resp()
3761 unsigned int freq, const u8 *dst, in wpas_dpp_tx_priv_intro_status() argument
3771 wpa_printf(MSG_DEBUG, "DPP: TX status: freq=%u dst=" MACSTR in wpas_dpp_tx_priv_intro_status()
3773 freq, MAC2STR(dst), res_txt); in wpas_dpp_tx_priv_intro_status()
3775 " freq=%u result=%s", MAC2STR(dst), freq, res_txt); in wpas_dpp_tx_priv_intro_status()
3793 const u8 *dst, unsigned int freq) in wpas_dpp_send_private_peer_intro_update() argument
3876 wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_TX "dst=" MACSTR " freq=%u type=%d", in wpas_dpp_send_private_peer_intro_update()
3877 MAC2STR(dst), freq, DPP_PA_PRIV_PEER_INTRO_QUERY); in wpas_dpp_send_private_peer_intro_update()
3878 offchannel_send_action(wpa_s, freq, dst, wpa_s->own_addr, broadcast, in wpas_dpp_send_private_peer_intro_update()
3891 unsigned int freq) in wpas_dpp_rx_priv_peer_intro_notify() argument
4009 freq) < 0) { in wpas_dpp_rx_priv_peer_intro_notify()
4031 const u8 *buf, size_t len, unsigned int freq) in wpas_dpp_rx_action() argument
4051 MACSTR " freq=%u", in wpas_dpp_rx_action()
4052 crypto_suite, type, MAC2STR(src), freq); in wpas_dpp_rx_action()
4066 " freq=%u type=%d ignore=unsupported-crypto-suite", in wpas_dpp_rx_action()
4067 MAC2STR(src), freq, type); in wpas_dpp_rx_action()
4073 " freq=%u type=%d ignore=invalid-attributes", in wpas_dpp_rx_action()
4074 MAC2STR(src), freq, type); in wpas_dpp_rx_action()
4077 wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_RX "src=" MACSTR " freq=%u type=%d", in wpas_dpp_rx_action()
4078 MAC2STR(src), freq, type); in wpas_dpp_rx_action()
4082 wpas_dpp_rx_auth_req(wpa_s, src, hdr, buf, len, freq); in wpas_dpp_rx_action()
4085 wpas_dpp_rx_auth_resp(wpa_s, src, hdr, buf, len, freq); in wpas_dpp_rx_action()
4098 wpas_dpp_rx_pkex_exchange_req(wpa_s, src, buf, len, freq, true); in wpas_dpp_rx_action()
4102 wpas_dpp_rx_pkex_exchange_req(wpa_s, src, buf, len, freq, in wpas_dpp_rx_action()
4106 wpas_dpp_rx_pkex_exchange_resp(wpa_s, src, buf, len, freq); in wpas_dpp_rx_action()
4110 freq); in wpas_dpp_rx_action()
4114 freq); in wpas_dpp_rx_action()
4125 freq); in wpas_dpp_rx_action()
4129 freq); in wpas_dpp_rx_action()
4132 wpas_dpp_rx_reconfig_auth_req(wpa_s, src, hdr, buf, len, freq); in wpas_dpp_rx_action()
4135 wpas_dpp_rx_reconfig_auth_resp(wpa_s, src, hdr, buf, len, freq); in wpas_dpp_rx_action()
4138 wpas_dpp_rx_reconfig_auth_conf(wpa_s, src, hdr, buf, len, freq); in wpas_dpp_rx_action()
4144 buf, len, freq); in wpas_dpp_rx_action()
4148 buf, len, freq); in wpas_dpp_rx_action()
4152 buf, len, freq); in wpas_dpp_rx_action()
4415 unsigned int freq, const u8 *dst, in wpas_dpp_tx_introduction_status() argument
4425 wpa_printf(MSG_DEBUG, "DPP: TX status: freq=%u dst=" MACSTR in wpas_dpp_tx_introduction_status()
4427 freq, MAC2STR(dst), res_txt); in wpas_dpp_tx_introduction_status()
4429 " freq=%u result=%s", MAC2STR(dst), freq, res_txt); in wpas_dpp_tx_introduction_status()
4474 wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_TX "dst=" MACSTR " freq=%u type=%d", in wpas_dpp_start_private_peer_intro()
4475 MAC2STR(bss->bssid), bss->freq, DPP_PA_PRIV_PEER_INTRO_QUERY); in wpas_dpp_start_private_peer_intro()
4476 offchannel_send_action(wpa_s, bss->freq, bss->bssid, wpa_s->own_addr, in wpas_dpp_start_private_peer_intro()
4642 wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_TX "dst=" MACSTR " freq=%u type=%d", in wpas_dpp_check_connect()
4643 MAC2STR(bss->bssid), bss->freq, DPP_PA_PEER_DISCOVERY_REQ); in wpas_dpp_check_connect()
4644 offchannel_send_action(wpa_s, bss->freq, bss->bssid, wpa_s->own_addr, in wpas_dpp_check_connect()
5029 unsigned int freq, const u8 *dst, in wpas_dpp_chirp_tx_status() argument
5077 wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_TX "dst=" MACSTR " freq=%u type=%d", in wpas_dpp_chirp_start()
5103 int_array_add_unique(&freqs, bi->freq[i]); in wpas_dpp_presence_ann_channels()
5114 chan->freq != 2437) in wpas_dpp_presence_ann_channels()
5134 if (chan->freq == 5220) in wpas_dpp_presence_ann_channels()
5136 if (chan->freq == 5745) in wpas_dpp_presence_ann_channels()
5153 chan->freq != 60480) in wpas_dpp_presence_ann_channels()
5164 int_array_add_unique(&freqs, bss->freq); in wpas_dpp_presence_ann_channels()
5230 "DPP: Previous chirp freq %d not found", in wpas_dpp_chirp_next()
5487 static int wpas_dpp_pb_announce(struct wpa_supplicant *wpa_s, int freq);
5492 unsigned int freq, const u8 *dst, in wpas_dpp_pb_tx_status() argument
5500 freq); in wpas_dpp_pb_tx_status()
5508 freq); in wpas_dpp_pb_tx_status()
5513 freq); in wpas_dpp_pb_tx_status()
5521 freq); in wpas_dpp_pb_tx_status()
5528 if (wpas_dpp_pb_announce(wpa_s, freq) < 0) in wpas_dpp_pb_tx_status()
5533 static int wpas_dpp_pb_announce(struct wpa_supplicant *wpa_s, int freq) in wpas_dpp_pb_announce() argument
5546 freq); in wpas_dpp_pb_announce()
5551 DPP_EVENT_TX "dst=" MACSTR " freq=%u type=%d", in wpas_dpp_pb_announce()
5552 MAC2STR(broadcast), freq, type); in wpas_dpp_pb_announce()
5554 wpa_s, freq, broadcast, wpa_s->own_addr, broadcast, in wpas_dpp_pb_announce()
5567 int freq; in wpas_dpp_pb_next() local
5634 freq = wpa_s->dpp_pb_resp_freq; in wpas_dpp_pb_next()
5636 freq = wpa_s->dpp_pb_freqs[wpa_s->dpp_pb_freq_idx++]; in wpas_dpp_pb_next()
5642 if (wpas_dpp_pb_announce(wpa_s, freq) < 0) { in wpas_dpp_pb_next()