Skip to content

Commit 5e266ee

Browse files
Remove unused CYW43 wrapped function (#3187)
No longer needed with new Wifi connection handling
1 parent bc0093d commit 5e266ee

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

cores/rp2040/cyw43_wrappers.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,22 +86,12 @@ extern "C" void __wrap_cyw43_cb_tcpip_set_link_down(cyw43_t *self, int itf) {
8686
self->wifi_join_state &= ~WIFI_JOIN_STATE_ACTIVE;
8787
}
8888

89-
extern "C" int __wrap_cyw43_tcpip_link_status(cyw43_t *self, int itf) {
90-
struct netif *netif = __getCYW43Netif();
91-
//if ((CYW43::_netif->flags & (NETIF_FLAG_UP | NETIF_FLAG_LINK_UP)) == (NETIF_FLAG_UP | NETIF_FLAG_LINK_UP))
92-
// Fake this since it's only used in the SDK
93-
if (netif && ((netif->flags & (NETIF_FLAG_LINK_UP)) == (NETIF_FLAG_LINK_UP))) {
94-
return CYW43_LINK_UP;
95-
} else {
96-
return cyw43_wifi_link_status(self, itf);
97-
}
98-
}
99-
10089
// CBs from the SDK, not needed here as we do TCP later in the game
10190
extern "C" void __wrap_cyw43_cb_tcpip_init(cyw43_t *self, int itf) {
10291
(void) self;
10392
(void) itf;
10493
}
94+
10595
extern "C" void __wrap_cyw43_cb_tcpip_deinit(cyw43_t *self, int itf) {
10696
(void) self;
10797
(void) itf;

0 commit comments

Comments
 (0)