Lines Matching refs:wpa_s
38 static void request_scan(struct wpa_supplicant *wpa_s)
40 wpa_s->scan_req = MANUAL_SCAN_REQ;
42 if (wpa_supplicant_req_sched_scan(wpa_s))
43 wpa_supplicant_req_scan(wpa_s, wpa_s->scan_interval, 0);
47 int autoscan_init(struct wpa_supplicant *wpa_s, int req_scan)
49 const char *name = wpa_s->conf->autoscan;
57 if (wpa_s->sched_scan_plans)
60 if (wpa_s->autoscan && wpa_s->autoscan_priv)
88 scan_plans = os_malloc(sizeof(*wpa_s->sched_scan_plans));
92 wpa_s->autoscan_params = NULL;
94 wpa_s->autoscan_priv = ops->init(wpa_s, params);
95 if (!wpa_s->autoscan_priv) {
102 os_free(wpa_s->sched_scan_plans);
103 wpa_s->sched_scan_plans = scan_plans;
104 wpa_s->sched_scan_plans_num = 1;
105 wpa_s->autoscan = ops;
115 wpa_supplicant_cancel_sched_scan(wpa_s);
116 wpa_supplicant_cancel_scan(wpa_s);
121 request_scan(wpa_s);
127 void autoscan_deinit(struct wpa_supplicant *wpa_s)
129 if (wpa_s->autoscan && wpa_s->autoscan_priv) {
131 wpa_s->autoscan->name);
132 wpa_s->autoscan->deinit(wpa_s->autoscan_priv);
133 wpa_s->autoscan = NULL;
134 wpa_s->autoscan_priv = NULL;
136 wpa_s->scan_interval = 5;
138 os_free(wpa_s->sched_scan_plans);
139 wpa_s->sched_scan_plans = NULL;
140 wpa_s->sched_scan_plans_num = 0;
145 int autoscan_notify_scan(struct wpa_supplicant *wpa_s,
150 if (wpa_s->autoscan && wpa_s->autoscan_priv) {
151 interval = wpa_s->autoscan->notify_scan(wpa_s->autoscan_priv,
157 wpa_s->scan_interval = interval;
158 wpa_s->sched_scan_plans[0].interval = interval;
160 request_scan(wpa_s);