@@ -917,68 +917,6 @@ static inline enum wifi_security_type nxp_wifi_security_type(enum wlan_security_
917917 }
918918}
919919
920- #ifndef CONFIG_WIFI_NM_WPA_SUPPLICANT
921- static int nxp_wifi_uap_status (const struct device * dev , struct wifi_iface_status * status )
922- {
923- enum wlan_connection_state connection_state = WLAN_DISCONNECTED ;
924- struct interface * if_handle = (struct interface * )& g_uap ;
925-
926- wlan_get_uap_connection_state (& connection_state );
927-
928- if (connection_state == WLAN_UAP_STARTED ) {
929-
930- if (!wlan_get_current_uap_network (& nxp_wlan_network )) {
931- strncpy (status -> ssid , nxp_wlan_network .ssid , WIFI_SSID_MAX_LEN );
932- status -> ssid [WIFI_SSID_MAX_LEN - 1 ] = 0 ;
933- status -> ssid_len = strlen (status -> ssid );
934-
935- memcpy (status -> bssid , nxp_wlan_network .bssid , WIFI_MAC_ADDR_LEN );
936-
937- status -> rssi = nxp_wlan_network .rssi ;
938-
939- status -> channel = nxp_wlan_network .channel ;
940-
941- status -> beacon_interval = nxp_wlan_network .beacon_period ;
942-
943- status -> dtim_period = nxp_wlan_network .dtim_period ;
944-
945- if (if_handle -> state .interface == WLAN_BSS_TYPE_STA ) {
946- status -> iface_mode = WIFI_MODE_INFRA ;
947- }
948- #ifdef CONFIG_NXP_WIFI_SOFTAP_SUPPORT
949- else if (if_handle -> state .interface == WLAN_BSS_TYPE_UAP ) {
950- status -> iface_mode = WIFI_MODE_AP ;
951- }
952- #endif
953-
954- #ifdef CONFIG_NXP_WIFI_11AX
955- if (nxp_wlan_network .dot11ax ) {
956- status -> link_mode = WIFI_6 ;
957- }
958- #endif
959- #ifdef CONFIG_NXP_WIFI_11AC
960- else if (nxp_wlan_network .dot11ac ) {
961- status -> link_mode = WIFI_5 ;
962- }
963- #endif
964- else if (nxp_wlan_network .dot11n ) {
965- status -> link_mode = WIFI_4 ;
966- } else {
967- status -> link_mode = WIFI_3 ;
968- }
969-
970- status -> band = nxp_wlan_network .channel > 14 ? WIFI_FREQ_BAND_5_GHZ
971- : WIFI_FREQ_BAND_2_4_GHZ ;
972- status -> security = nxp_wifi_security_type (nxp_wlan_network .security .type );
973- status -> mfp = nxp_wlan_network .security .mfpr ? WIFI_MFP_REQUIRED :
974- (nxp_wlan_network .security .mfpc ? WIFI_MFP_OPTIONAL : 0 );
975- }
976- }
977-
978- return 0 ;
979- }
980- #endif
981-
982920static int nxp_wifi_status (const struct device * dev , struct wifi_iface_status * status )
983921{
984922 enum wlan_connection_state connection_state = WLAN_DISCONNECTED ;
0 commit comments