• Home
  • Raw
  • Download

Lines Matching refs:ctrl_conn

26 static struct wpa_ctrl *ctrl_conn;  variable
84 if (!ctrl_conn) in register_event_handler()
97 if (!ctrl_conn) in unregister_event_handler()
117 ctrl_conn = wpa_ctrl_open(ifname); in hostapd_cli_open_connection()
118 return ctrl_conn; in hostapd_cli_open_connection()
133 ctrl_conn = wpa_ctrl_open2(cfile, client_socket_dir); in hostapd_cli_open_connection()
135 return ctrl_conn; in hostapd_cli_open_connection()
142 if (ctrl_conn == NULL) in hostapd_cli_close_connection()
145 unregister_event_handler(ctrl_conn); in hostapd_cli_close_connection()
147 wpa_ctrl_detach(ctrl_conn); in hostapd_cli_close_connection()
150 wpa_ctrl_close(ctrl_conn); in hostapd_cli_close_connection()
151 ctrl_conn = NULL; in hostapd_cli_close_connection()
170 ctrl_conn = hostapd_cli_open_connection(ctrl_ifname); in hostapd_cli_reconnect()
171 if (!ctrl_conn) in hostapd_cli_reconnect()
175 if (wpa_ctrl_attach(ctrl_conn) == 0) { in hostapd_cli_reconnect()
177 register_event_handler(ctrl_conn); in hostapd_cli_reconnect()
178 update_stations(ctrl_conn); in hostapd_cli_reconnect()
199 if (ctrl_conn == NULL) { in _wpa_ctrl_command()
731 if (ctrl_conn == NULL) { in wpa_ctrl_command_sta()
1016 hostapd_cli_get_interfaces(ctrl_conn, &interfaces); in hostapd_complete_interface()
1843 if (ctrl_conn == NULL) in hostapd_cli_recv_pending()
1869 hostapd_cli_recv_pending(ctrl_conn, 0, 0); in hostapd_cli_receive()
1875 if (ctrl_conn && _wpa_ctrl_command(ctrl_conn, "PING", 0)) { in hostapd_cli_ping()
1879 if (!ctrl_conn && hostapd_cli_reconnect(ctrl_ifname) == 0) in hostapd_cli_ping()
1881 if (ctrl_conn) in hostapd_cli_ping()
1882 hostapd_cli_recv_pending(ctrl_conn, 1, 0); in hostapd_cli_ping()
1899 wpa_request(ctrl_conn, argc, argv); in hostapd_cli_edit_cmd_cb()
2134 if (ctrl_conn) { in main()
2159 if (ctrl_conn) in main()
2160 hostapd_cli_action(ctrl_conn); in main()
2167 hostapd_cli_action(ctrl_conn); in main()
2169 wpa_request(ctrl_conn, argc - optind, &argv[optind]); in main()
2171 unregister_event_handler(ctrl_conn); in main()