Lines Matching defs:freq
260 int freq;
267 freq = p2p_channel_to_freq(p2p->cfg->country, p2p->cfg->reg_class,
269 if (freq < 0) {
279 p2p->pending_listen_freq = freq;
287 if (p2p->cfg->start_listen(p2p->cfg->cb_ctx, freq, 1024 * tu / 1000,
299 int freq;
305 freq = p2p_channel_to_freq(p2p->cfg->country, p2p->cfg->reg_class,
307 if (freq < 0) {
313 p2p->pending_listen_freq = freq;
334 if (p2p->cfg->start_listen(p2p->cfg->cb_ctx, freq, timeout, ies) < 0) {
455 const u8 *go_interface_addr, int freq,
503 dev->oper_freq = freq;
598 * @freq: Frequency on which the Beacon or Probe Response frame was received
608 int p2p_add_device(struct p2p_data *p2p, const u8 *addr, int freq, int level,
662 if (freq >= 2412 && freq <= 2484 && msg.ds_params &&
669 if (freq != ds_freq) {
673 freq, ds_freq);
674 freq = ds_freq;
678 if (dev->listen_freq && dev->listen_freq != freq) {
683 freq, msg.ds_params ? *msg.ds_params : -1);
685 dev->listen_freq = freq;
687 dev->oper_freq = freq;
706 p2p_add_group_clients(p2p, p2p_dev_addr, addr, freq, msg.group_info,
718 "P2P: Peer found with Listen frequency %d MHz", freq);
773 int freq;
807 freq = p2p_channel_to_freq(p2p->cfg->country, reg_class, channel);
810 reg_class, channel, freq);
814 if (freq == 2412 || freq == 2437 || freq == 2462)
816 return freq;
822 int freq = 0;
838 freq = p2p->go_neg_peer->listen_freq;
839 if (freq <= 0)
840 freq = p2p->go_neg_peer->oper_freq;
843 "for freq %u (GO Neg)", freq);
849 freq = p2p->invite_peer->listen_freq;
850 if (freq <= 0)
851 freq = p2p->invite_peer->oper_freq;
854 "for freq %u (Invite)", freq);
856 (freq = p2p_get_next_prog_freq(p2p)) > 0) {
859 "(+ freq %u)", freq);
865 if (p2p->cfg->p2p_scan(p2p->cfg->cb_ctx, type, freq,
900 p2p->after_scan_tx->freq,
1080 void p2p_stop_find_for_freq(struct p2p_data *p2p, int freq)
1093 if (freq > 0 && p2p->drv_in_listen == freq && p2p->in_listen) {
1368 int freq;
1369 freq = p2p_channel_to_freq((char *) msg->listen_channel,
1372 if (freq < 0) {
1385 dev->listen_freq, freq);
1386 dev->listen_freq = freq;
1464 res.freq = p2p_channel_to_freq(p2p->cfg->country,
1471 res.freq = peer->oper_freq;
1486 int freq;
1489 freq = p2p_channel_to_freq(peer->country, c->reg_class,
1491 if (freq < 0)
1493 res.freq_list[freqs++] = freq;
1559 size_t len, int freq)
1581 p2p_rx_p2p_action(p2p, sa, data + 1, len - 1, freq);
1584 p2p_rx_gas_initial_req(p2p, sa, data + 1, len - 1, freq);
1587 p2p_rx_gas_initial_resp(p2p, sa, data + 1, len - 1, freq);
1590 p2p_rx_gas_comeback_req(p2p, sa, data + 1, len - 1, freq);
1593 p2p_rx_gas_comeback_resp(p2p, sa, data + 1, len - 1, freq);
1601 const u8 *data, size_t len, int freq)
1604 p2p_rx_action_public(p2p, da, sa, bssid, data, len, freq);
1638 p2p_process_presence_req(p2p, da, sa, data + 1, len - 1, freq);
1644 p2p_process_go_disc_req(p2p, da, sa, data + 1, len - 1, freq);
2671 int p2p_scan_res_handler(struct p2p_data *p2p, const u8 *bssid, int freq,
2674 p2p_add_device(p2p, bssid, freq, level, ies, ies_len);
2852 void p2p_send_action_cb(struct p2p_data *p2p, unsigned int freq, const u8 *dst,
2860 "P2P: Action frame TX callback (state=%d freq=%u dst=" MACSTR
2862 p2p->pending_action_state, freq, MAC2STR(dst), MAC2STR(src),
2907 void p2p_listen_cb(struct p2p_data *p2p, unsigned int freq,
2910 if (freq == p2p->pending_client_disc_freq) {
2917 if (freq != p2p->pending_listen_freq) {
2919 "P2P: Unexpected listen callback for freq=%u "
2921 freq, duration, p2p->pending_listen_freq);
2926 "P2P: Starting Listen timeout(%u,%u) on freq=%u based on "
2931 p2p->drv_in_listen = freq;
2946 int p2p_listen_end(struct p2p_data *p2p, unsigned int freq)
2949 "state (freq=%u)", freq);
3456 const u8 *own_interface_addr, unsigned int freq,
3463 "GO " MACSTR " (own interface " MACSTR ") freq=%u dur1=%u "
3466 freq, duration1, interval1, duration2, interval2);
3474 if (p2p_send_action(p2p, freq, go_interface_addr, own_interface_addr,
3876 int p2p_send_action(struct p2p_data *p2p, unsigned int freq, const u8 *dst,
3892 p2p->after_scan_tx->freq = freq;
3902 return p2p->cfg->send_action(p2p->cfg->cb_ctx, freq, dst, src, bssid,