Lines Matching refs:wpa_s
15 static inline void * wpa_drv_init(struct wpa_supplicant *wpa_s,
18 if (wpa_s->driver->init2)
19 return wpa_s->driver->init2(wpa_s, ifname,
20 wpa_s->global_drv_priv);
21 if (wpa_s->driver->init) {
22 return wpa_s->driver->init(wpa_s, ifname);
27 static inline void wpa_drv_deinit(struct wpa_supplicant *wpa_s)
29 if (wpa_s->driver->deinit)
30 wpa_s->driver->deinit(wpa_s->drv_priv);
33 static inline int wpa_drv_set_param(struct wpa_supplicant *wpa_s,
36 if (wpa_s->driver->set_param)
37 return wpa_s->driver->set_param(wpa_s->drv_priv, param);
41 static inline int wpa_drv_set_countermeasures(struct wpa_supplicant *wpa_s,
44 if (wpa_s->driver->set_countermeasures) {
45 return wpa_s->driver->set_countermeasures(wpa_s->drv_priv,
51 static inline int wpa_drv_authenticate(struct wpa_supplicant *wpa_s,
54 if (wpa_s->driver->authenticate)
55 return wpa_s->driver->authenticate(wpa_s->drv_priv, params);
59 static inline int wpa_drv_associate(struct wpa_supplicant *wpa_s,
62 if (wpa_s->driver->associate) {
63 return wpa_s->driver->associate(wpa_s->drv_priv, params);
68 static inline int wpa_drv_init_mesh(struct wpa_supplicant *wpa_s)
70 if (wpa_s->driver->init_mesh)
71 return wpa_s->driver->init_mesh(wpa_s->drv_priv);
75 static inline int wpa_drv_join_mesh(struct wpa_supplicant *wpa_s,
78 if (wpa_s->driver->join_mesh)
79 return wpa_s->driver->join_mesh(wpa_s->drv_priv, params);
83 static inline int wpa_drv_leave_mesh(struct wpa_supplicant *wpa_s)
85 if (wpa_s->driver->leave_mesh)
86 return wpa_s->driver->leave_mesh(wpa_s->drv_priv);
90 static inline int wpa_drv_scan(struct wpa_supplicant *wpa_s,
94 if (wpa_s->test_failure == WPAS_TEST_FAILURE_SCAN_TRIGGER)
97 if (wpa_s->driver->scan2)
98 return wpa_s->driver->scan2(wpa_s->drv_priv, params);
102 static inline int wpa_drv_sched_scan(struct wpa_supplicant *wpa_s,
105 if (wpa_s->driver->sched_scan)
106 return wpa_s->driver->sched_scan(wpa_s->drv_priv, params);
110 static inline int wpa_drv_stop_sched_scan(struct wpa_supplicant *wpa_s)
112 if (wpa_s->driver->stop_sched_scan)
113 return wpa_s->driver->stop_sched_scan(wpa_s->drv_priv);
118 struct wpa_supplicant *wpa_s)
120 if (wpa_s->driver->get_scan_results2)
121 return wpa_s->driver->get_scan_results2(wpa_s->drv_priv);
125 static inline int wpa_drv_get_bssid(struct wpa_supplicant *wpa_s, u8 *bssid)
127 if (wpa_s->driver->get_bssid) {
128 return wpa_s->driver->get_bssid(wpa_s->drv_priv, bssid);
133 static inline int wpa_drv_get_ssid(struct wpa_supplicant *wpa_s, u8 *ssid)
135 if (wpa_s->driver->get_ssid) {
136 return wpa_s->driver->get_ssid(wpa_s->drv_priv, ssid);
141 static inline int wpa_drv_set_key(struct wpa_supplicant *wpa_s,
149 wpa_s->keys_cleared &= ~BIT(key_idx);
151 wpa_s->keys_cleared = 0;
153 if (wpa_s->driver->set_key) {
154 return wpa_s->driver->set_key(wpa_s->ifname, wpa_s->drv_priv,
161 static inline int wpa_drv_sta_deauth(struct wpa_supplicant *wpa_s,
164 if (wpa_s->driver->sta_deauth) {
165 return wpa_s->driver->sta_deauth(wpa_s->drv_priv,
166 wpa_s->own_addr, addr,
172 static inline int wpa_drv_deauthenticate(struct wpa_supplicant *wpa_s,
175 if (wpa_s->driver->deauthenticate) {
176 return wpa_s->driver->deauthenticate(wpa_s->drv_priv, addr,
182 static inline int wpa_drv_add_pmkid(struct wpa_supplicant *wpa_s,
185 if (wpa_s->driver->add_pmkid) {
186 return wpa_s->driver->add_pmkid(wpa_s->drv_priv, bssid, pmkid);
191 static inline int wpa_drv_remove_pmkid(struct wpa_supplicant *wpa_s,
194 if (wpa_s->driver->remove_pmkid) {
195 return wpa_s->driver->remove_pmkid(wpa_s->drv_priv, bssid,
201 static inline int wpa_drv_flush_pmkid(struct wpa_supplicant *wpa_s)
203 if (wpa_s->driver->flush_pmkid) {
204 return wpa_s->driver->flush_pmkid(wpa_s->drv_priv);
209 static inline int wpa_drv_get_capa(struct wpa_supplicant *wpa_s,
212 if (wpa_s->driver->get_capa) {
213 return wpa_s->driver->get_capa(wpa_s->drv_priv, capa);
218 static inline void wpa_drv_poll(struct wpa_supplicant *wpa_s)
220 if (wpa_s->driver->poll) {
221 wpa_s->driver->poll(wpa_s->drv_priv);
225 static inline const char * wpa_drv_get_ifname(struct wpa_supplicant *wpa_s)
227 if (wpa_s->driver->get_ifname) {
228 return wpa_s->driver->get_ifname(wpa_s->drv_priv);
234 wpa_driver_get_radio_name(struct wpa_supplicant *wpa_s)
236 if (wpa_s->driver->get_radio_name)
237 return wpa_s->driver->get_radio_name(wpa_s->drv_priv);
241 static inline const u8 * wpa_drv_get_mac_addr(struct wpa_supplicant *wpa_s)
243 if (wpa_s->driver->get_mac_addr) {
244 return wpa_s->driver->get_mac_addr(wpa_s->drv_priv);
249 static inline int wpa_drv_set_operstate(struct wpa_supplicant *wpa_s,
252 if (wpa_s->driver->set_operstate)
253 return wpa_s->driver->set_operstate(wpa_s->drv_priv, state);
257 static inline int wpa_drv_mlme_setprotection(struct wpa_supplicant *wpa_s,
261 if (wpa_s->driver->mlme_setprotection)
262 return wpa_s->driver->mlme_setprotection(wpa_s->drv_priv, addr,
269 wpa_drv_get_hw_feature_data(struct wpa_supplicant *wpa_s, u16 *num_modes,
272 if (wpa_s->driver->get_hw_feature_data)
273 return wpa_s->driver->get_hw_feature_data(wpa_s->drv_priv,
278 static inline int wpa_drv_set_country(struct wpa_supplicant *wpa_s,
281 if (wpa_s->driver->set_country)
282 return wpa_s->driver->set_country(wpa_s->drv_priv, alpha2);
286 static inline int wpa_drv_send_mlme(struct wpa_supplicant *wpa_s,
290 if (wpa_s->driver->send_mlme)
291 return wpa_s->driver->send_mlme(wpa_s->drv_priv,
297 static inline int wpa_drv_update_ft_ies(struct wpa_supplicant *wpa_s,
301 if (wpa_s->driver->update_ft_ies)
302 return wpa_s->driver->update_ft_ies(wpa_s->drv_priv, md,
307 static inline int wpa_drv_set_ap(struct wpa_supplicant *wpa_s,
310 if (wpa_s->driver->set_ap)
311 return wpa_s->driver->set_ap(wpa_s->drv_priv, params);
315 static inline int wpa_drv_sta_add(struct wpa_supplicant *wpa_s,
318 if (wpa_s->driver->sta_add)
319 return wpa_s->driver->sta_add(wpa_s->drv_priv, params);
323 static inline int wpa_drv_sta_remove(struct wpa_supplicant *wpa_s,
326 if (wpa_s->driver->sta_remove)
327 return wpa_s->driver->sta_remove(wpa_s->drv_priv, addr);
331 static inline int wpa_drv_hapd_send_eapol(struct wpa_supplicant *wpa_s,
336 if (wpa_s->driver->hapd_send_eapol)
337 return wpa_s->driver->hapd_send_eapol(wpa_s->drv_priv, addr,
343 static inline int wpa_drv_sta_set_flags(struct wpa_supplicant *wpa_s,
347 if (wpa_s->driver->sta_set_flags)
348 return wpa_s->driver->sta_set_flags(wpa_s->drv_priv, addr,
354 static inline int wpa_drv_set_supp_port(struct wpa_supplicant *wpa_s,
357 if (wpa_s->driver->set_supp_port) {
358 return wpa_s->driver->set_supp_port(wpa_s->drv_priv,
364 static inline int wpa_drv_send_action(struct wpa_supplicant *wpa_s,
372 if (wpa_s->driver->send_action)
373 return wpa_s->driver->send_action(wpa_s->drv_priv, freq,
379 static inline void wpa_drv_send_action_cancel_wait(struct wpa_supplicant *wpa_s)
381 if (wpa_s->driver->send_action_cancel_wait)
382 wpa_s->driver->send_action_cancel_wait(wpa_s->drv_priv);
385 static inline int wpa_drv_set_freq(struct wpa_supplicant *wpa_s,
388 if (wpa_s->driver->set_freq)
389 return wpa_s->driver->set_freq(wpa_s->drv_priv, freq);
393 static inline int wpa_drv_if_add(struct wpa_supplicant *wpa_s,
399 if (wpa_s->driver->if_add)
400 return wpa_s->driver->if_add(wpa_s->drv_priv, type, ifname,
406 static inline int wpa_drv_if_remove(struct wpa_supplicant *wpa_s,
410 if (wpa_s->driver->if_remove)
411 return wpa_s->driver->if_remove(wpa_s->drv_priv, type, ifname);
415 static inline int wpa_drv_remain_on_channel(struct wpa_supplicant *wpa_s,
419 if (wpa_s->driver->remain_on_channel)
420 return wpa_s->driver->remain_on_channel(wpa_s->drv_priv, freq,
426 struct wpa_supplicant *wpa_s)
428 if (wpa_s->driver->cancel_remain_on_channel)
429 return wpa_s->driver->cancel_remain_on_channel(
430 wpa_s->drv_priv);
434 static inline int wpa_drv_probe_req_report(struct wpa_supplicant *wpa_s,
437 if (wpa_s->driver->probe_req_report)
438 return wpa_s->driver->probe_req_report(wpa_s->drv_priv,
443 static inline int wpa_drv_deinit_ap(struct wpa_supplicant *wpa_s)
445 if (wpa_s->driver->deinit_ap)
446 return wpa_s->driver->deinit_ap(wpa_s->drv_priv);
450 static inline int wpa_drv_deinit_p2p_cli(struct wpa_supplicant *wpa_s)
452 if (wpa_s->driver->deinit_p2p_cli)
453 return wpa_s->driver->deinit_p2p_cli(wpa_s->drv_priv);
457 static inline void wpa_drv_suspend(struct wpa_supplicant *wpa_s)
459 if (wpa_s->driver->suspend)
460 wpa_s->driver->suspend(wpa_s->drv_priv);
463 static inline void wpa_drv_resume(struct wpa_supplicant *wpa_s)
465 if (wpa_s->driver->resume)
466 wpa_s->driver->resume(wpa_s->drv_priv);
469 static inline int wpa_drv_signal_monitor(struct wpa_supplicant *wpa_s,
472 if (wpa_s->driver->signal_monitor)
473 return wpa_s->driver->signal_monitor(wpa_s->drv_priv,
478 static inline int wpa_drv_signal_poll(struct wpa_supplicant *wpa_s,
481 if (wpa_s->driver->signal_poll)
482 return wpa_s->driver->signal_poll(wpa_s->drv_priv, si);
486 static inline int wpa_drv_pktcnt_poll(struct wpa_supplicant *wpa_s,
489 if (wpa_s->driver->read_sta_data)
490 return wpa_s->driver->read_sta_data(wpa_s->drv_priv, sta,
491 wpa_s->bssid);
495 static inline int wpa_drv_set_ap_wps_ie(struct wpa_supplicant *wpa_s,
500 if (!wpa_s->driver->set_ap_wps_ie)
502 return wpa_s->driver->set_ap_wps_ie(wpa_s->drv_priv, beacon,
506 static inline int wpa_drv_get_noa(struct wpa_supplicant *wpa_s,
509 if (!wpa_s->driver->get_noa)
511 return wpa_s->driver->get_noa(wpa_s->drv_priv, buf, buf_len);
514 static inline int wpa_drv_set_p2p_powersave(struct wpa_supplicant *wpa_s,
518 if (!wpa_s->driver->set_p2p_powersave)
520 return wpa_s->driver->set_p2p_powersave(wpa_s->drv_priv, legacy_ps,
524 static inline int wpa_drv_ampdu(struct wpa_supplicant *wpa_s, int ampdu)
526 if (!wpa_s->driver->ampdu)
528 return wpa_s->driver->ampdu(wpa_s->drv_priv, ampdu);
531 static inline int wpa_drv_send_tdls_mgmt(struct wpa_supplicant *wpa_s,
537 if (wpa_s->driver->send_tdls_mgmt) {
538 return wpa_s->driver->send_tdls_mgmt(wpa_s->drv_priv, dst,
546 static inline int wpa_drv_tdls_oper(struct wpa_supplicant *wpa_s,
549 if (!wpa_s->driver->tdls_oper)
551 return wpa_s->driver->tdls_oper(wpa_s->drv_priv, oper, peer);
555 static inline int wpa_drv_driver_cmd(struct wpa_supplicant *wpa_s,
558 if (!wpa_s->driver->driver_cmd)
560 return wpa_s->driver->driver_cmd(wpa_s->drv_priv, cmd, buf, buf_len);
564 static inline void wpa_drv_set_rekey_info(struct wpa_supplicant *wpa_s,
569 if (!wpa_s->driver->set_rekey_info)
571 wpa_s->driver->set_rekey_info(wpa_s->drv_priv, kek, kek_len,
575 static inline int wpa_drv_radio_disable(struct wpa_supplicant *wpa_s,
578 if (!wpa_s->driver->radio_disable)
580 return wpa_s->driver->radio_disable(wpa_s->drv_priv, disabled);
583 static inline int wpa_drv_switch_channel(struct wpa_supplicant *wpa_s,
586 if (!wpa_s->driver->switch_channel)
588 return wpa_s->driver->switch_channel(wpa_s->drv_priv, settings);
591 static inline int wpa_drv_add_ts(struct wpa_supplicant *wpa_s, u8 tsid,
595 if (!wpa_s->driver->add_tx_ts)
597 return wpa_s->driver->add_tx_ts(wpa_s->drv_priv, tsid, address,
601 static inline int wpa_drv_del_ts(struct wpa_supplicant *wpa_s, u8 tid,
604 if (!wpa_s->driver->del_tx_ts)
606 return wpa_s->driver->del_tx_ts(wpa_s->drv_priv, tid, address);
610 struct wpa_supplicant *wpa_s, const u8 *addr, u8 oper_class,
613 if (!wpa_s->driver->tdls_enable_channel_switch)
615 return wpa_s->driver->tdls_enable_channel_switch(wpa_s->drv_priv, addr,
621 wpa_s,
624 if (!wpa_s->driver->tdls_disable_channel_switch)
626 return wpa_s->driver->tdls_disable_channel_switch(wpa_s->drv_priv,
630 static inline int wpa_drv_wnm_oper(struct wpa_supplicant *wpa_s,
634 if (!wpa_s->driver->wnm_oper)
636 return wpa_s->driver->wnm_oper(wpa_s->drv_priv, oper, peer, buf,
640 static inline int wpa_drv_status(struct wpa_supplicant *wpa_s,
643 if (!wpa_s->driver->status)
645 return wpa_s->driver->status(wpa_s->drv_priv, buf, buflen);
648 static inline int wpa_drv_set_qos_map(struct wpa_supplicant *wpa_s,
651 if (!wpa_s->driver->set_qos_map)
653 return wpa_s->driver->set_qos_map(wpa_s->drv_priv, qos_map_set,
657 static inline int wpa_drv_wowlan(struct wpa_supplicant *wpa_s,
660 if (!wpa_s->driver->set_wowlan)
662 return wpa_s->driver->set_wowlan(wpa_s->drv_priv, triggers);
665 static inline int wpa_drv_vendor_cmd(struct wpa_supplicant *wpa_s,
669 if (!wpa_s->driver->vendor_cmd)
671 return wpa_s->driver->vendor_cmd(wpa_s->drv_priv, vendor_id, subcmd,
675 static inline int wpa_drv_roaming(struct wpa_supplicant *wpa_s, int allowed,
678 if (!wpa_s->driver->roaming)
680 return wpa_s->driver->roaming(wpa_s->drv_priv, allowed, bssid);
683 static inline int wpa_drv_set_mac_addr(struct wpa_supplicant *wpa_s,
686 if (!wpa_s->driver->set_mac_addr)
688 return wpa_s->driver->set_mac_addr(wpa_s->drv_priv, addr);
694 static inline int wpa_drv_macsec_init(struct wpa_supplicant *wpa_s,
697 if (!wpa_s->driver->macsec_init)
699 return wpa_s->driver->macsec_init(wpa_s->drv_priv, params);
702 static inline int wpa_drv_macsec_deinit(struct wpa_supplicant *wpa_s)
704 if (!wpa_s->driver->macsec_deinit)
706 return wpa_s->driver->macsec_deinit(wpa_s->drv_priv);
709 static inline int wpa_drv_enable_protect_frames(struct wpa_supplicant *wpa_s,
712 if (!wpa_s->driver->enable_protect_frames)
714 return wpa_s->driver->enable_protect_frames(wpa_s->drv_priv, enabled);
717 static inline int wpa_drv_set_replay_protect(struct wpa_supplicant *wpa_s,
720 if (!wpa_s->driver->set_replay_protect)
722 return wpa_s->driver->set_replay_protect(wpa_s->drv_priv, enabled,
726 static inline int wpa_drv_set_current_cipher_suite(struct wpa_supplicant *wpa_s,
729 if (!wpa_s->driver->set_current_cipher_suite)
731 return wpa_s->driver->set_current_cipher_suite(wpa_s->drv_priv, cs,
735 static inline int wpa_drv_enable_controlled_port(struct wpa_supplicant *wpa_s,
738 if (!wpa_s->driver->enable_controlled_port)
740 return wpa_s->driver->enable_controlled_port(wpa_s->drv_priv, enabled);
743 static inline int wpa_drv_get_receive_lowest_pn(struct wpa_supplicant *wpa_s,
747 if (!wpa_s->driver->get_receive_lowest_pn)
749 return wpa_s->driver->get_receive_lowest_pn(wpa_s->drv_priv, channel,
753 static inline int wpa_drv_get_transmit_next_pn(struct wpa_supplicant *wpa_s,
757 if (!wpa_s->driver->get_transmit_next_pn)
759 return wpa_s->driver->get_transmit_next_pn(wpa_s->drv_priv, channel,
763 static inline int wpa_drv_set_transmit_next_pn(struct wpa_supplicant *wpa_s,
767 if (!wpa_s->driver->set_transmit_next_pn)
769 return wpa_s->driver->set_transmit_next_pn(wpa_s->drv_priv, channel,
773 static inline int wpa_drv_get_available_receive_sc(struct wpa_supplicant *wpa_s,
776 if (!wpa_s->driver->get_available_receive_sc)
778 return wpa_s->driver->get_available_receive_sc(wpa_s->drv_priv,
783 wpa_drv_create_receive_sc(struct wpa_supplicant *wpa_s, u32 channel,
787 if (!wpa_s->driver->create_receive_sc)
789 return wpa_s->driver->create_receive_sc(wpa_s->drv_priv, channel,
794 static inline int wpa_drv_delete_receive_sc(struct wpa_supplicant *wpa_s,
797 if (!wpa_s->driver->delete_receive_sc)
799 return wpa_s->driver->delete_receive_sc(wpa_s->drv_priv, channel);
802 static inline int wpa_drv_create_receive_sa(struct wpa_supplicant *wpa_s,
806 if (!wpa_s->driver->create_receive_sa)
808 return wpa_s->driver->create_receive_sa(wpa_s->drv_priv, channel, an,
812 static inline int wpa_drv_enable_receive_sa(struct wpa_supplicant *wpa_s,
815 if (!wpa_s->driver->enable_receive_sa)
817 return wpa_s->driver->enable_receive_sa(wpa_s->drv_priv, channel, an);
820 static inline int wpa_drv_disable_receive_sa(struct wpa_supplicant *wpa_s,
823 if (!wpa_s->driver->disable_receive_sa)
825 return wpa_s->driver->disable_receive_sa(wpa_s->drv_priv, channel, an);
829 wpa_drv_get_available_transmit_sc(struct wpa_supplicant *wpa_s, u32 *channel)
831 if (!wpa_s->driver->get_available_transmit_sc)
833 return wpa_s->driver->get_available_transmit_sc(wpa_s->drv_priv,
838 wpa_drv_create_transmit_sc(struct wpa_supplicant *wpa_s, u32 channel,
842 if (!wpa_s->driver->create_transmit_sc)
844 return wpa_s->driver->create_transmit_sc(wpa_s->drv_priv, channel,
849 static inline int wpa_drv_delete_transmit_sc(struct wpa_supplicant *wpa_s,
852 if (!wpa_s->driver->delete_transmit_sc)
854 return wpa_s->driver->delete_transmit_sc(wpa_s->drv_priv, channel);
857 static inline int wpa_drv_create_transmit_sa(struct wpa_supplicant *wpa_s,
863 if (!wpa_s->driver->create_transmit_sa)
865 return wpa_s->driver->create_transmit_sa(wpa_s->drv_priv, channel, an,
869 static inline int wpa_drv_enable_transmit_sa(struct wpa_supplicant *wpa_s,
872 if (!wpa_s->driver->enable_transmit_sa)
874 return wpa_s->driver->enable_transmit_sa(wpa_s->drv_priv, channel, an);
877 static inline int wpa_drv_disable_transmit_sa(struct wpa_supplicant *wpa_s,
880 if (!wpa_s->driver->disable_transmit_sa)
882 return wpa_s->driver->disable_transmit_sa(wpa_s->drv_priv, channel, an);
886 static inline int wpa_drv_setband(struct wpa_supplicant *wpa_s,
889 if (!wpa_s->driver->set_band)
891 return wpa_s->driver->set_band(wpa_s->drv_priv, band);
894 static inline int wpa_drv_get_pref_freq_list(struct wpa_supplicant *wpa_s,
899 if (!wpa_s->driver->get_pref_freq_list)
901 return wpa_s->driver->get_pref_freq_list(wpa_s->drv_priv, if_type,
905 static inline int wpa_drv_set_prob_oper_freq(struct wpa_supplicant *wpa_s,
908 if (!wpa_s->driver->set_prob_oper_freq)
910 return wpa_s->driver->set_prob_oper_freq(wpa_s->drv_priv, freq);
913 static inline int wpa_drv_abort_scan(struct wpa_supplicant *wpa_s)
915 if (!wpa_s->driver->abort_scan)
917 return wpa_s->driver->abort_scan(wpa_s->drv_priv);