Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hostap: Avoid warning of different enum mapping
Even if the enum contains the same values, the values might change if the wpa_supplicant sources change or Zephyr values change. In order to avoid weird errors later and prevent the following warning, add a conversion functions for the enums. modules/hostap/src/supp_api.c:1172:23: warning: implicit conversion from enumeration type 'enum mfp_options' to different enumeration type 'enum wifi_mfp_options' [-Wenum-conversion] status->mfp = ssid->ieee80211w; /* Same mapping */ modules/hostap/src/supp_api.c:1190:30: warning: implicit conversion from enumeration type 'enum wpas_mode' to different enumeration type 'enum wifi_iface_mode' [-Wenum-conversion] status->iface_mode = ssid->mode; Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
- Loading branch information