diff --git a/src/wps/wps_i.h b/src/wps/wps_i.h index b5b123209..85adf28d4 100644 --- a/src/wps/wps_i.h +++ b/src/wps/wps_i.h @@ -241,7 +241,8 @@ enum wps_process_res wps_registrar_process_msg(struct wps_data *wps, static inline int wps_version_supported(const u8 *version) { - return version && *version == WPS_VERSION; + /* Require major version match, but allow minor version differences */ + return version && (*version & 0xf0) == (WPS_VERSION & 0xf0); } #endif /* WPS_I_H */