HOMEPAGE = "http://w1.fi/${PN}/" BUGTRACKER = "http://w1.fi/security/" SECTION = "network" LICENSE = "BSD" LIC_FILES_CHKSUM = "file://COPYING;md5=279b4f5abb9c153c285221855ddb78cc \ file://README;beginline=1;endline=56;md5=e7d3dbb01f75f0b9799e192731d1e1ff \ file://wpa_supplicant/wpa_supplicant.c;beginline=1;endline=12;md5=0a8b56d3543498b742b9c0e94cc2d18b" DEPENDS = "libnl-tiny" PACKAGECONFIG ??= "gnutls" PACKAGECONFIG[gnutls] = ",,gnutls libgcrypt" PACKAGECONFIG[openssl] = ",,openssl" inherit pkgconfig PACKAGECONFIG = "openssl" SRC_URI = "git://w1.fi/hostap.git;protocol=http;branch=main \ file://wpa_supplicant-full.config \ file://hostapd-full.config \ file://src/utils/build_features.h \ file://0001-Add-build-artifact-build_features.h-to-gitignore.patch \ file://0002-Use-environment-variable-EXTRA_CFLAGS.patch \ file://001-HE-VHT-fix-frequency-setup-with-HE-enabled.patch \ file://002-mesh-fix-channel-init-order-disable-pri-sec-channel-.patch \ file://003-wpa_supplicant-handle-HT40-and-mode-downgrade-in-AP-.patch \ file://004-wpa_supplicant-fix-frequency-config-for-non-p2p-vht-.patch \ file://005-wpa_supplicant-enable-vht-and-he-in-default-config-p.patch \ file://006-hw_features-better-debug-messages-for-some-error-cas.patch \ file://007-dfs-use-helper-functions-for-vht-he-parameters.patch \ file://008-mesh-use-setup-completion-callback-to-complete-mesh-.patch \ file://009-mesh-update-ssid-frequency-as-pri-sec-channel-switch.patch \ file://010-mesh-Allow-DFS-channels-to-be-selected-if-dfs-is-ena.patch \ file://011-mesh-do-not-set-offchanok-on-DFS-channels-in-non-ETS.patch \ file://012-mesh-fix-channel-switch-error-during-CAC.patch \ file://013-mesh-inform-kernel-driver-DFS-handler-in-userspace.patch \ file://014-mesh-fixes-for-mesh-init-deinit.patch \ file://015-mesh-fix-DFS-deinit-init.patch \ file://016-tests-DFS-test-for-wpa_supplicant-mesh.patch \ file://017-mesh-fix-mesh_oom-test.patch \ file://018-mesh-move-mesh-freq-setting-to-own-function.patch \ file://019-mesh-use-deterministic-channel-on-channel-switch.patch \ file://020-ignore-4addr-mode-enabling-error.patch \ file://050-mesh-make-forwarding-configurable.patch \ file://060-P2P-Fix-a-corner-case-in-peer-addition-based-on-PD-R.patch \ file://100-daemonize_fix.patch \ file://110-notify-mgmt-frames.patch \ file://110-wolfssl-compile-fix.patch \ file://120-reconfigure-wps-credentials.patch \ file://200-multicall.patch \ file://300-noscan.patch \ file://301-mesh-noscan.patch \ file://310-rescan_immediately.patch \ file://320-optional_rfkill.patch \ file://330-nl80211_fix_set_freq.patch \ file://340-reload_freq_change.patch \ file://341-mesh-ctrl-iface-channel-switch.patch \ file://350-nl80211_del_beacon_bss.patch \ file://360-ctrl_iface_reload.patch \ file://370-ap_sta_support.patch \ file://380-disable_ctrl_iface_mib.patch \ file://381-hostapd_cli_UNKNOWN-COMMAND.patch \ file://390-wpa_ie_cap_workaround.patch \ file://400-wps_single_auth_enc_type.patch \ file://410-limit_debug_messages.patch \ file://420-indicate-features.patch \ file://430-hostapd_cli_ifdef.patch \ file://431-wpa_cli_ifdef.patch \ file://432-missing-typedef.patch \ file://450-scan_wait.patch \ file://460-wpa_supplicant-add-new-config-params-to-be-used-with.patch \ file://461-driver_nl80211-use-new-parameters-during-ibss-join.patch \ file://463-add-mcast_rate-to-11s.patch \ file://464-fix-mesh-obss-check.patch \ file://470-survey_data_fallback.patch \ file://500-lto-jobserver-support.patch \ file://599-wpa_supplicant-fix-warnings.patch \ file://700-wifi-reload.patch \ file://800-dfs-enter-DFS-state-if-no-available-channel-is-found.patch \ file://801-P2P-Fix-copying-of-secondary-device-types-for-P2P-gr.patch \ file://912-iapp-integration.patch \ file://913-iapp-improvements.patch \ file://914-wlan-acs-srd-channels.patch \ file://0001-fix-create-a-versioned-shared-library-libwlan_client.patch \ file://0001-use-nas-port-type-ethernet-for-wired-802.1X.patch \ " SRCREV = "5a8b366233f5585e68a4ffbb604fbb4a848eb325" SRC_URI[md5sum] = "a68538fb62766f40f890125026c42c10" SRC_URI[sha256sum] = "9d9f1c60afa5324ee17219bd3ec61c1a6fa4043b4187da9bb44e59025d3ed31d" CVE_PRODUCT = "${TARGET_NAME}" CONFFILES_${TARGET_NAME} += "${sysconfdir}/${TARGET_NAME}-full.config" S = "${WORKDIR}/git" export EXTRA_CFLAGS = " \ ${CFLAGS} \ -I${STAGING_DIR_TARGET}/usr/include/libnl-tiny \ -lnl-tiny \ -DCONFIG_LIBNL20 \ -DCONFIG_LIBNL_TINY \ -D_GNU_SOURCE \ " LDFLAGS += " -Wl,--gc-sections" export BINDIR = "${sbindir}" do_configure () { ${MAKE} -C ${TARGET_NAME} clean install -m 0755 ${WORKDIR}/${TARGET_NAME}-full.config ${TARGET_NAME}/.config install -m 0755 ${WORKDIR}/src/utils/build_features.h src/utils/build_features.h if echo "${PACKAGECONFIG}" | grep -qw "openssl"; then ssl=openssl elif echo "${PACKAGECONFIG}" | grep -qw "gnutls"; then ssl=gnutls fi if [ -n "$ssl" ]; then sed -i "s/%ssl%/$ssl/" ${TARGET_NAME}/.config fi # For rebuild rm -f ${TARGET_NAME}/*.d ${TARGET_NAME}/dbus/*.d } do_compile () { unset CFLAGS CPPFLAGS CXXFLAGS oe_runmake -C ${TARGET_NAME} }