diff --git a/src/platform/nxp/common/ConnectivityManagerImpl.cpp b/src/platform/nxp/common/ConnectivityManagerImpl.cpp index 90e3f876713397..afbb10a42ab266 100644 --- a/src/platform/nxp/common/ConnectivityManagerImpl.cpp +++ b/src/platform/nxp/common/ConnectivityManagerImpl.cpp @@ -75,12 +75,6 @@ using namespace ::chip::System; using namespace ::chip::DeviceLayer::Internal; using namespace ::chip::DeviceLayer::DeviceEventType; -#if !SDK_2_16_100 -// Table 9-50 "Status codes" of IEEE 802.11-2020: Unspecified failure -// Temporary default status code before SDK API to map wlan_event_reason to IEEE Status codes -#define WLAN_REFUSED_REASON_UNSPECIFIED 1 -#endif - namespace chip { namespace DeviceLayer { @@ -244,12 +238,7 @@ void ConnectivityManagerImpl::ProcessWlanEvent(enum wlan_event_reason wlanEvent) WiFiDiagnosticsDelegate * delegate = GetDiagnosticDataProvider().GetWiFiDiagnosticsDelegate(); uint8_t associationFailureCause = chip::to_underlying(chip::app::Clusters::WiFiNetworkDiagnostics::AssociationFailureCauseEnum::kUnknown); - -#if SDK_2_16_100 uint16_t wlan_status_code = wlan_get_status_code(wlanEvent); -#else - uint16_t wlan_status_code = WLAN_REFUSED_REASON_UNSPECIFIED; -#endif #if CHIP_DETAIL_LOGGING enum wlan_connection_state state; diff --git a/src/platform/nxp/common/DiagnosticDataProviderImpl.h b/src/platform/nxp/common/DiagnosticDataProviderImpl.h index 2137d63d383084..0bf59ef12c388d 100644 --- a/src/platform/nxp/common/DiagnosticDataProviderImpl.h +++ b/src/platform/nxp/common/DiagnosticDataProviderImpl.h @@ -67,20 +67,16 @@ class DiagnosticDataProviderImpl : public DiagnosticDataProvider CHIP_ERROR GetWiFiPacketMulticastTxCount(uint32_t & packetMulticastTxCount) override; CHIP_ERROR GetWiFiPacketUnicastTxCount(uint32_t & packetUnicastTxCount) override; CHIP_ERROR ResetWiFiNetworkDiagnosticsCounts() override; -#if SDK_2_16_100 CHIP_ERROR GetWiFiOverrunCount(uint64_t & overrunCount) override; CHIP_ERROR GetWiFiPacketUnicastRxCount(uint32_t & packetUnicastTxCount) override; -#endif uint32_t mBeaconRxCount = 0; uint32_t mBeaconLostCount = 0; uint32_t mPacketMulticastRxCount = 0; uint32_t mPacketMulticastTxCount = 0; uint32_t mPacketUnicastTxCount = 0; -#if SDK_2_16_100 uint32_t mPacketUnicastRxCount = 0; uint64_t mOverrunCount = 0; -#endif #endif /* CHIP_DEVICE_CONFIG_ENABLE_WPA */ };