Lines Matching refs:sl_conn

69 struct sl_connect_state sl_conn;  variable
288 memcpy(sl_conn.ssid, wlan_event->Data.Connect.SsidName, in SimpleLinkWlanEventHandler()
290 memcpy(sl_conn.bssid, wlan_event->Data.Connect.Bssid, in SimpleLinkWlanEventHandler()
295 sl_conn.ssid, sl_conn.bssid[0], in SimpleLinkWlanEventHandler()
296 sl_conn.bssid[1], sl_conn.bssid[2], in SimpleLinkWlanEventHandler()
297 sl_conn.bssid[3], sl_conn.bssid[4], in SimpleLinkWlanEventHandler()
298 sl_conn.bssid[5]); in SimpleLinkWlanEventHandler()
301 sl_conn.error = 0; in SimpleLinkWlanEventHandler()
302 nwp.cb(SL_WLAN_EVENT_CONNECT, &sl_conn); in SimpleLinkWlanEventHandler()
325 sl_conn.error = 0; in SimpleLinkWlanEventHandler()
336 sl_conn.error = event_data->ReasonCode; in SimpleLinkWlanEventHandler()
339 (void)memset(&(sl_conn.ssid), 0x0, sizeof(sl_conn.ssid)); in SimpleLinkWlanEventHandler()
340 (void)memset(&(sl_conn.bssid), 0x0, sizeof(sl_conn.bssid)); in SimpleLinkWlanEventHandler()
343 nwp.cb(SL_WLAN_EVENT_DISCONNECT, &sl_conn); in SimpleLinkWlanEventHandler()
347 memcpy(&(sl_conn.bssid), wlan_event->Data.STAAdded.Mac, in SimpleLinkWlanEventHandler()
351 sl_conn.bssid[0], sl_conn.bssid[1], in SimpleLinkWlanEventHandler()
352 sl_conn.bssid[2], sl_conn.bssid[3], in SimpleLinkWlanEventHandler()
353 sl_conn.bssid[4], sl_conn.bssid[5]); in SimpleLinkWlanEventHandler()
356 memcpy(&(sl_conn.bssid), wlan_event->Data.STAAdded.Mac, in SimpleLinkWlanEventHandler()
360 sl_conn.bssid[0], sl_conn.bssid[1], in SimpleLinkWlanEventHandler()
361 sl_conn.bssid[2], sl_conn.bssid[3], in SimpleLinkWlanEventHandler()
362 sl_conn.bssid[4], sl_conn.bssid[5]); in SimpleLinkWlanEventHandler()
364 (void)memset(&(sl_conn.bssid), 0x0, sizeof(sl_conn.bssid)); in SimpleLinkWlanEventHandler()
397 sl_conn.ip_addr = event_data->Ip; in SimpleLinkNetAppEventHandler()
400 sl_conn.gateway_ip = event_data->Gateway; in SimpleLinkNetAppEventHandler()
404 SL_IPV4_BYTE(sl_conn.ip_addr, 3), in SimpleLinkNetAppEventHandler()
405 SL_IPV4_BYTE(sl_conn.ip_addr, 2), in SimpleLinkNetAppEventHandler()
406 SL_IPV4_BYTE(sl_conn.ip_addr, 1), in SimpleLinkNetAppEventHandler()
407 SL_IPV4_BYTE(sl_conn.ip_addr, 0), in SimpleLinkNetAppEventHandler()
409 SL_IPV4_BYTE(sl_conn.gateway_ip, 3), in SimpleLinkNetAppEventHandler()
410 SL_IPV4_BYTE(sl_conn.gateway_ip, 2), in SimpleLinkNetAppEventHandler()
411 SL_IPV4_BYTE(sl_conn.gateway_ip, 1), in SimpleLinkNetAppEventHandler()
412 SL_IPV4_BYTE(sl_conn.gateway_ip, 0)); in SimpleLinkNetAppEventHandler()
414 nwp.cb(SIMPLELINK_WIFI_CB_IPACQUIRED, &sl_conn); in SimpleLinkNetAppEventHandler()
421 sl_conn.ipv6_addr[i] = in SimpleLinkNetAppEventHandler()
428 ((sl_conn.ipv6_addr[0] >> 16) & 0xffff), in SimpleLinkNetAppEventHandler()
429 sl_conn.ipv6_addr[0] & 0xffff, in SimpleLinkNetAppEventHandler()
430 ((sl_conn.ipv6_addr[1] >> 16) & 0xffff), in SimpleLinkNetAppEventHandler()
431 sl_conn.ipv6_addr[1] & 0xffff, in SimpleLinkNetAppEventHandler()
432 ((sl_conn.ipv6_addr[2] >> 16) & 0xffff), in SimpleLinkNetAppEventHandler()
433 sl_conn.ipv6_addr[2] & 0xffff, in SimpleLinkNetAppEventHandler()
434 ((sl_conn.ipv6_addr[3] >> 16) & 0xffff), in SimpleLinkNetAppEventHandler()
435 sl_conn.ipv6_addr[3] & 0xffff); in SimpleLinkNetAppEventHandler()
439 nwp.cb(SIMPLELINK_WIFI_CB_IPV6ACQUIRED, &sl_conn); in SimpleLinkNetAppEventHandler()
446 sl_conn.sta_ip = netapp_event->Data.IpLeased.IpAddress; in SimpleLinkNetAppEventHandler()
449 SL_IPV4_BYTE(sl_conn.sta_ip, 3), in SimpleLinkNetAppEventHandler()
450 SL_IPV4_BYTE(sl_conn.sta_ip, 2), in SimpleLinkNetAppEventHandler()
451 SL_IPV4_BYTE(sl_conn.sta_ip, 1), in SimpleLinkNetAppEventHandler()
452 SL_IPV4_BYTE(sl_conn.sta_ip, 0)); in SimpleLinkNetAppEventHandler()
686 (void)memset(&sl_conn, 0x0, sizeof(sl_conn)); in z_simplelink_init()