• Home
  • Raw
  • Download

Lines Matching refs:wpa_s

31 static void request_scan(struct wpa_supplicant *wpa_s)  in request_scan()  argument
33 wpa_s->scan_req = MANUAL_SCAN_REQ; in request_scan()
35 if (wpa_supplicant_req_sched_scan(wpa_s)) in request_scan()
36 wpa_supplicant_req_scan(wpa_s, wpa_s->scan_interval, 0); in request_scan()
40 int autoscan_init(struct wpa_supplicant *wpa_s, int req_scan) in autoscan_init() argument
42 const char *name = wpa_s->conf->autoscan; in autoscan_init()
50 if (wpa_s->sched_scan_plans) { in autoscan_init()
56 if (wpa_s->autoscan && wpa_s->autoscan_priv) { in autoscan_init()
86 scan_plans = os_malloc(sizeof(*wpa_s->sched_scan_plans)); in autoscan_init()
90 wpa_s->autoscan_params = NULL; in autoscan_init()
92 wpa_s->autoscan_priv = ops->init(wpa_s, params); in autoscan_init()
93 if (!wpa_s->autoscan_priv) { in autoscan_init()
100 os_free(wpa_s->sched_scan_plans); in autoscan_init()
101 wpa_s->sched_scan_plans = scan_plans; in autoscan_init()
102 wpa_s->sched_scan_plans_num = 1; in autoscan_init()
103 wpa_s->autoscan = ops; in autoscan_init()
113 wpa_supplicant_cancel_sched_scan(wpa_s); in autoscan_init()
114 wpa_supplicant_cancel_scan(wpa_s); in autoscan_init()
119 request_scan(wpa_s); in autoscan_init()
125 void autoscan_deinit(struct wpa_supplicant *wpa_s) in autoscan_deinit() argument
127 if (wpa_s->autoscan && wpa_s->autoscan_priv) { in autoscan_deinit()
129 wpa_s->autoscan->name); in autoscan_deinit()
130 wpa_s->autoscan->deinit(wpa_s->autoscan_priv); in autoscan_deinit()
131 wpa_s->autoscan = NULL; in autoscan_deinit()
132 wpa_s->autoscan_priv = NULL; in autoscan_deinit()
134 wpa_s->scan_interval = 5; in autoscan_deinit()
136 os_free(wpa_s->sched_scan_plans); in autoscan_deinit()
137 wpa_s->sched_scan_plans = NULL; in autoscan_deinit()
138 wpa_s->sched_scan_plans_num = 0; in autoscan_deinit()
143 int autoscan_notify_scan(struct wpa_supplicant *wpa_s, in autoscan_notify_scan() argument
148 if (wpa_s->autoscan && wpa_s->autoscan_priv) { in autoscan_notify_scan()
149 interval = wpa_s->autoscan->notify_scan(wpa_s->autoscan_priv, in autoscan_notify_scan()
155 wpa_s->scan_interval = interval; in autoscan_notify_scan()
156 wpa_s->sched_scan_plans[0].interval = interval; in autoscan_notify_scan()
158 request_scan(wpa_s); in autoscan_notify_scan()