Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bouffalolab] Disable strict_warnings for pigweed enabled and fix to …
Browse files Browse the repository at this point in the history
…get Wi-Fi BSSID (#26099)

* disable strict warnings compile options for pigweed enabled and fix to get wifi bssid

* Fix restyle
wy-hh authored and pull[bot] committed Aug 9, 2023
1 parent fe4fcc8 commit ce53168
Showing 3 changed files with 13 additions and 5 deletions.
7 changes: 6 additions & 1 deletion examples/lighting-app/bouffalolab/bl602/with_pw_rpc.gni
Original file line number Diff line number Diff line change
@@ -24,4 +24,9 @@ chip_enable_pw_rpc = true
chip_build_pw_trace_lib = false

cpp_standard = "gnu++17"
#pw_trace_BACKEND = "$dir_pw_trace_tokenized"

# pigweed updated to a1bd248 makes compile conversion errors;
# it seems riscv gcc (version > 10) can fixes this issue.
# let's disable strict warnings for RPC enabled for now.
remove_default_configs = [ "$dir_pw_build:strict_warnings" ]
treat_warnings_as_errors = false
7 changes: 6 additions & 1 deletion examples/lighting-app/bouffalolab/bl702/with_pw_rpc.gni
Original file line number Diff line number Diff line change
@@ -24,4 +24,9 @@ chip_enable_pw_rpc = true
chip_build_pw_trace_lib = false

cpp_standard = "gnu++17"
#pw_trace_BACKEND = "$dir_pw_trace_tokenized"

# pigweed updated to a1bd248 makes compile conversion errors;
# it seems riscv gcc (version > 10) can fixes this issue.
# let's disable strict warnings for RPC enabled for now.
remove_default_configs = [ "$dir_pw_build:strict_warnings" ]
treat_warnings_as_errors = false
Original file line number Diff line number Diff line change
@@ -221,9 +221,7 @@ DiagnosticDataProvider & GetDiagnosticDataProviderImpl()

CHIP_ERROR DiagnosticDataProviderImpl::GetWiFiBssId(MutableByteSpan & BssId)
{
static uint8_t macAddress[kMaxHardwareAddrSize];

memcpy(macAddress, wifiMgmr.wifi_mgmr_stat_info.bssid, kMaxHardwareAddrSize);
BssId = ByteSpan(wifiMgmr.wifi_mgmr_stat_info.bssid, sizeof(wifiMgmr.wifi_mgmr_stat_info.bssid));

// TODO: This does not actually put the data in the out param.
return CHIP_ERROR_READ_FAILED;

0 comments on commit ce53168

Please sign in to comment.