When compiling. I encountered the following error:
lib\libopendroneid\wifi.c: In function 'odid_wifi_build_nan_sync_beacon_frame':
lib\libopendroneid\wifi.c:261:11: error: 'struct ieee80211_beacon' has no member named 'element_id' beacon->element_id = 0xDD;
lib\libopendroneid\wifi.c:262:11: error: 'struct ieee80211_beacon' has no member named 'length' beacon->length = 0x22;
lib\libopendroneid\wifi.c:263:18: error: 'struct ieee80211_beacon' has no member named 'oui' memcpy(beacon->oui, wifi_alliance_oui, sizeof(beacon->oui));
lib\libopendroneid\wifi.c:263:57: error: 'struct ieee80211_beacon' has no member named 'oui' memcpy(beacon->oui, wifi_alliance_oui, sizeof(beacon->oui));
lib\libopendroneid\wifi.c:264:11: error: 'struct ieee80211_beacon' has no member named 'oui_type'
I was able to fix it by modifying the ieee80211_beacon struct
in odid_wifi.h
adding the missing variables.
struct __attribute__((__packed__)) ieee80211_beacon { uint64_t timestamp; uint64_t element_id; uint64_t length; uint64_t oui_type; uint64_t oui; uint16_t beacon_interval; uint16_t capability; };
I just wanted to let you know and thank you for your work.