Skip to content

zephyr: Align with net_mgmt API change #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
7 changes: 6 additions & 1 deletion ports/zephyr/common/memfault_platform_metrics.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,12 @@ static void prv_record_wifi_connection_metrics(struct net_if *iface) {
MEMFAULT_METRIC_SET_STRING(wifi_ap_oui, oui);
}

static void prv_wifi_event_callback(struct net_mgmt_event_callback *cb, uint32_t mgmt_event,
static void prv_wifi_event_callback(struct net_mgmt_event_callback *cb,
#if MEMFAULT_ZEPHYR_VERSION_GT(4, 1)
uint64_t mgmt_event,
#else
uint32_t mgmt_event,
#endif
struct net_if *iface) {
switch (mgmt_event) {
case NET_EVENT_WIFI_CONNECT_RESULT: {
Expand Down