Lines Matching refs:simplelink_data
30 struct simplelink_data { struct
43 static struct simplelink_data simplelink_data; argument
60 wifi_mgmt_raise_connect_result_event(simplelink_data.iface, in simplelink_wifi_cb()
66 wifi_mgmt_raise_disconnect_result_event(simplelink_data.iface, in simplelink_wifi_cb()
71 simplelink_data.mask &= ~SIMPLELINK_IPV4; in simplelink_wifi_cb()
72 if ((simplelink_data.mask == 0) && in simplelink_wifi_cb()
73 (!simplelink_data.initialized)) { in simplelink_wifi_cb()
74 simplelink_data.initialized = true; in simplelink_wifi_cb()
80 simplelink_data.mask &= ~SIMPLELINK_IPV6; in simplelink_wifi_cb()
81 if ((simplelink_data.mask == 0) && in simplelink_wifi_cb()
82 (!simplelink_data.initialized)) { in simplelink_wifi_cb()
83 simplelink_data.initialized = true; in simplelink_wifi_cb()
96 if (simplelink_data.num_results_or_err > 0) { in simplelink_scan_work_handler()
101 while (index < simplelink_data.num_results_or_err) { in simplelink_scan_work_handler()
103 simplelink_data.cb(simplelink_data.iface, 0, in simplelink_scan_work_handler()
113 simplelink_data.cb(simplelink_data.iface, 0, NULL); in simplelink_scan_work_handler()
115 } else if ((simplelink_data.num_results_or_err == in simplelink_scan_work_handler()
117 (simplelink_data.scan_retries++ < in simplelink_scan_work_handler()
122 simplelink_data.num_results_or_err = z_simplelink_start_scan(); in simplelink_scan_work_handler()
123 simplelink_data.scan_retries++; in simplelink_scan_work_handler()
124 delay = (simplelink_data.num_results_or_err > 0 ? 0 : in simplelink_scan_work_handler()
129 k_work_reschedule(&simplelink_data.work, K_MSEC(delay)); in simplelink_scan_work_handler()
134 simplelink_data.scan_retries, in simplelink_scan_work_handler()
135 simplelink_data.num_results_or_err); in simplelink_scan_work_handler()
136 simplelink_data.cb(simplelink_data.iface, -EIO, NULL); in simplelink_scan_work_handler()
150 k_work_cancel_delayable(&simplelink_data.work); in simplelink_mgmt_scan()
163 simplelink_data.cb = cb; in simplelink_mgmt_scan()
164 simplelink_data.num_results_or_err = err; in simplelink_mgmt_scan()
165 simplelink_data.scan_retries = 0; in simplelink_mgmt_scan()
167 k_work_reschedule(&simplelink_data.work, K_MSEC(delay)); in simplelink_mgmt_scan()
223 simplelink_data.iface = iface; in simplelink_iface_init()
224 simplelink_data.mask = 0; in simplelink_iface_init()
226 simplelink_data.mask |= IS_ENABLED(CONFIG_NET_IPV4) ? in simplelink_iface_init()
228 simplelink_data.mask |= IS_ENABLED(CONFIG_NET_IPV6) ? in simplelink_iface_init()
243 simplelink_data.initialized = false; in simplelink_iface_init()
249 z_simplelink_get_mac(simplelink_data.mac); in simplelink_iface_init()
252 simplelink_data.mac[0], simplelink_data.mac[1], in simplelink_iface_init()
253 simplelink_data.mac[2], in simplelink_iface_init()
254 simplelink_data.mac[3], simplelink_data.mac[4], in simplelink_iface_init()
255 simplelink_data.mac[5]); in simplelink_iface_init()
257 net_if_set_link_addr(iface, simplelink_data.mac, in simplelink_iface_init()
258 sizeof(simplelink_data.mac), in simplelink_iface_init()
293 k_work_init_delayable(&simplelink_data.work, in simplelink_init()
303 &simplelink_data, NULL,