Skip to content

Commit

Permalink
[Telink] Revert InetUtils.cpp Telink dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiiSalamakha committed Jan 28, 2025
1 parent 53bbd10 commit d2c29b5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/chef.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
platform: telink
- name: Update Zephyr to specific revision (for developers purpose)
shell: bash
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 28deded4d225ac5c112d9c6e3659970434a6203a"
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 4f721330d76c861f5a6b0f2ebea16d70916dc87e"
- name: CI Examples Telink
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/examples-telink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
gh-context: ${{ toJson(github) }}

- name: Update Zephyr to specific revision (for developers purpose)
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 28deded4d225ac5c112d9c6e3659970434a6203a"
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 4f721330d76c861f5a6b0f2ebea16d70916dc87e"

- name: Build example Telink (B92 retention) Air Quality Sensor App
# Run test for master and s07641069 PRs
Expand Down
10 changes: 0 additions & 10 deletions src/platform/Zephyr/InetUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* limitations under the License.
*/

#include <platform/ConfigurationManager.h>

#include "InetUtils.h"

#include <zephyr/net/net_if.h>
Expand All @@ -40,18 +38,10 @@ net_if * GetInterface(Inet::InterfaceId ifaceId)
return ifaceId.IsPresent() ? net_if_get_by_index(ifaceId.GetPlatformInterface()) : net_if_get_default();
}

#if CHIP_DEVICE_CONFIG_ENABLE_WIFI
net_if * GetWiFiInterface()
{
// TODO: Remove dependency after Telink Zephyr update
// net_if_get_first_wifi() is not available in Zephyr 3.3.99
#if !defined(CONFIG_SOC_RISCV_TELINK_W91)
return net_if_get_first_wifi();
#else
return GetInterface();
#endif
}
#endif

} // namespace InetUtils
} // namespace DeviceLayer
Expand Down

0 comments on commit d2c29b5

Please sign in to comment.