Lines Matching refs:status
107 struct wifi_iface_status status = { 0 }; in nxp_wifi_wlan_event_callback() local
303 ap_sta_info.twt_capable = status.twt_capable; in nxp_wifi_wlan_event_callback()
368 int status = NXP_WIFI_RET_SUCCESS; in nxp_wifi_wlan_init() local
372 status = NXP_WIFI_RET_FAIL; in nxp_wifi_wlan_init()
375 if (status == NXP_WIFI_RET_SUCCESS) { in nxp_wifi_wlan_init()
379 if (status == NXP_WIFI_RET_SUCCESS) { in nxp_wifi_wlan_init()
382 status = NXP_WIFI_RET_FAIL; in nxp_wifi_wlan_init()
386 if (status != NXP_WIFI_RET_SUCCESS) { in nxp_wifi_wlan_init()
399 int status = NXP_WIFI_RET_SUCCESS; in nxp_wifi_wlan_start() local
404 status = NXP_WIFI_RET_NOT_READY; in nxp_wifi_wlan_start()
407 if (status == NXP_WIFI_RET_SUCCESS) { in nxp_wifi_wlan_start()
412 status = NXP_WIFI_RET_FAIL; in nxp_wifi_wlan_start()
416 if (status == NXP_WIFI_RET_SUCCESS) { in nxp_wifi_wlan_start()
421 status = NXP_WIFI_RET_SUCCESS; in nxp_wifi_wlan_start()
423 status = NXP_WIFI_RET_FAIL; in nxp_wifi_wlan_start()
425 status = NXP_WIFI_RET_TIMEOUT; in nxp_wifi_wlan_start()
429 if (status != NXP_WIFI_RET_SUCCESS) { in nxp_wifi_wlan_start()
456 int status = NXP_WIFI_RET_SUCCESS; in nxp_wifi_start_ap() local
467 status = NXP_WIFI_RET_NOT_READY; in nxp_wifi_start_ap()
470 if (status == NXP_WIFI_RET_SUCCESS) { in nxp_wifi_start_ap()
472 status = NXP_WIFI_RET_BAD_PARAM; in nxp_wifi_start_ap()
476 if (status == NXP_WIFI_RET_SUCCESS) { in nxp_wifi_start_ap()
521 status = NXP_WIFI_RET_BAD_PARAM; in nxp_wifi_start_ap()
525 if (status != NXP_WIFI_RET_SUCCESS) { in nxp_wifi_start_ap()
558 status = NXP_WIFI_RET_FAIL; in nxp_wifi_start_ap()
564 status = NXP_WIFI_RET_FAIL; in nxp_wifi_start_ap()
572 int status = NXP_WIFI_RET_SUCCESS; in nxp_wifi_stop_ap() local
582 status = NXP_WIFI_RET_NOT_READY; in nxp_wifi_stop_ap()
585 if (status == NXP_WIFI_RET_SUCCESS) { in nxp_wifi_stop_ap()
588 status = NXP_WIFI_RET_FAIL; in nxp_wifi_stop_ap()
592 if (status != NXP_WIFI_RET_SUCCESS) { in nxp_wifi_stop_ap()
602 int status = NXP_WIFI_RET_SUCCESS; in nxp_wifi_ap_config_params() local
612 status = NXP_WIFI_RET_NOT_READY; in nxp_wifi_ap_config_params()
615 if (status == NXP_WIFI_RET_SUCCESS) { in nxp_wifi_ap_config_params()
619 status = NXP_WIFI_RET_FAIL; in nxp_wifi_ap_config_params()
630 status = NXP_WIFI_RET_FAIL; in nxp_wifi_ap_config_params()
640 status = NXP_WIFI_RET_FAIL; in nxp_wifi_ap_config_params()
648 if (status != NXP_WIFI_RET_SUCCESS) { in nxp_wifi_ap_config_params()
828 int status = NXP_WIFI_RET_SUCCESS; in nxp_wifi_version() local
831 status = NXP_WIFI_RET_NOT_READY; in nxp_wifi_version()
834 if (status != NXP_WIFI_RET_SUCCESS) { in nxp_wifi_version()
848 int status = NXP_WIFI_RET_SUCCESS; in nxp_wifi_connect() local
865 status = NXP_WIFI_RET_BAD_PARAM; in nxp_wifi_connect()
868 if (status == NXP_WIFI_RET_SUCCESS) { in nxp_wifi_connect()
917 status = NXP_WIFI_RET_BAD_PARAM; in nxp_wifi_connect()
921 if (status != NXP_WIFI_RET_SUCCESS) { in nxp_wifi_connect()
928 status = NXP_WIFI_RET_FAIL; in nxp_wifi_connect()
933 status = NXP_WIFI_RET_FAIL; in nxp_wifi_connect()
941 int status = NXP_WIFI_RET_SUCCESS; in nxp_wifi_disconnect() local
947 status = NXP_WIFI_RET_NOT_READY; in nxp_wifi_disconnect()
962 if (status == NXP_WIFI_RET_SUCCESS) { in nxp_wifi_disconnect()
965 status = NXP_WIFI_RET_FAIL; in nxp_wifi_disconnect()
969 if (status != NXP_WIFI_RET_SUCCESS) { in nxp_wifi_disconnect()
995 static int nxp_wifi_uap_status(const struct device *dev, struct wifi_iface_status *status) in nxp_wifi_uap_status() argument
1004 status->state = WIFI_SAP_IFACE_ENABLED; in nxp_wifi_uap_status()
1007 status->state = WIFI_SAP_IFACE_DISABLED; in nxp_wifi_uap_status()
1010 status->state = WIFI_SAP_IFACE_DISABLED; in nxp_wifi_uap_status()
1017 strncpy(status->ssid, nxp_wlan_uap_network.ssid, WIFI_SSID_MAX_LEN); in nxp_wifi_uap_status()
1018 status->ssid[WIFI_SSID_MAX_LEN - 1] = 0; in nxp_wifi_uap_status()
1019 status->ssid_len = strlen(status->ssid); in nxp_wifi_uap_status()
1021 memcpy(status->bssid, nxp_wlan_uap_network.bssid, WIFI_MAC_ADDR_LEN); in nxp_wifi_uap_status()
1023 status->rssi = nxp_wlan_uap_network.rssi; in nxp_wifi_uap_status()
1025 status->channel = nxp_wlan_uap_network.channel; in nxp_wifi_uap_status()
1027 status->beacon_interval = nxp_wlan_uap_network.beacon_period; in nxp_wifi_uap_status()
1029 status->dtim_period = nxp_wlan_uap_network.dtim_period; in nxp_wifi_uap_status()
1032 status->iface_mode = WIFI_MODE_INFRA; in nxp_wifi_uap_status()
1034 status->iface_mode = WIFI_MODE_AP; in nxp_wifi_uap_status()
1039 status->link_mode = WIFI_6; in nxp_wifi_uap_status()
1044 status->link_mode = WIFI_5; in nxp_wifi_uap_status()
1048 status->link_mode = WIFI_4; in nxp_wifi_uap_status()
1050 status->link_mode = WIFI_3; in nxp_wifi_uap_status()
1053 status->band = nxp_wlan_uap_network.channel > 14 ? WIFI_FREQ_BAND_5_GHZ in nxp_wifi_uap_status()
1055 status->security = in nxp_wifi_uap_status()
1057 status->mfp = in nxp_wifi_uap_status()
1069 static int nxp_wifi_status(const struct device *dev, struct wifi_iface_status *status) in nxp_wifi_status() argument
1077 status->state = WIFI_STATE_INTERFACE_DISABLED; in nxp_wifi_status()
1083 status->state = WIFI_STATE_DISCONNECTED; in nxp_wifi_status()
1085 status->state = WIFI_STATE_SCANNING; in nxp_wifi_status()
1087 status->state = WIFI_STATE_ASSOCIATING; in nxp_wifi_status()
1089 status->state = WIFI_STATE_ASSOCIATED; in nxp_wifi_status()
1092 status->state = WIFI_STATE_COMPLETED; in nxp_wifi_status()
1095 strncpy(status->ssid, nxp_wlan_network.ssid, WIFI_SSID_MAX_LEN - 1); in nxp_wifi_status()
1096 status->ssid[WIFI_SSID_MAX_LEN - 1] = '\0'; in nxp_wifi_status()
1097 status->ssid_len = strlen(nxp_wlan_network.ssid); in nxp_wifi_status()
1099 memcpy(status->bssid, nxp_wlan_network.bssid, WIFI_MAC_ADDR_LEN); in nxp_wifi_status()
1101 status->rssi = nxp_wlan_network.rssi; in nxp_wifi_status()
1103 status->channel = nxp_wlan_network.channel; in nxp_wifi_status()
1105 status->beacon_interval = nxp_wlan_network.beacon_period; in nxp_wifi_status()
1107 status->dtim_period = nxp_wlan_network.dtim_period; in nxp_wifi_status()
1110 status->iface_mode = WIFI_MODE_INFRA; in nxp_wifi_status()
1114 status->iface_mode = WIFI_MODE_AP; in nxp_wifi_status()
1120 status->link_mode = WIFI_6; in nxp_wifi_status()
1125 status->link_mode = WIFI_5; in nxp_wifi_status()
1129 status->link_mode = WIFI_4; in nxp_wifi_status()
1131 status->link_mode = WIFI_3; in nxp_wifi_status()
1134 status->band = nxp_wlan_network.channel > 14 ? WIFI_FREQ_BAND_5_GHZ in nxp_wifi_status()
1136 status->security = nxp_wifi_security_type(nxp_wlan_network.security.type); in nxp_wifi_status()
1137 status->mfp = nxp_wlan_network.security.mfpr ? WIFI_MFP_REQUIRED : in nxp_wifi_status()
1223 int status = NXP_WIFI_RET_SUCCESS; in nxp_wifi_power_save() local
1234 status = NXP_WIFI_RET_NOT_READY; in nxp_wifi_power_save()
1237 if (status == NXP_WIFI_RET_SUCCESS) { in nxp_wifi_power_save()
1245 status = NXP_WIFI_RET_FAIL; in nxp_wifi_power_save()
1248 if (status == NXP_WIFI_RET_SUCCESS) { in nxp_wifi_power_save()
1255 status = NXP_WIFI_RET_SUCCESS; in nxp_wifi_power_save()
1257 status = NXP_WIFI_RET_TIMEOUT; in nxp_wifi_power_save()
1261 if (status != NXP_WIFI_RET_SUCCESS) { in nxp_wifi_power_save()
1269 status = NXP_WIFI_RET_FAIL; in nxp_wifi_power_save()
1272 if (status == NXP_WIFI_RET_SUCCESS) { in nxp_wifi_power_save()
1279 status = NXP_WIFI_RET_SUCCESS; in nxp_wifi_power_save()
1281 status = NXP_WIFI_RET_TIMEOUT; in nxp_wifi_power_save()
1285 if (status != NXP_WIFI_RET_SUCCESS) { in nxp_wifi_power_save()
1293 status = NXP_WIFI_RET_FAIL; in nxp_wifi_power_save()
1296 if (status == NXP_WIFI_RET_SUCCESS) { in nxp_wifi_power_save()
1303 status = NXP_WIFI_RET_SUCCESS; in nxp_wifi_power_save()
1305 status = NXP_WIFI_RET_TIMEOUT; in nxp_wifi_power_save()
1309 if (status != NXP_WIFI_RET_SUCCESS) { in nxp_wifi_power_save()
1321 status = NXP_WIFI_RET_FAIL; in nxp_wifi_power_save()
1324 if (status == NXP_WIFI_RET_SUCCESS) { in nxp_wifi_power_save()
1331 status = NXP_WIFI_RET_SUCCESS; in nxp_wifi_power_save()
1333 status = NXP_WIFI_RET_TIMEOUT; in nxp_wifi_power_save()
1337 if (status != NXP_WIFI_RET_SUCCESS) { in nxp_wifi_power_save()
1356 status = NXP_WIFI_RET_FAIL; in nxp_wifi_power_save()
1362 status = NXP_WIFI_RET_FAIL; in nxp_wifi_power_save()
1370 status = NXP_WIFI_RET_FAIL; in nxp_wifi_power_save()
1375 if (status != NXP_WIFI_RET_SUCCESS) { in nxp_wifi_power_save()
1385 int status = NXP_WIFI_RET_SUCCESS; in nxp_wifi_get_power_save() local
1394 status = NXP_WIFI_RET_NOT_READY; in nxp_wifi_get_power_save()
1397 if (status == NXP_WIFI_RET_SUCCESS) { in nxp_wifi_get_power_save()
1420 status = NXP_WIFI_RET_FAIL; in nxp_wifi_get_power_save()
1424 if (status != NXP_WIFI_RET_SUCCESS) { in nxp_wifi_get_power_save()