Skip to content

Commit

Permalink
[NXP][platform][common] remove SDk flag after switching to SDK 2.16.100
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Girardot <[email protected]>
  • Loading branch information
Martin-NXP committed Dec 23, 2024
1 parent af336ec commit 0702ba9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
11 changes: 0 additions & 11 deletions src/platform/nxp/common/ConnectivityManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -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;
Expand Down
4 changes: 0 additions & 4 deletions src/platform/nxp/common/DiagnosticDataProviderImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
};

Expand Down

0 comments on commit 0702ba9

Please sign in to comment.