Lines Matching refs:sta

264 	LOG_DBG("Connecting to %s (pass=%s)", eswifi->sta.ssid,  in eswifi_connect()
265 eswifi->sta.pass); in eswifi_connect()
270 snprintk(eswifi->buf, sizeof(eswifi->buf), "C1=%s\r", eswifi->sta.ssid); in eswifi_connect()
278 snprintk(eswifi->buf, sizeof(eswifi->buf), "C2=%s\r", eswifi->sta.pass); in eswifi_connect()
287 eswifi->sta.security); in eswifi_connect()
302 err = __parse_ipv4_address(rsp, eswifi->sta.ssid, in eswifi_connect()
314 eswifi->sta.connected = true; in eswifi_connect()
341 eswifi->sta.connected = false; in eswifi_disconnect()
371 if (rsp[0] == '0' && eswifi->sta.connected) { in eswifi_status_work()
372 eswifi->sta.connected = false; in eswifi_status_work()
375 } else if (rsp[0] == '1' && !eswifi->sta.connected) { in eswifi_status_work()
376 eswifi->sta.connected = true; in eswifi_status_work()
385 eswifi->sta.rssi = atoi(rsp); in eswifi_status_work()
492 struct eswifi_sta *sta = &eswifi->sta; in eswifi_mgmt_iface_status() local
497 if (!sta->connected) { in eswifi_mgmt_iface_status()
503 status->ssid_len = strnlen(sta->ssid, WIFI_SSID_MAX_LEN); in eswifi_mgmt_iface_status()
504 strncpy(status->ssid, sta->ssid, status->ssid_len); in eswifi_mgmt_iface_status()
516 switch (sta->security) { in eswifi_mgmt_iface_status()
528 status->rssi = sta->rssi; in eswifi_mgmt_iface_status()
573 memcpy(eswifi->sta.ssid, params->ssid, params->ssid_length); in __eswifi_sta_config()
574 eswifi->sta.ssid[params->ssid_length] = '\0'; in __eswifi_sta_config()
578 eswifi->sta.pass[0] = '\0'; in __eswifi_sta_config()
579 eswifi->sta.security = ESWIFI_SEC_OPEN; in __eswifi_sta_config()
582 memcpy(eswifi->sta.pass, params->psk, params->psk_length); in __eswifi_sta_config()
583 eswifi->sta.pass[params->psk_length] = '\0'; in __eswifi_sta_config()
584 eswifi->sta.security = ESWIFI_SEC_WPA2_MIXED; in __eswifi_sta_config()
591 eswifi->sta.channel = 0U; in __eswifi_sta_config()
593 eswifi->sta.channel = params->channel; in __eswifi_sta_config()
651 eswifi->sta.security); in eswifi_mgmt_ap_enable()
659 if (eswifi->sta.security != ESWIFI_SEC_OPEN) { in eswifi_mgmt_ap_enable()
661 eswifi->sta.pass); in eswifi_mgmt_ap_enable()
671 eswifi->sta.ssid); in eswifi_mgmt_ap_enable()
680 eswifi->sta.channel); in eswifi_mgmt_ap_enable()