Lines Matching refs:afx_hdl

906 		p2p->afx_hdl.my_listen_chan = err;  in brcmf_p2p_scan_prep()
1118 struct afx_hdl *afx_hdl = container_of(work, struct afx_hdl, afx_work); in brcmf_p2p_afx_handler() local
1119 struct brcmf_p2p_info *p2p = container_of(afx_hdl, in brcmf_p2p_afx_handler()
1121 afx_hdl); in brcmf_p2p_afx_handler()
1125 if (!afx_hdl->is_active) in brcmf_p2p_afx_handler()
1128 if (afx_hdl->is_listen && afx_hdl->my_listen_chan) in brcmf_p2p_afx_handler()
1130 err = brcmf_p2p_discover_listen(p2p, afx_hdl->my_listen_chan, in brcmf_p2p_afx_handler()
1133 err = brcmf_p2p_act_frm_search(p2p, afx_hdl->peer_listen_chan); in brcmf_p2p_afx_handler()
1139 complete(&afx_hdl->act_frm_scan); in brcmf_p2p_afx_handler()
1152 struct afx_hdl *afx_hdl = &p2p->afx_hdl; in brcmf_p2p_af_searching_channel() local
1160 reinit_completion(&afx_hdl->act_frm_scan); in brcmf_p2p_af_searching_channel()
1162 afx_hdl->is_active = true; in brcmf_p2p_af_searching_channel()
1163 afx_hdl->peer_chan = P2P_INVALID_CHANNEL; in brcmf_p2p_af_searching_channel()
1170 (afx_hdl->peer_chan == P2P_INVALID_CHANNEL)) { in brcmf_p2p_af_searching_channel()
1171 afx_hdl->is_listen = false; in brcmf_p2p_af_searching_channel()
1175 schedule_work(&afx_hdl->afx_work); in brcmf_p2p_af_searching_channel()
1176 wait_for_completion_timeout(&afx_hdl->act_frm_scan, in brcmf_p2p_af_searching_channel()
1178 if ((afx_hdl->peer_chan != P2P_INVALID_CHANNEL) || in brcmf_p2p_af_searching_channel()
1183 if (afx_hdl->my_listen_chan) { in brcmf_p2p_af_searching_channel()
1185 afx_hdl->my_listen_chan); in brcmf_p2p_af_searching_channel()
1187 afx_hdl->is_listen = true; in brcmf_p2p_af_searching_channel()
1188 schedule_work(&afx_hdl->afx_work); in brcmf_p2p_af_searching_channel()
1189 wait_for_completion_timeout(&afx_hdl->act_frm_scan, in brcmf_p2p_af_searching_channel()
1192 if ((afx_hdl->peer_chan != P2P_INVALID_CHANNEL) || in brcmf_p2p_af_searching_channel()
1207 afx_hdl->peer_chan); in brcmf_p2p_af_searching_channel()
1208 afx_hdl->is_active = false; in brcmf_p2p_af_searching_channel()
1212 return afx_hdl->peer_chan; in brcmf_p2p_af_searching_channel()
1228 struct afx_hdl *afx_hdl = &p2p->afx_hdl; in brcmf_p2p_scan_finding_common_channel() local
1239 if (afx_hdl->peer_chan == P2P_INVALID_CHANNEL) in brcmf_p2p_scan_finding_common_channel()
1240 complete(&afx_hdl->act_frm_scan); in brcmf_p2p_scan_finding_common_channel()
1254 (ether_addr_equal(p2p_dev_addr, afx_hdl->tx_dst_addr))) { in brcmf_p2p_scan_finding_common_channel()
1260 afx_hdl->peer_chan = bi->ctl_ch; in brcmf_p2p_scan_finding_common_channel()
1262 afx_hdl->tx_dst_addr, afx_hdl->peer_chan); in brcmf_p2p_scan_finding_common_channel()
1263 complete(&afx_hdl->act_frm_scan); in brcmf_p2p_scan_finding_common_channel()
1363 complete(&p2p->afx_hdl.act_frm_scan); in brcmf_p2p_gon_req_collision()
1392 struct afx_hdl *afx_hdl = &p2p->afx_hdl; in brcmf_p2p_notify_action_frame_rx() local
1428 (ether_addr_equal(afx_hdl->tx_dst_addr, e->addr))) { in brcmf_p2p_notify_action_frame_rx()
1429 afx_hdl->peer_chan = ch.control_ch_num; in brcmf_p2p_notify_action_frame_rx()
1431 afx_hdl->peer_chan); in brcmf_p2p_notify_action_frame_rx()
1432 complete(&afx_hdl->act_frm_scan); in brcmf_p2p_notify_action_frame_rx()
1726 struct afx_hdl *afx_hdl = &p2p->afx_hdl; in brcmf_p2p_send_action_frame() local
1812 memcpy(afx_hdl->tx_dst_addr, action_frame->da, ETH_ALEN); in brcmf_p2p_send_action_frame()
1830 afx_hdl = &p2p->afx_hdl; in brcmf_p2p_send_action_frame()
1831 afx_hdl->peer_listen_chan = le32_to_cpu(af_params->channel); in brcmf_p2p_send_action_frame()
1847 af_params->channel = cpu_to_le32(afx_hdl->peer_chan); in brcmf_p2p_send_action_frame()
1881 p2p->af_sent_channel == afx_hdl->my_listen_chan) { in brcmf_p2p_send_action_frame()
1939 struct afx_hdl *afx_hdl = &p2p->afx_hdl; in brcmf_p2p_notify_rx_mgmt_p2p_probereq() local
1960 (ether_addr_equal(afx_hdl->tx_dst_addr, e->addr))) { in brcmf_p2p_notify_rx_mgmt_p2p_probereq()
1961 afx_hdl->peer_chan = ch.control_ch_num; in brcmf_p2p_notify_rx_mgmt_p2p_probereq()
1963 afx_hdl->peer_chan); in brcmf_p2p_notify_rx_mgmt_p2p_probereq()
1964 complete(&afx_hdl->act_frm_scan); in brcmf_p2p_notify_rx_mgmt_p2p_probereq()
2221 INIT_WORK(&p2p->afx_hdl.afx_work, brcmf_p2p_afx_handler); in brcmf_p2p_create_p2pdev()
2222 init_completion(&p2p->afx_hdl.act_frm_scan); in brcmf_p2p_create_p2pdev()