Lines Matching defs:ctrl_conn
93 static struct wpa_ctrl *ctrl_conn;
149 ctrl_conn = wpa_ctrl_open(ifname);
150 return ctrl_conn;
165 ctrl_conn = wpa_ctrl_open2(cfile, client_socket_dir);
167 return ctrl_conn;
174 if (ctrl_conn == NULL)
178 wpa_ctrl_detach(ctrl_conn);
181 wpa_ctrl_close(ctrl_conn);
182 ctrl_conn = NULL;
198 if (ctrl_conn == NULL) {
731 if (ctrl_conn == NULL) {
935 if (wpa_ctrl_attach(ctrl_conn) == 0) {
1254 if (ctrl_conn == NULL)
1311 if (ctrl_conn && _wpa_ctrl_command(ctrl_conn, "PING", 0)) {
1315 if (!ctrl_conn) {
1316 ctrl_conn = hostapd_cli_open_connection(ctrl_ifname);
1317 if (ctrl_conn) {
1319 if (wpa_ctrl_attach(ctrl_conn) == 0) {
1327 if (ctrl_conn)
1328 hostapd_cli_recv_pending(ctrl_conn, 1, 0);
1345 wpa_request(ctrl_conn, argc, argv);
1494 ctrl_conn = hostapd_cli_open_connection(ctrl_ifname);
1495 if (ctrl_conn) {
1516 if (wpa_ctrl_attach(ctrl_conn) == 0) {
1531 hostapd_cli_action(ctrl_conn);
1533 wpa_request(ctrl_conn, argc - optind, &argv[optind]);