Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions builder/family/realtek-ambz2.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ def encode_public_key(data: bytes) -> str:
"-Wno-return-type",
"-Wno-unused-variable",
],
LINKFLAGS=[
"-nostartfiles",
]
),
)

Expand Down Expand Up @@ -297,7 +300,7 @@ def encode_public_key(data: bytes) -> str:
],
includes=[
"+<.>",
"+<board/amebaz2/lib>",
"+<board/amebaz2/lib/GCC>",
"+<board/amebaz2/src/data_uart>",
"+<board/amebaz2/src/hci>",
"+<board/amebaz2/src/os>",
Expand Down Expand Up @@ -386,7 +389,7 @@ def encode_public_key(data: bytes) -> str:
# fmt: off
join(COMPONENT_DIR, "soc", "realtek", "8710c", "misc", "bsp", "lib", "common", "GCC"),
join(COMPONENT_DIR, "soc", "realtek", "8710c", "fwlib", "lib", "lib"),
join(COMPONENT_DIR, "common", "bluetooth", "realtek", "sdk", "board", "amebaz2", "lib"),
join(COMPONENT_DIR, "common", "bluetooth", "realtek", "sdk", "board", "amebaz2", "lib", "GCC"),
join(COMPONENT_DIR, "soc", "realtek", "8710c", "misc", "bsp", "ROM"),
# fmt: on
],
Expand All @@ -396,7 +399,6 @@ def encode_public_key(data: bytes) -> str:
"_http",
"_dct",
"_eap",
"_p2p",
"_websocket",
"_wps",
"m",
Expand Down
7 changes: 4 additions & 3 deletions cores/realtek-amb/arduino/libraries/WiFi/WiFiGeneric.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,10 @@ bool WiFiClass::setTxPower(int power) {

int WiFiClass::getTxPower() {
return 0;
int power = 0;
wifi_get_txpower(&power);
return power;
// not implemented in realtek SDK
// int power = 0;
// wifi_get_txpower(&power);
// return power;
}

IPAddress WiFiClass::hostByName(const char *hostname) {
Expand Down
2 changes: 1 addition & 1 deletion cores/realtek-amb/arduino/libraries/WiFi/WiFiPrivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ extern void dns_server_deinit(void);
// wifi_util.c
#if !LT_RTL8720C
extern void rltk_stop_softap(const char *ifname);
#endif
extern void rltk_suspend_softap(const char *ifname);
extern void rltk_suspend_softap_beacon(const char *ifname);
#endif

} // extern "C"

Expand Down
Loading